From 489476119a33b55d441450cb90fa494a8ecf8e45 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Mon, 3 May 2021 14:32:22 +0100 Subject: [PATCH] Improve translations check script. --- checkTranslations.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/checkTranslations.mjs b/checkTranslations.mjs index 1ecbb11..00c4e23 100644 --- a/checkTranslations.mjs +++ b/checkTranslations.mjs @@ -29,10 +29,11 @@ for (let lang_num in langs) { let lang_keys = [...lang.keys()]; let di = arrayDiff(en_keys, [...lang.keys()]) console.log("Language:", langs[lang_num]) + console.log("\tPercent Translated:", Math.round( (en_keys.length - di.missing.length) / en_keys.length * 100)) if (di.missing.length > 0) { - console.log("Missing: ", di.missing.join(", ")) + console.log("\tMissing: ", di.missing.join(", ")) } if (di.extra.length > 0) { - console.log("Extra Keys (maybe deprecated, renamed or no longer exists, check git log): ", di.extra.join(", ")) + console.log("\tExtra Keys (maybe deprecated, renamed or no longer exists, check git log): ", di.extra.join(", ")) } }