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: '_', contextSeparator: '_',
createOldCatalogs: false, createOldCatalogs: false,
defaultNamespace: 'translation', defaultNamespace: 'translation',
defaultValue: function (locale, namespace, key, value) { defaultValue: '',
return key;
},
indentation: 2, indentation: 2,
keepRemoved: false, keepRemoved: false,
keySeparator: false, keySeparator: false,

View file

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