Skip to content

A platform for community discussion. Free, open, simple.

FIX: Overriding _MF texts didn't work for en_US

Gerhard Schlageraecadcb2675b
diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rb
index 40c48aa0518..52a6c93d30c 100644
--- a/lib/js_locale_helper.rb
+++ b/lib/js_locale_helper.rb
@@ -185,6 +185,8 @@ module JsLocaleHelper
end
def self.find_locale(locale_chain, path, type, fallback_to_english:)
+ locale_chain.map!(&:to_s)
+
locale_chain.each do |locale|
plugin_locale = DiscoursePluginRegistry.locales[locale]
return plugin_locale[type] if plugin_locale&.has_key?(type)