mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 23:58:12 -05:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user