REFACTOR: Use keyword argument for fallback_to_english flag

This commit is contained in:
Gerhard Schlager
2019-02-19 14:42:58 +01:00
parent 05ee1d1aba
commit 84c56e16f9
4 changed files with 9 additions and 9 deletions

View File

@ -632,7 +632,7 @@ class Plugin::Instance
path = File.join(lib_locale_path, "message_format")
opts[:message_format] = find_locale_file(locale_chain, path)
opts[:message_format] = JsLocaleHelper.find_message_format_locale(locale_chain, false) unless opts[:message_format]
opts[:message_format] = JsLocaleHelper.find_message_format_locale(locale_chain, fallback_to_english: false) unless opts[:message_format]
path = File.join(lib_locale_path, "moment_js")
opts[:moment_js] = find_locale_file(locale_chain, path)