mirror of
https://github.com/vale981/metalsmith-multi-language
synced 2025-03-04 17:11:39 -05:00
fixing the deepmerge
This commit is contained in:
parent
2fe05657c7
commit
a6de6d1bac
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ Multilang.prototype.getPlugin = function () {
|
|||
// This lets to have base some generic properties
|
||||
// applied only in the 'default' locale, e.g.: template
|
||||
if (base !== file) {
|
||||
files[file] = deepmerge(files[base], files[file]);
|
||||
var contents = files[file].contents;
|
||||
files[file] = deepmerge(files[base], files[file], {clone:true});
|
||||
files[file].contents = contents;
|
||||
}
|
||||
} else {
|
||||
files[file].locale = self.default;
|
||||
|
|
Loading…
Add table
Reference in a new issue