FIX: Don't throw errors on duplicate keys in Yaml
We shouldn't have them, but they shouldn't break a build either.
This commit is contained in:
parent
c3eb75bf00
commit
9123f471e8
|
@ -51,7 +51,7 @@ class TranslationPlugin extends Plugin {
|
|||
this.inputPaths.forEach((path) => {
|
||||
let file = path + "/" + this.inputFile;
|
||||
let yaml = fs.readFileSync(file, { encoding: "UTF-8" });
|
||||
let loaded = Yaml.load(yaml);
|
||||
let loaded = Yaml.load(yaml, { json: true });
|
||||
parsed = deepmerge(parsed, loaded);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue