diff --git a/script/crowdin/fix_locale_keys.rb b/script/crowdin/fix_locale_keys.rb index 8cb73a9318..9b4efb9ed2 100644 --- a/script/crowdin/fix_locale_keys.rb +++ b/script/crowdin/fix_locale_keys.rb @@ -18,7 +18,7 @@ Dir.glob('**/config/locales/crowdin/*.yml').each do |crowdin_file| end # Read the language code from the YML index - if language_key.nil? || language_key.length > 5 + if language_key.nil? raise "Failed to detect language from #{crowdin_file}" end