diff options
author | 0neGal <mail@0negal.com> | 2024-04-29 19:07:13 +0200 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2024-04-29 19:25:54 +0200 |
commit | e2c6c37edaea3156cfccfe68bd82a9a4f5b31789 (patch) | |
tree | 4212e3e2637a6cf11338a5fd84d95dc9893f43d7 /scripts | |
parent | 61e9d38f3c5b07010326c7a8fae7cc0fc334791f (diff) | |
download | Viper-e2c6c37edaea3156cfccfe68bd82a9a4f5b31789.tar.gz Viper-e2c6c37edaea3156cfccfe68bd82a9a4f5b31789.zip |
fixed some issues with scripts/langs.js
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/langs.js | 5 |
1 files 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 |