feat(docs,i18n): now supports Japanese & Korean

This commit is contained in:
Neko Ayaka
2025-12-26 12:24:25 +08:00
parent 3935fa2600
commit f579600f26
10 changed files with 63 additions and 4 deletions
@@ -84,7 +84,7 @@ const maskImageURL = `url(${homeCover})`
'md:w-[150%] md:translate-y-[40%] md:rotate-[0deg] md:top-8dvh',
'lg:w-[95%] lg:translate-y-[-20%] lg:translate-x-[-50%] lg:rotate-[0deg] lg:scale-95 lg:top-32dvh',
'xl:translate-y-[-50%] xl:translate-x-[-50%] xl:scale-80 xl:top-18dvh',
'2xl:w-[100%] 2xl:translate-y-[-20%] 2xl:translate-x-[-50%] 2xl:rotate-[0deg] 2xl:top-16dvh',
'2xl:w-[100%] 2xl:translate-y-[-20%] 2xl:translate-x-[-50%] 2xl:rotate-[0deg] 2xl:scale-60 2xl:top-12dvh',
]"
>
<img ref="surface" :src="homeCover" alt="Project AIRI Cover Image" class="w-full object-cover">
+2 -2
View File
@@ -23,14 +23,14 @@ import '@fontsource-variable/comfortaa'
export default {
Layout,
enhanceApp({ app }) {
enhanceApp({ app, siteData }) {
if (!import.meta.env.SSR) {
import('../modules/posthog')
}
const i18n = createI18n({
legacy: false,
locale: 'en',
locale: siteData.value.lang || 'en',
fallbackLocale: 'en',
messages,
})
+2 -1
View File
@@ -1,3 +1,4 @@
---
title: これはどんなプロジェクト?
description: Project AIRI のユーザーインターフェースを知る
---
@@ -70,7 +71,7 @@ Web 版は手軽にアクセスでき、モバイルからでも利用できま
使い方を見る
</div>
</a>
<a href="../../../en/docs/guide/web/" w-full flex items-center gap-2 border="2 solid gray-500/10" rounded-lg px-4 py-2>
<a href="../../../en/docs/overview/guide/web/" w-full flex items-center gap-2 border="2 solid gray-500/10" rounded-lg px-4 py-2>
<div w-full flex items-center gap-2>
<div flex items-center gap-2 text-2xl>
<div i-lucide:app-window />
+4
View File
@@ -1,6 +1,8 @@
import en from './en'
import es from './es'
import fr from './fr'
import ja from './ja'
import ko from './ko'
import ru from './ru'
import vi from './vi'
import zhHans from './zh-Hans'
@@ -10,6 +12,8 @@ export default {
en,
es,
fr,
ko,
ja,
ru,
vi,
'zh-Hans': zhHans,
@@ -0,0 +1,7 @@
import theme from './theme.yaml'
import versions from './versions.yaml'
export default {
theme,
versions,
}
+13
View File
@@ -0,0 +1,13 @@
import base from './base.yaml'
import docs from './docs'
import settings from './settings.yaml'
import stage from './stage.yaml'
import tamagotchi from './tamagotchi'
export default {
base,
docs,
settings,
stage,
tamagotchi,
}
@@ -0,0 +1,7 @@
import settings from './settings.yaml'
import stage from './stage.yaml'
export default {
stage,
settings,
}
@@ -0,0 +1,7 @@
import theme from './theme.yaml'
import versions from './versions.yaml'
export default {
theme,
versions,
}
+13
View File
@@ -0,0 +1,13 @@
import base from './base.yaml'
import docs from './docs'
import settings from './settings.yaml'
import stage from './stage.yaml'
import tamagotchi from './tamagotchi'
export default {
base,
docs,
settings,
stage,
tamagotchi,
}
@@ -0,0 +1,7 @@
import settings from './settings.yaml'
import stage from './stage.yaml'
export default {
stage,
settings,
}