Translate runtime-generated widget labels (#2688)

This commit is contained in:
bymyself
2025-02-23 08:16:25 -07:00
committed by GitHub
parent d033640927
commit e7420fe2e3
2 changed files with 81 additions and 10 deletions

View File

@@ -82,7 +82,8 @@ export const useLitegraphService = () => {
)
}
if (config.widget) {
config.widget.label = st(nameKey, inputName)
const fallback = config.widget.label ?? inputName
config.widget.label = st(nameKey, fallback)
}
} else {
// Node connection inputs