Skip to content

Commit 8f6bd44

Browse files
docs: register ja locale in VitePress config (#1550)
* docs: register ja locale in VitePress config Add Japanese locale to the VitePress config so the Japanese docs appear in the language switcher. Since docs/ja/ currently only has README.md, the nav and sidebar are intentionally minimal to avoid 404s. Fixes #1542 Signed-off-by: xiaodangjia <1599959363@qq.com> * fix: resolve ja homepage fallback issue by pointing to /ja/README.md Signed-off-by: xiaodangjia <1599959363@qq.com> --------- Signed-off-by: xiaodangjia <1599959363@qq.com>
1 parent 21c4db5 commit 8f6bd44

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

docs/.vitepress/config.mts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,52 @@ export default defineConfig({
187187
copyright: "Copyright © iFLYTEK Astron Agent"
188188
}
189189
}
190+
},
191+
ja: {
192+
label: "日本語",
193+
lang: "ja-JP",
194+
link: "/ja/README",
195+
title: "Astron Agent",
196+
description: "エンタープライズ向け・商用フレンドリーな Agentic Workflow 開発プラットフォームのドキュメントサイト。",
197+
themeConfig: {
198+
logo: "/logo-square.png",
199+
siteTitle: "Astron Agent",
200+
nav: [
201+
{ text: "ホーム", link: "/ja/README" },
202+
{ text: "プロジェクト概要", link: "/ja/README" }
203+
],
204+
sidebar: [
205+
{
206+
text: "はじめに",
207+
items: [
208+
{ text: "プロジェクト概要", link: "/ja/README" }
209+
]
210+
}
211+
],
212+
socialLinks,
213+
search: {
214+
provider: "local"
215+
},
216+
editLink: {
217+
pattern: editLinkPattern,
218+
text: "GitHub でこのページを編集"
219+
},
220+
langMenuLabel: "言語",
221+
returnToTopLabel: "ページトップに戻る",
222+
sidebarMenuLabel: "メニュー",
223+
darkModeSwitchLabel: "テーマ",
224+
outline: {
225+
label: "ページ内ナビゲーション"
226+
},
227+
docFooter: {
228+
prev: "前のページ",
229+
next: "次のページ"
230+
},
231+
footer: {
232+
message: "Apache 2.0 Licensed.",
233+
copyright: "Copyright © iFLYTEK Astron Agent"
234+
}
235+
}
190236
}
191237
}
192238
});

0 commit comments

Comments
 (0)