Fallback mx to es

This commit is contained in:
Dean 2025-03-29 09:37:16 -07:00
parent 25b9fa7933
commit 715b098e37

View File

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