diff options
author | 0neGal <mail@0negal.com> | 2022-01-05 00:37:38 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-01-05 00:37:38 +0100 |
commit | a898d6866a912abceb78832bc1b3fe2ff56d1335 (patch) | |
tree | 9067a550a1f110b37cfa8cd99ce7a80b156c442d /build | |
parent | dce0f68e7f9095ffa400112f03968251999a92dc (diff) | |
parent | 89d8d1986b62d5686160f28359383ccd0c67f77d (diff) | |
download | Viper-a898d6866a912abceb78832bc1b3fe2ff56d1335.tar.gz Viper-a898d6866a912abceb78832bc1b3fe2ff56d1335.zip |
Merge branch 'main' of 0neGal/viper into mod-support
Diffstat (limited to 'build')
-rw-r--r-- | build/langs.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build/langs.js b/build/langs.js new file mode 100644 index 0000000..0e82022 --- /dev/null +++ b/build/langs.js @@ -0,0 +1,18 @@ +const fs = require("fs"); + +let lang = require("../src/lang/en.json"); + +langs = fs.readdirSync("src/lang") +langs.forEach((localefile) => { + let missing = []; + let locale = require("../src/lang/" + localefile) + for (let i in lang) { + if (! locale[i]) { + missing.push(i); + } + } + + if (missing.length > 0) { + console.error(`${localefile} is missing: ${missing}`) + } +}) |