diff options
author | 0neGal <mail@0negal.com> | 2022-02-08 21:13:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-08 21:13:20 +0100 |
commit | 1bd83cf1a72332e142bb63acab47ac3877061875 (patch) | |
tree | 5670e225378ebcb0e73efb0c84265357f74f00cb /build | |
parent | d55f84536814238d8ea79acdae47dbdf269953f1 (diff) | |
parent | e2aa874f48dc585f0d67c5655df234bdf356cc53 (diff) | |
download | Viper-1bd83cf1a72332e142bb63acab47ac3877061875.tar.gz Viper-1bd83cf1a72332e142bb63acab47ac3877061875.zip |
Merge branch 'main' into thunderstore
Diffstat (limited to 'build')
-rw-r--r-- | build/langs.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/build/langs.js b/build/langs.js index 0e82022..9e21dff 100644 --- a/build/langs.js +++ b/build/langs.js @@ -1,10 +1,14 @@ const fs = require("fs"); let lang = require("../src/lang/en.json"); +let maintainers = require("../src/lang/maintainers.json"); langs = fs.readdirSync("src/lang") langs.forEach((localefile) => { + if (localefile == "maintainers.json") {return} + let missing = []; + let langmaintainers = maintainers.list[localefile.replace(/\..*$/, "")]; let locale = require("../src/lang/" + localefile) for (let i in lang) { if (! locale[i]) { @@ -13,6 +17,16 @@ langs.forEach((localefile) => { } if (missing.length > 0) { - console.error(`${localefile} is missing: ${missing}`) + console.error(`${localefile} is missing:`) + for (let i in missing) { + console.log(` ${missing[i]}`) + } + + console.log() + + console.log("Maintainers of language: ") + for (let i in langmaintainers) { + console.log(` ${langmaintainers[i]}`) + } } }) |