Files
multica/apps/docs/lib/source.ts
Jiayuan Zhang dc4c4ca722 feat(docs): add i18n support with Chinese translations
Set up Fumadocs i18n infrastructure with directory-based locale
organization. English docs moved to content/docs/en/, Chinese
translations added in content/docs/zh/. Routes restructured under
[lang]/ segment with middleware for automatic locale detection
and redirect. Language switcher added to navigation.
2026-04-12 21:45:27 +08:00

10 lines
215 B
TypeScript

import { docs } from "@/.source";
import { loader } from "fumadocs-core/source";
import { i18n } from "@/lib/i18n";
export const source = loader({
baseUrl: "/docs",
source: docs.toFumadocsSource(),
i18n,
});