Update i18n.ts

This commit is contained in:
Lugiad 2025-03-29 17:56:30 +01:00 committed by GitHub
parent 15d15d126d
commit 7c0a3019c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,7 +170,10 @@ export async function initI18n(): Promise<void> {
i18next.use(processor); i18next.use(processor);
i18next.use(new KoreanPostpositionProcessor()); i18next.use(new KoreanPostpositionProcessor());
await i18next.init({ await i18next.init({
fallbackLng: "en", fallbackLng: {
"es-MX": ["es-ES", "en"],
default: ["en"],
},
supportedLngs: ["en", "es-ES", "es-MX", "fr", "it", "de", "zh-CN", "zh-TW", "pt-BR", "ko", "ja", "ca-ES"], supportedLngs: ["en", "es-ES", "es-MX", "fr", "it", "de", "zh-CN", "zh-TW", "pt-BR", "ko", "ja", "ca-ES"],
backend: { backend: {
loadPath(lng: string, [ns]: string[]) { loadPath(lng: string, [ns]: string[]) {