Node.js based forum software built for the modern web
perf: dont build identical langs
Barış Soner Uşaklıbb6cc49c1691
diff --git a/src/meta/languages.js b/src/meta/languages.jsindex 5f27486fd3..7487c2b8d7 100644--- a/src/meta/languages.js+++ b/src/meta/languages.js@@ -107,12 +107,12 @@ async function addPlugin(translations, pluginData, lang, namespace) {// 2. old language string (en_GB)// 3. corrected plugin defaultLang (en-US)// 4. old plugin defaultLang (en_US)- const langs = [+ const langs = _.uniq([defaultLang.replace('-', '_').replace('-x-', '@'),defaultLang.replace('_', '-').replace('@', '-x-'),lang.replace('-', '_').replace('-x-', '@'),lang,- ];+ ]);for (const language of langs) {/* eslint-disable no-await-in-loop */