FIX: Overriding _MF texts didn't work for en_US

This commit is contained in:
Gerhard Schlager 2019-08-26 16:17:56 +02:00
parent 2305a6fffe
commit aecadcb267
1 changed files with 2 additions and 0 deletions

View File

@ -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)