forked from ngx-translate/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(TranslateService): shouldMerge option now does merging with lodash
shouldMerge option of the `setTranslation` method didn't handle non-valid JSON translations object such compiled translations with custom compiler. It is now doing deep merging with lodash. Fixes ngx-translate#532 Change-Id: Ie9d83ef65d42ec9bea93489b11f0abd4ab641c4a
- Loading branch information
1 parent
45f1f6e
commit 97cdacb
Showing
4 changed files
with
33 additions
and
17 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,16 @@ | |
version "2.8.2" | ||
resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-2.8.2.tgz#6ae4d8740c0da5d5a627df725b4eed71b8e36668" | ||
|
||
"@types/lodash-es@^4.17.0": | ||
version "4.17.0" | ||
resolved "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.0.tgz#ed9044d62ee36a93e0650b112701986b1c74c766" | ||
dependencies: | ||
"@types/lodash" "*" | ||
|
||
"@types/lodash@*": | ||
version "4.14.92" | ||
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.92.tgz#6e3cb0b71a1e12180a47a42a744e856c3ae99a57" | ||
|
||
"@types/[email protected]": | ||
version "8.0.53" | ||
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.53.tgz#396b35af826fa66aad472c8cb7b8d5e277f4e6d8" | ||
|
@@ -3011,6 +3021,10 @@ locate-path@^2.0.0: | |
p-locate "^2.0.0" | ||
path-exists "^3.0.0" | ||
|
||
lodash-es@^4.17.4: | ||
version "4.17.4" | ||
resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.4.tgz#dcc1d7552e150a0640073ba9cb31d70f032950e7" | ||
|
||
lodash._basecopy@^3.0.0: | ||
version "3.0.1" | ||
resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" | ||
|