mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 13:07:25 +00:00
fix: configure i18next to not return empty strings
This commit is contained in:
parent
48e8b45dc9
commit
e8ffb2c023
@ -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,
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user