mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-27 21:33:41 +02:00
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.
10 lines
215 B
TypeScript
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,
|
|
});
|