Skip to content

Commit 85c81cb

Browse files
committed
COMPATIBILITY: Support extra locales controller changes
1 parent 84c49a3 commit 85c81cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

extensions/extra_locales_controller.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ def custom_language?
88
Multilingual::CustomLanguage.is_custom?(current_locale)
99
end
1010

11-
def bundle_js(bundle)
11+
def bundle_js(bundle, locale:)
1212
if bundle === "custom-language" && custom_language?
13-
JsLocaleHelper.output_locale(current_locale)
13+
JsLocaleHelper.output_locale(locale)
1414
elsif bundle === "tags"
15-
JsLocaleHelper.output_locale_tags(current_locale)
15+
JsLocaleHelper.output_locale_tags(locale)
1616
else
17-
super(bundle)
17+
super(bundle, locale: locale)
1818
end
1919
end
2020

21-
def bundle_js_hash(bundle)
21+
def bundle_js_hash(bundle, locale:)
2222
if bundle == "tags"
23-
Digest::MD5.hexdigest(bundle_js(bundle))
23+
Digest::MD5.hexdigest(bundle_js(bundle, locale: locale))
2424
else
25-
super(bundle)
25+
super(bundle, locale: locale)
2626
end
2727
end
2828
end

0 commit comments

Comments
 (0)