diff options
author | 0neGal <mail@0negal.com> | 2022-01-26 00:43:47 +0100 |
---|---|---|
committer | 0neGal <mail@0negal.com> | 2022-01-26 00:43:47 +0100 |
commit | d52b963ee890058914a1e5e38b6f5a698f09eb31 (patch) | |
tree | ac7868c8b59b7b864282d6b648b91c832a56658b | |
parent | 67f31bf1c9a263920153db378877271aca8148d2 (diff) | |
parent | ca9ac01957973cd0b8d3fbd640da1fdbb135a4e7 (diff) | |
download | Viper-d52b963ee890058914a1e5e38b6f5a698f09eb31.tar.gz Viper-d52b963ee890058914a1e5e38b6f5a698f09eb31.zip |
Merge branch 'main' of 0neGal/viper into lang-es
-rw-r--r-- | build/langs.js | 16 | ||||
-rw-r--r-- | src/lang/maintainers.json | 13 |
2 files changed, 28 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]}`) + } } }) diff --git a/src/lang/maintainers.json b/src/lang/maintainers.json new file mode 100644 index 0000000..7d276c9 --- /dev/null +++ b/src/lang/maintainers.json @@ -0,0 +1,13 @@ +{ + "explanation": "This file is for storing contact informatino for the various maintainers of various languages/localizations", + + "list": { + "es": [ + "https://github.com/AA-Delta" + ], + + "fr": [ + "https://github.com/Alystrasz" + ] + } +} |