From dae23c34762be36194543f4dae4c5b4de84af701 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:12:00 -0700 Subject: [PATCH] update: i18next `supporterLngs` ... and remove `nonExplicitSupportedLngs` --- src/plugins/i18n.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 7746626d453..5f7be4768a3 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -134,9 +134,8 @@ export async function initI18n(): Promise { i18next.use(processor); i18next.use(new KoreanPostpositionProcessor()); await i18next.init({ - nonExplicitSupportedLngs: true, fallbackLng: "en", - supportedLngs: ["en", "es", "fr", "it", "de", "zh", "pt", "ko", "ja", "ca"], + supportedLngs: ["en", "es", "fr", "it", "de", "zh-CN", "zh-TW", "pt-BR", "ko", "ja", "ca-ES"], backend: { loadPath(lng: string, [ ns ]: string[]) { let fileName: string;