From e2c6c37edaea3156cfccfe68bd82a9a4f5b31789 Mon Sep 17 00:00:00 2001 From: 0neGal Date: Mon, 29 Apr 2024 19:07:13 +0200 Subject: fixed some issues with scripts/langs.js --- scripts/langs.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/langs.js b/scripts/langs.js index 8c87e9c..23b9924 100644 --- a/scripts/langs.js +++ b/scripts/langs.js @@ -61,7 +61,9 @@ let format = (logging = true) => { try { // attempt read, parse and flatten `file_path` - let json = flat.flatten(require(file_path)); + let json = flat.flatten( + JSON.parse(fs.readFileSync(file_path)) + ) // sort `json` json = Object.fromEntries( @@ -152,7 +154,6 @@ let localize = async () => { // get just the flattened keys of the language let keys = Object.keys(lang_keys); - console.log(problems) // are there any missing keys? if (problems[picked_lang].length) { // prompt for whether we should only show missing keys -- cgit v1.2.3