dify/web/i18n-config/settings.ts
Stephen Zhou 4e0a7a7f9e
chore: fix type for useTranslation in #i18n (#32134)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-02-09 16:42:53 +08:00

17 lines
373 B
TypeScript

import type { InitOptions } from 'i18next'
import { namespaces } from './resources'
export function getInitOptions(): InitOptions {
return {
// We do not have en for fallback
load: 'currentOnly',
fallbackLng: 'en-US',
partialBundledLanguages: true,
keySeparator: false,
ns: namespaces,
interpolation: {
escapeValue: false,
},
}
}