mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 02:32:18 +00:00
[i18n] Translate toast messages (#3228)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { t } from '@/i18n'
|
||||
import type { Settings } from '@/schemas/apiSchema'
|
||||
import type { ComfyApp } from '@/scripts/app'
|
||||
import { useSettingStore } from '@/stores/settingStore'
|
||||
@@ -85,7 +86,9 @@ export class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
|
||||
useSettingStore()
|
||||
.set(id, value)
|
||||
.catch((err) => {
|
||||
useToastStore().addAlert(`Error saving setting '${id}': ${err}`)
|
||||
useToastStore().addAlert(
|
||||
t('toastMessages.errorSaveSetting', { id, err })
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user