diff --git a/website/src/components/templates/BaseTemplate.tsx b/website/src/components/templates/BaseTemplate.tsx index f84e6060ad..31e52f40b1 100644 --- a/website/src/components/templates/BaseTemplate.tsx +++ b/website/src/components/templates/BaseTemplate.tsx @@ -1,6 +1,11 @@ import { html } from "hono/html"; import type { FC, PropsWithChildren } from "hono/jsx"; -import { basePath, originUrl, typstOfficialDocsUrl } from "../../metadata"; +import { + basePath, + displayTranslationStatus, + originUrl, + typstOfficialDocsUrl, +} from "../../metadata"; import { Translation, translation } from "../../translation/"; import type { Page } from "../../types/model"; import { joinPath, shiftBase } from "../../utils/path"; @@ -208,7 +213,10 @@ export const BaseTemplate: FC = ({
- + {(displayTranslationStatus || + translationStatus === "community") && ( + + )}
{translationStatus !== "community" && ( diff --git a/website/src/components/ui/common/Header.tsx b/website/src/components/ui/common/Header.tsx index 85424867a3..8eb0614a7d 100644 --- a/website/src/components/ui/common/Header.tsx +++ b/website/src/components/ui/common/Header.tsx @@ -1,5 +1,6 @@ import { discordServerUrl, + displayTranslationStatus, githubRepositoryUrl, typstOfficialDocsUrl, typstOfficialUrl, @@ -57,7 +58,7 @@ export const Header = () => {
- + {displayTranslationStatus && }
@@ -128,9 +129,11 @@ export const Header = () => {
-
- -
+ {displayTranslationStatus && ( +
+ +
+ )}