aboutsummaryrefslogtreecommitdiff
path: root/build/langs.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/langs.js')
-rw-r--r--build/langs.js18
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}`)
+ }
+})