REFACTOR: Use keyword argument for fallback_to_english flag

This commit is contained in:
Gerhard Schlager
2019-02-19 15:28:47 +01:00
parent 05ee1d1aba
commit 84c56e16f9
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ class LocaleFileChecker
end
def check_message_format
mf_locale, mf_filename = JsLocaleHelper.find_message_format_locale([@locale], true)
mf_locale, mf_filename = JsLocaleHelper.find_message_format_locale([@locale], fallback_to_english: true)
traverse_hash(@locale_yaml, []) do |keys, value|
next unless keys.last.ends_with?("_MF")