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:
Classic298 2026-10-11 15:58:24 +02:00 • committed by GitHub
parent a41a7d44d9
commit 73be5c98f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;