From 5ab400c36e8de60267ca350c2cb309ba5dbcd0d7 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Thu, 12 Dec 2024 16:02:41 +0100 Subject: [PATCH] chore(kumascript): stop reporting link with en-US fallback as flaw --- kumascript/src/api/web.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/kumascript/src/api/web.ts b/kumascript/src/api/web.ts index 2f529e392631..20c49450112d 100644 --- a/kumascript/src/api/web.ts +++ b/kumascript/src/api/web.ts @@ -144,17 +144,6 @@ const web = { hrefSplit[1] = "en-US"; const enUSPage = this.info.getPageByURL(hrefSplit.join("/")); if (enUSPage.url) { - // But it's still a flaw. Record it so that translators can write a - // translated document to "fill the hole". - if (!ignoreFlawMacro) { - flaw = this.env.recordNonFatalError( - "broken-link", - `${hrefpath} does not exist but fell back to ${enUSPage.url}` - ); - flawAttribute = ` data-flaw-src="${util.htmlEscape( - flaw.macroSource - )}"`; - } content ??= enUSPage.short_title ?? enUSPage.title; const title = ONLY_AVAILABLE_IN_ENGLISH(this.env.locale);