A platform for community discussion. Free, open, simple.
DEV: `i18n:check` rake task was broken on Ruby 3.1 (#20103)
Gerhard Schlagerf4ce402dc4fd
diff --git a/lib/i18n/locale_file_checker.rb b/lib/i18n/locale_file_checker.rbindex 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?