From 393d67859fe85d3ef217aa2470202c421d506632 Mon Sep 17 00:00:00 2001 From: Valentyne Stigloher Date: Thu, 2 May 2024 13:04:21 +0200 Subject: [PATCH] (trans) make links.blogLatest optional when locale has no blog --- src/missingTranslations.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/missingTranslations.ts b/src/missingTranslations.ts index 6b52d41ed..ae0ca66eb 100644 --- a/src/missingTranslations.ts +++ b/src/missingTranslations.ts @@ -128,6 +128,10 @@ export function listMissingTranslations( return false; } + if (!config.blog && keyMatches('links.blogLatest')) { + return false; + } + if (config.api === null && keyMatches('profile.header', 'api.example', 'api.query')) { return false; }