1
0
Fork 0

Print language name in checkTranslations script.

This commit is contained in:
Kitteh 2021-05-05 21:15:50 +01:00
parent 798f50c5a8
commit fa9f25027c

View file

@ -16,7 +16,9 @@ for (let lang_num in langs) {
if (lang == "en") continue;
let lang_keys = [...lang.keys()];
let di = arrayDiff(en_keys, [...lang.keys()])
console.log("Language:", langs[lang_num])
console.log("Language Code:", langs[lang_num])
console.log("Language Name:", translations[langs[lang_num]]["language_name"])
console.log("\tPercent Translated:", Math.round((en_keys.length - di.missing.length) / en_keys.length * 100))
if (di.missing.length > 0) {
console.log("\tMissing: ", di.missing.join(", "))