diff options
| author | 2026-02-03 11:19:09 +0800 | |
|---|---|---|
| committer | 2026-02-03 11:19:09 +0800 | |
| commit | b27777b625fb348f35e435276842668e16456967 (patch) | |
| tree | 8b9b05b075f762a541ffb4e027875051fe9f00e5 /packages/docs/app/lib/i18n.ts | |
| parent | 9627912c1f7910f786c555a3a9485f0a8c4211bf (diff) | |
| download | DropOut-b27777b625fb348f35e435276842668e16456967.tar.gz DropOut-b27777b625fb348f35e435276842668e16456967.zip | |
feat(i18n): add multi-language support for docs
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/*) +}); |