aboutsummaryrefslogtreecommitdiff
path: root/build/langs.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-02-13 23:32:44 +0100
committerGitHub <noreply@github.com>2022-02-13 23:32:44 +0100
commit9f2f77558238c28ceb8ff4fca2096602671779e5 (patch)
treec15586b60de31de094c2f811832ef9ad6df2f50a /build/langs.js
parent057b60f4843798441ad441370381b87299d5ad7f (diff)
parentb2f826a39e8ecf77f85ca56906758edaa3f1dac3 (diff)
downloadViper-9f2f77558238c28ceb8ff4fca2096602671779e5.tar.gz
Viper-9f2f77558238c28ceb8ff4fca2096602671779e5.zip
Merge branch 'main' into enabledmods
Diffstat (limited to 'build/langs.js')
-rw-r--r--build/langs.js16
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]}`)
+ }
}
})