mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-12 03:48:33 +00:00
Merge pull request #32224 from Classic298/fix-model-editor-language-switch
fix: model editor keeps the previous language's text when switching Editing language
This commit is contained in:
parent
a41a7d44d9
commit
73be5c98f4
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@
|
|||
.map(([locale]) => locale);
|
||||
$: editingLocaleLabel = languages.find((language) => language.code === editingLocale)?.title;
|
||||
|
||||
const localizedField = (field: string) => info?.meta?.i18n?.[editingLocale]?.[field] ?? '';
|
||||
$: localizedField = (field: string) => info?.meta?.i18n?.[editingLocale]?.[field] ?? '';
|
||||
const setLocalizedField = (field: string, value: string) => {
|
||||
if (!editingLocale) return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue