added fallback language and config to ignore empty string as translation

This commit is contained in:
Abhinav 2023-03-21 19:48:43 +05:30
parent 6ac27b3995
commit 964ec6aad4

View file

@ -14,6 +14,8 @@ export const setupI18n = async () => {
// init i18next
// for all options read: https://www.i18next.com/overview/configuration-options
.init({
returnEmptyString: false,
fallbackLng: 'en',
lng: getBestPossibleUserLocale(),
interpolation: {
escapeValue: false, // not needed for react as it escapes by default