-
Couldn't load subscription status.
- Fork 391
Use localized labels for Vue node slots and inputs/outputs (fallback to names) #5773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🎭 Playwright Test Results❌ Some tests failed ⏰ Completed at: 09/26/2025, 01:50:19 AM UTC 📈 Summary
📊 Test Reports by Browser
🎉 Click on the links above to view detailed test results for each browser configuration. |
|
Test failures are expected (the text next to the widgets changed from the name to the label which changed the apperance of some UI baseline images): https://531ead11.comfyui-playwright-chromium.pages.dev/#?q=s:failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: (Annoying, but out of scope) changing the language setting while in vue mode does not trigger update of labels. Either toggling vue mode or a reload is required.
| name: widget.name, | ||
| type: widget.type, | ||
| value: widget.value, | ||
| label: widget.label, | ||
| options: widget.options, | ||
| callback: widget.callback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it could just use the spread operator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it's extracting safe properties, otherwise private fields would be included.
e6300f8
True we have that tracked here: I think we can handle it easily in the next milestone (it's also in notion). |
e6300f8 to
d25ac60
Compare
…to names) (#5773) ## Summary Fixes #5697 by adding internationalization support for Vue node widget labels and output slot names with fallback to original names. ## Changes - **What**: Added `label` field to widget data structures and `localized_name` support for output slots - **Breaking**: None - all changes maintain backward compatibility with fallback to original names ## Review Focus Translation key resolution for node definitions and proper fallback chain for widget labels and slot names. ## Screenshots (if applicable) Observe that there is parity between Litegraph and Vue nodes w.r.t. localization of labels/names. <img width="3455" height="1417" alt="Screenshot from 2025-09-25 13-19-54" src="https://github.com/user-attachments/assets/93ee8fae-3671-4175-a941-6462f942d0f1" /> <img width="3455" height="1417" alt="Screenshot from 2025-09-25 13-19-38" src="https://github.com/user-attachments/assets/9573eb86-d74a-40ed-a0b5-e30afd3da6eb" /> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5773-Use-localized-labels-for-Vue-node-slots-and-inputs-outputs-fallback-to-names-2796d73d365081e08fb7d38464f4aa90) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <[email protected]> Co-authored-by: Alexander Brown <[email protected]>
Summary
Fixes #5697 by adding internationalization support for Vue node widget labels and output slot names with fallback to original names.
Changes
labelfield to widget data structures andlocalized_namesupport for output slotsReview Focus
Translation key resolution for node definitions and proper fallback chain for widget labels and slot names.
Screenshots (if applicable)
Observe that there is parity between Litegraph and Vue nodes w.r.t. localization of labels/names.
┆Issue is synchronized with this Notion page by Unito