added fallback language and config to ignore empty string as translation
This commit is contained in:
parent
6ac27b3995
commit
964ec6aad4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue