diff --git a/lib/i18n/locale_file_checker.rb b/lib/i18n/locale_file_checker.rb index e7d71ece03f..e0aa83028fa 100644 --- a/lib/i18n/locale_file_checker.rb +++ b/lib/i18n/locale_file_checker.rb @@ -19,8 +19,8 @@ class LocaleFileChecker @relative_locale_path = Pathname.new(locale_path).relative_path_from(Pathname.new(Rails.root)).to_s - @locale_yaml = YAML.load_file(locale_path) - @reference_yaml = YAML.load_file(reference_path) + @locale_yaml = YAML.load_file(locale_path, aliases: true) + @reference_yaml = YAML.load_file(reference_path, aliases: true) next if @locale_yaml.blank? || @locale_yaml.first[1].blank?