Comfy-Org / Comfy-Org/ComfyUI_frontend
i18n: src/scripts/ui.ts has 27+ hardcoded English strings (toolbar, queue, status bar)
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 702
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 512
Description
`src/scripts/ui.ts` contains many hardcoded English strings that do not use `t()` / `$t()`.
### Full List
**Main buttons (~L488-704):** "Queue Prompt", "Extra options", "Batch count", "Queue Front", "View Queue", "View History", "Save", "Save (API Format)", "Load", "Refresh", "Clipspace", "Clear", "Clear workflow?" (confirm), "Load Default", "Load default workflow?" (confirm), "Reset View"
**Status bar (~L704-705):** "Queue size: ", "ERR"
**Queue/History list (~L269-344):** "Running", "Cancel", "Delete", "Load" (job action buttons); "Queue", "History" (list titles); "Clear ", "Refresh", "Close", "View " prefixes
**Other settings (~L472-478):** "Auto Queue" + tooltip "Automatically queue prompt when the queue size hits 0"; "instant" / "change" toggle switch text
### Suggested Fix
Migrate these UI elements to Vue components with i18n, or at minimum import `t()` in `ui.ts` and replace all hardcoded strings.
Contributor guide
Research direction
Start in src/scripts/ui.ts at the listed queue/history, toolbar, status bar, and settings sections, and inspect existing t()/$t() usage and nearby Vue components. Decide how these strings should be integrated with the frontend's i18n approach, then verify that all listed labels, tooltips, confirmations, and prefixes are localized without changing their UI behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend, internationalization
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100