aboutsummaryrefslogtreecommitdiff
path: root/build/langs.js
blob: 0e8202274fc6260f27a80cea99ced0e1fbcb17c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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}`)
	}
})