mirror of
https://github.com/vercel/flags.git
synced 2026-09-19 03:49:23 +08:00
14 lines
361 B
TypeScript
14 lines
361 B
TypeScript
import { defineI18n } from "fumadocs-core/i18n";
|
|
import { defineI18nUI } from "fumadocs-ui/i18n";
|
|
import { translations } from "@/geistdocs";
|
|
|
|
export const i18n = defineI18n({
|
|
defaultLanguage: "en",
|
|
languages: Object.keys(translations),
|
|
hideLocale: "default-locale",
|
|
});
|
|
|
|
export const { provider: i18nProvider } = defineI18nUI(i18n, {
|
|
translations,
|
|
});
|