We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1dc424 + f3c1936 commit 00fc810Copy full SHA for 00fc810
lib/i18n.rb
@@ -338,11 +338,11 @@ def with_locale(tmp_locale = nil)
338
def normalize_keys(locale, key, scope, separator = nil)
339
separator ||= I18n.default_separator
340
341
- keys = []
342
- keys.concat normalize_key(locale, separator)
343
- keys.concat normalize_key(scope, separator)
344
- keys.concat normalize_key(key, separator)
345
- keys
+ [
+ *normalize_key(locale, separator),
+ *normalize_key(scope, separator),
+ *normalize_key(key, separator)
+ ]
346
end
347
348
# Returns true when the passed locale, which can be either a String or a
0 commit comments