From e1f52a1e376898532c05937057f16bfcc594aa09 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 5 Jan 2022 13:51:02 +0530 Subject: [PATCH] enable linting for newly translated languages --- scripts/translations/find-duplicate-translations.js | 5 ++++- scripts/translations/lint-translations.js | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/translations/find-duplicate-translations.js b/scripts/translations/find-duplicate-translations.js index a6bc53613..291901d40 100644 --- a/scripts/translations/find-duplicate-translations.js +++ b/scripts/translations/find-duplicate-translations.js @@ -62,6 +62,9 @@ var FULL_LANGUAGES = { FR: Util.clone(require("../../www/common/translations/messages.fr.json")), DE: Util.clone(require("../../www/common/translations/messages.de.json")), JP: Util.clone(require("../../www/common/translations/messages.ja.json")), + RU: Util.clone(require("../../www/common/translations/messages.ru.json")), + CS: Util.clone(require("../../www/common/translations/messages.cs.json")), + PT_BR: Util.clone(require("../../www/common/translations/messages.pt-br.json")), }; var DUPLICATES = {}; @@ -78,7 +81,7 @@ var extraneousKeys = 0; // such keys should not be simplified/deduplicated Object.keys(DUPLICATES.EN).forEach(function (key) { var reference = DUPLICATES.EN[key]; - if (!['FR', 'DE', 'JP'].every(function (code) { + if (!['FR', 'DE', 'JP', 'RU', 'CS', 'PT_BR'].every(function (code) { try { Assert.deepEqual(reference, DUPLICATES[code][key]); } catch (err) { diff --git a/scripts/translations/lint-translations.js b/scripts/translations/lint-translations.js index 46f3d0801..4eaab86b5 100644 --- a/scripts/translations/lint-translations.js +++ b/scripts/translations/lint-translations.js @@ -102,6 +102,7 @@ processLang(EN, 'en', true); 'cs', 'de', 'es', + 'eu', 'fi', 'fr', 'hi',