mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: admin strings in plugins should fallback to english when untranslated
This commit is contained in:
@ -52,7 +52,10 @@ module JsLocaleHelper
|
||||
end
|
||||
|
||||
# merge translations (plugin translations overwrite default translations)
|
||||
translations[locale_str]['js'].deep_merge!(plugin_translations(locale_str)['js']) if translations[locale_str] && plugin_translations(locale_str) && plugin_translations(locale_str)['js']
|
||||
if translations[locale_str] && plugin_translations(locale_str)
|
||||
translations[locale_str]['js'].deep_merge!(plugin_translations(locale_str)['js']) if plugin_translations(locale_str)['js']
|
||||
translations[locale_str]['admin_js'].deep_merge!(plugin_translations(locale_str)['admin_js']) if plugin_translations(locale_str)['admin_js']
|
||||
end
|
||||
|
||||
translations
|
||||
end
|
||||
|
Reference in New Issue
Block a user