mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-22 04:19:21 +00:00
- Replace VitePress with Fumadocs + Next.js for documentation site - Configure i18n (English + 简体中文) with language switcher - Migrate all 17 guide documents to MDX format with updated content - Add ocean theme, GitHub/Discord/QQ social links - Update GitHub Actions workflow for Next.js static export - Update .gitignore for .next, out, .source directories
13 lines
309 B
TypeScript
13 lines
309 B
TypeScript
import { defineI18n } from 'fumadocs-core/i18n';
|
|
import { defineI18nUI } from 'fumadocs-ui/i18n';
|
|
|
|
export const i18n = defineI18n({
|
|
defaultLanguage: 'en',
|
|
languages: ['en', 'cn'],
|
|
});
|
|
|
|
export const i18nUI = defineI18nUI(i18n, {
|
|
en: { displayName: 'English' },
|
|
cn: { displayName: '简体中文' },
|
|
});
|