From fa9f25027cb9bd22e02874a77adfa59007cfe9c6 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Wed, 5 May 2021 21:15:50 +0100 Subject: [PATCH] Print language name in checkTranslations script. --- checkTranslations.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/checkTranslations.mjs b/checkTranslations.mjs index ece84c7..942b0f6 100644 --- a/checkTranslations.mjs +++ b/checkTranslations.mjs @@ -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(", "))