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:
Robin Ward 2021-11-25 16:31:22 -05:00
parent c3eb75bf00
commit 9123f471e8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});