File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
2828end
You can’t perform that action at this time.
0 commit comments