File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
website/src/components/templates Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11import { html } from "hono/html" ;
22import type { FC , PropsWithChildren } from "hono/jsx" ;
3- import { basePath , originUrl , typstOfficialDocsUrl } from "../../metadata" ;
3+ import {
4+ basePath ,
5+ displayTranslationStatus ,
6+ originUrl ,
7+ typstOfficialDocsUrl ,
8+ } from "../../metadata" ;
49import { Translation , translation } from "../../translation/" ;
510import type { Page } from "../../types/model" ;
611import { joinPath , shiftBase } from "../../utils/path" ;
@@ -208,7 +213,10 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
208213 < Breadcrumbs path = { path } />
209214
210215 < div class = "flex flex-col gap-2 my-4" >
211- < TranslationStatusAlert status = { translationStatus } />
216+ { ( displayTranslationStatus ||
217+ translationStatus === "community" ) && (
218+ < TranslationStatusAlert status = { translationStatus } />
219+ ) }
212220 </ div >
213221
214222 { translationStatus !== "community" && (
You can’t perform that action at this time.
0 commit comments