From c3709b41f4efbd71c0fab8be2090c25f645c6586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Tue, 5 Sep 2023 22:18:55 +0200 Subject: [PATCH] fix: translation key check --- scripts/check-changed-translations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/check-changed-translations.js b/scripts/check-changed-translations.js index afa6f26622..8607a0827b 100644 --- a/scripts/check-changed-translations.js +++ b/scripts/check-changed-translations.js @@ -18,7 +18,7 @@ function compareObjects(obj1, obj2, parentPath = "") { obj2[key], parentPath ? `${parentPath}.${key}` : key ); - } else if (obj1[key] !== obj2[key]) { + } else if (obj1[key] !== obj2[key] && obj2[key] !== undefined) { const title = `Translation source ${parentPath}.${key} has changed`; const message = `Consider running \`node scripts/remove-outdated-translations.js ${parentPath}.${key}\` to reset existing translations.`; console.log(