mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-24 08:19:51 +00:00
[i18n] Add INodeSlot.localized_name field (#376)
* [i18n] Add INodeSlot.localized_name field * nit
This commit is contained in:
@@ -117,7 +117,7 @@ export function drawSlot(
|
||||
|
||||
// render slot label
|
||||
if (render_text) {
|
||||
const text = slot.label != null ? slot.label : slot.name
|
||||
const text = slot.label || slot.localized_name || slot.name
|
||||
if (text) {
|
||||
// TODO: Finish impl. Highlight text on mouseover unless we're connecting links.
|
||||
ctx.fillStyle = label_color
|
||||
|
||||
Reference in New Issue
Block a user