@@ -19,6 +19,7 @@ import {
1919 TableOfContents ,
2020 TranslationStatusAlert ,
2121} from "../ui/common/" ;
22+ import { menuTranslations } from "../../translations" ;
2223
2324export type BaseTemplateProps = PropsWithChildren < {
2425 page : Page ;
@@ -42,10 +43,10 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
4243 const outline = page . outline ;
4344 const translationStatus = getTranslationStatus ( route ) ;
4445 return (
45- < html lang = "ja" class = "scroll-pt-24" >
46+ < html lang = { menuTranslations . lang } class = "scroll-pt-24" >
4647 < head >
4748 < meta charSet = "utf-8" />
48- < title > { title } – Typstドキュメント日本語版 </ title >
49+ < title > { title } – { menuTranslations . documentationTitle } </ title >
4950 < meta name = "description" content = { description } />
5051 < meta name = "viewport" content = "width=device-width,initial-scale=1" />
5152 < meta name = "theme-color" content = "#239dad" />
@@ -55,7 +56,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
5556 />
5657 < meta
5758 property = "og:title"
58- content = { `${ title } – Typstドキュメント日本語版 ` }
59+ content = { `${ title } – ${ menuTranslations . documentationTitle } ` }
5960 />
6061 < meta property = "og:site_name" content = "Typst" />
6162 < meta property = "og:description" content = { description } />
@@ -152,7 +153,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
152153 type = "button"
153154 class = "text-gray-600"
154155 x-on :click = "sidebarOpen = false"
155- aria-label = "メニューを閉じる"
156+ aria-label = { menuTranslations . closeMenu }
156157 >
157158 < div class = "w-6 h-6 text-gray-600 hover:text-gray-800 transition-colors" >
158159 < CloseIcon />
@@ -192,7 +193,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
192193 < div class = "w-4 h-4 mr-1 " >
193194 < WorldIcon />
194195 </ div >
195- 原文(英語)を開く
196+ { menuTranslations . originalArticle }
196197 </ a >
197198 </ div >
198199 ) }
@@ -212,7 +213,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
212213 < WorldIcon />
213214 </ div >
214215 < span class = "text-sm font-medium text-gray-800 group-hover:text-gray-900 transition-colors" >
215- 原文(英語)を開く
216+ { menuTranslations . originalArticle }
216217 </ span >
217218 < div class = "w-4 h-4 ml-2 text-gray-400 transition-colors" >
218219 < ChevronRightIcon />
@@ -231,11 +232,11 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
231232 < CaretRightCircleIcon />
232233 </ div >
233234 < strong class = "text-base font-semibold text-gray-800" >
234- チュートリアル
235+ { menuTranslations . tutorial }
235236 </ strong >
236237 </ div >
237238 < p class = "text-sm text-gray-600" >
238- 一歩一歩、Typstの使い方を学びましょう。
239+ { menuTranslations . learnTypst }
239240 </ p >
240241 </ a >
241242 < a
@@ -247,11 +248,11 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
247248 < InfoCircleIcon />
248249 </ div >
249250 < strong class = "text-base font-semibold text-gray-800" >
250- リファレンス
251+ { menuTranslations . referenceTo }
251252 </ strong >
252253 </ div >
253254 < p class = "text-sm text-gray-600" >
254- Typstのあらゆる構文、概念、型、関数についての詳細なリファレンスです。
255+ { menuTranslations . reference }
255256 </ p >
256257 </ a >
257258 </ div >
@@ -268,7 +269,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
268269 < ChevronLeftIcon />
269270 </ div >
270271 < strong class = "text-base font-semibold text-gray-800" >
271- 前のページ
272+ { menuTranslations . previousPage }
272273 </ strong >
273274 </ div >
274275 < p class = "text-sm text-gray-600" > { previousPage . title } </ p >
@@ -279,7 +280,7 @@ export const BaseTemplate: FC<BaseTemplateProps> = ({
279280 >
280281 < div class = "flex items-center mb-3 justify-between" >
281282 < strong class = "text-base font-semibold text-gray-800" >
282- 次のページ
283+ { menuTranslations . nextPage }
283284 </ strong >
284285 < div class = "w-6 h-6 text-gray-400" >
285286 < ChevronRightIcon />
0 commit comments