[i18n] Add INodeSlot.localized_name field (#376)

* [i18n] Add INodeSlot.localized_name field

* nit
This commit is contained in:
Chenlei Hu
2024-12-13 12:01:21 -08:00
committed by GitHub
parent 1c1241bdb1
commit 0048b5a0fe
4 changed files with 21 additions and 5 deletions

View File

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