mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
FIX: Overriding _MF texts didn't work for en_US
This commit is contained in:
parent
2305a6fffe
commit
aecadcb267
@ -185,6 +185,8 @@ module JsLocaleHelper
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.find_locale(locale_chain, path, type, fallback_to_english:)
|
def self.find_locale(locale_chain, path, type, fallback_to_english:)
|
||||||
|
locale_chain.map!(&:to_s)
|
||||||
|
|
||||||
locale_chain.each do |locale|
|
locale_chain.each do |locale|
|
||||||
plugin_locale = DiscoursePluginRegistry.locales[locale]
|
plugin_locale = DiscoursePluginRegistry.locales[locale]
|
||||||
return plugin_locale[type] if plugin_locale&.has_key?(type)
|
return plugin_locale[type] if plugin_locale&.has_key?(type)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user