mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Use string interpolation instead.
This commit is contained in:
parent
007326d3bd
commit
6c9f646e34
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ module I18n
|
|||
|
||||
existing_translations =
|
||||
if existing_translations.is_a?(Hash)
|
||||
Hash[existing_translations.map { |k, v| [k.to_s.prepend("#{key}."), v] }]
|
||||
Hash[existing_translations.map { |k, v| ["#{key}.#{k}", v] }]
|
||||
elsif existing_translations.is_a?(String)
|
||||
Hash[[[key, existing_translations]]]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue