mirror of
https://github.com/vercel/workflow.git
synced 2026-09-14 19:59:43 +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,
|
|
});
|