mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Disable returnEmptyString
This commit is contained in:
parent
27b0c753bb
commit
f005f2022c
@ -72,6 +72,7 @@ i18next.use(initReactI18next).init({
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
returnEmptyString: false,
|
||||
fallbackLng: "en",
|
||||
lng: getLocales()[0].languageCode ?? "en",
|
||||
resources,
|
||||
|
@ -34,6 +34,8 @@ export const withTranslations = (
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
returnEmptyString: false,
|
||||
fallbackLng: "en",
|
||||
resources,
|
||||
};
|
||||
|
||||
@ -43,7 +45,6 @@ export const withTranslations = (
|
||||
i18next.init({
|
||||
...commonOptions,
|
||||
lng: props.pageProps.__lang,
|
||||
fallbackLng: "en",
|
||||
});
|
||||
return i18next;
|
||||
}, [props.pageProps.__lang]);
|
||||
@ -60,7 +61,6 @@ export const withTranslations = (
|
||||
await i18n.init({
|
||||
...commonOptions,
|
||||
lng,
|
||||
fallbackLng: "en",
|
||||
});
|
||||
props.pageProps.__lang = lng;
|
||||
return props;
|
||||
|
Loading…
x
Reference in New Issue
Block a user