update: i18next supporterLngs ...

and remove `nonExplicitSupportedLngs`
This commit is contained in:
flx-sta 2024-10-01 13:12:00 -07:00
parent 2de15f9be2
commit dae23c3476

View File

@ -134,9 +134,8 @@ export async function initI18n(): Promise<void> {
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;