mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-02 02:12:25 +00:00
Merge pull request #30354 from Classic298/i18n-en-us-fallback
fix: keep en-US as the last i18n fallback when a stored locale has no bundle
This commit is contained in:
parent
344ea53068
commit
fecbeac7d1
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ export const initI18n = (defaultLocale?: string, value: I18nOverrides = {}) => {
|
|||
const detectionOrder = defaultLocale
|
||||
? ['querystring', 'localStorage']
|
||||
: ['querystring', 'localStorage', 'navigator'];
|
||||
const fallbackDefaultLocale = defaultLocale ? [defaultLocale] : ['en-US'];
|
||||
const fallbackDefaultLocale = defaultLocale ? [defaultLocale, 'en-US'] : ['en-US'];
|
||||
|
||||
return i18next
|
||||
.use(resourcesToBackend(loadResource))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue