diff options
| author | 2026-02-04 10:38:50 +0800 | |
|---|---|---|
| committer | 2026-02-04 10:38:50 +0800 | |
| commit | f656803e7419dc0ccbfdf86752e3284472fed164 (patch) | |
| tree | ae5ae76c4ff6877eff885da75a1db14c43fa0182 /packages/docs/app/lib/i18n.ts | |
| parent | 192abdf4d5e2b06feec3bb232bf25e334435e431 (diff) | |
| parent | ac7a7bceec82a02cf490bc928d989663fd8a3a30 (diff) | |
| download | DropOut-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.ts | 8 |
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/*) +}); |