From fa7ddf72380269bc69a1017c22773ab6256dc52b Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Thu, 5 Apr 2018 16:52:17 +1000 Subject: [PATCH] Add wizard_js to translations that can be overridden from a plugin --- lib/js_locale_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rb index af8d5fbfacc..09a41fd6439 100644 --- a/lib/js_locale_helper.rb +++ b/lib/js_locale_helper.rb @@ -47,7 +47,8 @@ module JsLocaleHelper translations = { locale_str => { 'js' => {}, - 'admin_js' => {} + 'admin_js' => {}, + 'wizard_js' => {} } } end @@ -56,6 +57,7 @@ module JsLocaleHelper 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'] + translations[locale_str]['wizard_js'].deep_merge!(plugin_translations(locale_str)['wizard_js']) if plugin_translations(locale_str)['wizard_js'] end translations