fix: configure i18next to not return empty strings

This commit is contained in:
Ased Mammad 2024-03-09 03:33:20 +03:30
parent 48e8b45dc9
commit e8ffb2c023
2 changed files with 2 additions and 3 deletions

View file

@ -10,9 +10,7 @@ export default {
contextSeparator: '_',
createOldCatalogs: false,
defaultNamespace: 'translation',
defaultValue: function (locale, namespace, key, value) {
return key;
},
defaultValue: '',
indentation: 2,
keepRemoved: false,
keySeparator: false,

View file

@ -56,6 +56,7 @@ i18next
default: ['en']
},
ns: 'translation',
returnEmptyString: false,
interpolation: {
escapeValue: false // not needed for svelte as it escapes by default
}