X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7e5bbce23dcd72876c9947d232813efb48fe83eb..48c17bbbcea8916897b2291e2b8d4eafd07c64b0:/lib/id.rb?ds=sidebyside diff --git a/lib/id.rb b/lib/id.rb index 87c4a194e..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.filter_map { |p| p.basename.to_s[/(.*).json/] && Regexp.last_match(1) }) + 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