forked from ruby-i18n/i18n
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform deep merges when doing Backend::Chain#translate
Currently when requesting a namespace it would give you a union of the top level keys, but would let nested keys override each other. As an effect of this, you would be losing translations coming from a lower-level backend if at least one subkey is "overridden" in a backend that has higher priority. This fix ensures that you instead get a "deep union" of all the translation keys and the merges do indeed get performed correctly not only at the top level of the namespace but all the way down.
- Loading branch information
Showing
2 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters