aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/docs/app/lib/i18n.ts
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-02-04 10:38:50 +0800
committerGitHub <noreply@github.com>2026-02-04 10:38:50 +0800
commitf656803e7419dc0ccbfdf86752e3284472fed164 (patch)
treeae5ae76c4ff6877eff885da75a1db14c43fa0182 /packages/docs/app/lib/i18n.ts
parent192abdf4d5e2b06feec3bb232bf25e334435e431 (diff)
parentac7a7bceec82a02cf490bc928d989663fd8a3a30 (diff)
downloadDropOut-f656803e7419dc0ccbfdf86752e3284472fed164.tar.gz
DropOut-f656803e7419dc0ccbfdf86752e3284472fed164.zip
docs: comprehensive documentation overhaul with i18n support (English & Chinese) (#78)
Diffstat (limited to 'packages/docs/app/lib/i18n.ts')
-rw-r--r--packages/docs/app/lib/i18n.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/docs/app/lib/i18n.ts b/packages/docs/app/lib/i18n.ts
new file mode 100644
index 0000000..a9f18b1
--- /dev/null
+++ b/packages/docs/app/lib/i18n.ts
@@ -0,0 +1,8 @@
+import { defineI18n } from 'fumadocs-core/i18n';
+
+export const i18n = defineI18n({
+ defaultLanguage: 'zh',
+ languages: ['zh', 'en'],
+ hideLocale: 'default-locale',
+ parser: 'dir', // 使用目录结构 (content/zh/*, content/en/*)
+});