mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add wizard_js to translations that can be overridden from a plugin
This commit is contained in:
parent
a2b9a55036
commit
fa7ddf7238
@ -47,7 +47,8 @@ module JsLocaleHelper
|
|||||||
translations = {
|
translations = {
|
||||||
locale_str => {
|
locale_str => {
|
||||||
'js' => {},
|
'js' => {},
|
||||||
'admin_js' => {}
|
'admin_js' => {},
|
||||||
|
'wizard_js' => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
@ -56,6 +57,7 @@ module JsLocaleHelper
|
|||||||
if translations[locale_str] && plugin_translations(locale_str)
|
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]['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']
|
translations[locale_str]['admin_js'].deep_merge!(plugin_translations(locale_str)['admin_js']) if plugin_translations(locale_str)['admin_js']
|
||||||
|
translations[locale_str]['wizard_js'].deep_merge!(plugin_translations(locale_str)['wizard_js']) if plugin_translations(locale_str)['wizard_js']
|
||||||
end
|
end
|
||||||
|
|
||||||
translations
|
translations
|
||||||
|
Loading…
Reference in New Issue
Block a user