From fa8818337ffaf37daae9c1145f45fbd9e0b6aa39 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 27 Jul 2021 17:38:17 +0100 Subject: [PATCH] Fix locale matching for iD --- lib/id.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5