diff --git a/lib/i18n.rb b/lib/i18n.rb index 1b32f470..e197e2b1 100644 --- a/lib/i18n.rb +++ b/lib/i18n.rb @@ -338,11 +338,11 @@ def with_locale(tmp_locale = nil) def normalize_keys(locale, key, scope, separator = nil) separator ||= I18n.default_separator - keys = [] - keys.concat normalize_key(locale, separator) - keys.concat normalize_key(scope, separator) - keys.concat normalize_key(key, separator) - keys + [ + *normalize_key(locale, separator), + *normalize_key(scope, separator), + *normalize_key(key, separator) + ] end # Returns true when the passed locale, which can be either a String or a