mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 16:24:06 +00:00
Translate core setting name & tooltip (#1765)
* lazy eval default value * Add setting translation * Adjust hooks * Add all translations * nit * Normalized setting id * Update locales * Fallback * Locale => Language * Locale => Language * Update translations
This commit is contained in:
@@ -80,7 +80,9 @@ export class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
|
||||
|
||||
getSettingDefaultValue(id: string) {
|
||||
const param = this.settingsParamLookup[id]
|
||||
return param?.defaultValue
|
||||
return typeof param?.defaultValue === 'function'
|
||||
? param.defaultValue()
|
||||
: param?.defaultValue
|
||||
}
|
||||
|
||||
async setSettingValueAsync<K extends keyof Settings>(
|
||||
|
||||
Reference in New Issue
Block a user