Skip to content

Commit

Permalink
chore(kumascript): stop reporting link with en-US fallback as flaw
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Dec 12, 2024
1 parent 1e9134b commit 5ab400c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions kumascript/src/api/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5ab400c

Please sign in to comment.