Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
e8ffb2c0
Commit
e8ffb2c0
authored
Mar 09, 2024
by
Ased Mammad
Browse files
fix: configure i18next to not return empty strings
parent
48e8b45d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
i18next-parser.config.ts
i18next-parser.config.ts
+1
-3
src/lib/i18n/index.ts
src/lib/i18n/index.ts
+1
-0
No files found.
i18next-parser.config.ts
View file @
e8ffb2c0
...
@@ -10,9 +10,7 @@ export default {
...
@@ -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
,
...
...
src/lib/i18n/index.ts
View file @
e8ffb2c0
...
@@ -56,6 +56,7 @@ i18next
...
@@ -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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment