X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c8671c137ab09e8b93444d8a56d4a72d70014bf9..34a8d0820969019d796f4bd103077fb2c785badc:/lib/id.rb diff --git a/lib/id.rb b/lib/id.rb index 3adfecf65..dc6ae8d90 100644 --- a/lib/id.rb +++ b/lib/id.rb @@ -1,3 +1,3 @@ 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