aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-04-29 19:27:32 +0200
committer0neGal <mail@0negal.com>2024-04-29 19:27:32 +0200
commit690367751122e41867d22b4cc0420629e10cb1c8 (patch)
tree130e3ecdd357b3ebdf118b76b99db121a8e468f2
parent97be082dbbe66684f3e8a558e309329cad024e27 (diff)
parente2c6c37edaea3156cfccfe68bd82a9a4f5b31789 (diff)
downloadViper-690367751122e41867d22b4cc0420629e10cb1c8.tar.gz
Viper-690367751122e41867d22b4cc0420629e10cb1c8.zip
Merge branch 'main' into linux-launch-v2
-rw-r--r--scripts/langs.js5
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