]> git.openstreetmap.org Git - rails.git/blobdiff - lib/id.rb
Localisation updates from https://translatewiki.net.
[rails.git] / lib / id.rb
index 3adfecf65b4792854dc65e2f33b7e67a8a600f78..dc6ae8d909ef4f2b17f05ecb9a8c50d0064043c3 100644 (file)
--- a/lib/id.rb
+++ b/lib/id.rb
@@ -1,3 +1,3 @@
 module ID
 module ID
-  LOCALES = Locale.list(Rails.root.join("vendor", "assets", "iD", "iD", "locales").entries.map { |p| p.basename.to_s[/(.*).json/] && Regexp.last_match(1) }.compact)
+  LOCALES = Locale.list(Rails.root.join("vendor/assets/iD/iD/locales").entries.filter_map { |p| p.basename.to_s[/(.*)\.min\.json/] && Regexp.last_match(1) })
 end
 end