FIX: Don't throw errors on duplicate keys in Yaml

FIX: Don’t throw errors on duplicate keys in Yaml

We shouldn’t have them, but they shouldn’t break a build either.

diff --git a/app/assets/javascripts/discourse/lib/translation-plugin.js b/app/assets/javascripts/discourse/lib/translation-plugin.js
index 09c0e8b..a8551d0 100644
--- a/app/assets/javascripts/discourse/lib/translation-plugin.js
+++ b/app/assets/javascripts/discourse/lib/translation-plugin.js
@@ -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);
     });
 

GitHub sha: 9123f471e86299b8f0a7212cf891e9c881435407

This commit appears in #15100 which was approved by CvX. It was merged by eviltrout.