From 96289fe014d42d2a4147d826c2d5e262b64e9d1b Mon Sep 17 00:00:00 2001 From: AnnAngela Date: Sun, 27 Mar 2022 20:56:42 +0800 Subject: [PATCH] Update index.js --- extra/update-language-files/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extra/update-language-files/index.js b/extra/update-language-files/index.js index 1f58d01f3..e449fe347 100644 --- a/extra/update-language-files/index.js +++ b/extra/update-language-files/index.js @@ -41,7 +41,7 @@ const files = fs.readdirSync("./languages"); console.log("Files:", files); for (const file of files) { - if (!file.endsWith(".js")) { + if (! file.endsWith(".js")) { console.log("Skipping " + file); continue; } @@ -62,7 +62,7 @@ for (const file of files) { // En first for (const key in en) { - if (!obj[key]) { + if (! obj[key]) { obj[key] = en[key]; } } @@ -70,7 +70,7 @@ for (const file of files) { if (baseLang !== en) { // Base second for (const key in baseLang) { - if (!obj[key]) { + if (! obj[key]) { obj[key] = key; } }