From ddd074b2bcd88d81a4529e4b171a40ed3a521265 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Fri, 5 Jul 2024 18:53:59 +0200 Subject: [PATCH] (trans) respect disabled pronouns.null and pronouns.emoji --- src/missingTranslations.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/missingTranslations.ts b/src/missingTranslations.ts index c55b1d658..7f16246c9 100644 --- a/src/missingTranslations.ts +++ b/src/missingTranslations.ts @@ -102,6 +102,14 @@ export function listMissingTranslations( return false; } + if (!config.pronouns.null && keyMatches('pronouns.null.')) { + return false; + } + + if (!config.pronouns.emoji && keyMatches('pronouns.emoji.')) { + return false; + } + // locale specific flags const match = k.match(localeSpecificFlagAlt); if (match && match[1] !== config.locale) {