Skip to content

Conversation

@DrJKL
Copy link
Contributor

@DrJKL DrJKL commented Sep 17, 2025

Summary

Catch more user visible (or audible) text that isn't internationalizable.

Changes

  • What: Linter now checks other attributes for raw text.

Review Focus

What other properties have leaked English text to non-English locales that aren't in here?

@github-actions
Copy link

github-actions bot commented Sep 17, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 11/25/2025, 05:43:29 AM UTC

📈 Summary

  • Total Tests: 496
  • Passed: 484 ✅
  • Failed: 0
  • Flaky: 3 ⚠️
  • Skipped: 9 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 475 / ❌ 0 / ⚠️ 3 / ⏭️ 9
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 6 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@DrJKL DrJKL changed the title Drjkl/i18n-linting Lint: Adding more checks for non internationalized strings Sep 17, 2025
arjansingh
arjansingh previously approved these changes Sep 17, 2025
@snomiao
Copy link
Member

snomiao commented Sep 22, 2025

SGTM!

@comfyui-wiki
Copy link
Member

I'm not a frontend engineer, so I can't review this change. Claude can do better, haha.

@snomiao snomiao marked this pull request as ready for review October 20, 2025 17:22
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Oct 20, 2025
@DrJKL DrJKL added the claude-review Add to trigger a PR code review from Claude Code label Oct 20, 2025
@snomiao snomiao mentioned this pull request Oct 20, 2025
2 tasks
DrJKL pushed a commit that referenced this pull request Oct 20, 2025
## Summary
- Fix i18n linting errors by adding missing locale keys to
`src/locales/en/main.json`
- Update all affected components to use `$t()` for internationalization

## Changes
Added the following locale keys:
- `comfyOrgLogoAlt`: "ComfyOrg Logo"
- `comfy`: "Comfy"
- `pressKeysForNewBinding`: "Press keys for new binding"
- `defaultBanner`: "default banner"
- `enableOrDisablePack`: "Enable or disable pack"
- `openManager`: "Open Manager"
- `graphNavigation`: "Graph navigation"

Updated components to use i18n keys:
- `ComfyOrgHeader.vue`
- `KeybindingPanel.vue`
- `PackBanner.vue`
- `PackIcon.vue`
- `PackEnableToggle.vue`
- `LoadWorkflowWarning.vue`
- `SubgraphBreadcrumb.vue`
- `SignInContent.vue`

## Test plan
- [x] Run `pnpm lint` - all i18n linting errors resolved
- [x] Pre-commit hooks pass

Aim to make #5625 CI/CD pass.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6170-bugfix-Fix-i18n-linting-errors-2926d73d365081c3b7fbcbbf4a8e03d6)
by [Unito](https://www.unito.io)

Co-authored-by: Claude <noreply@anthropic.com>
@DrJKL DrJKL force-pushed the drjkl/i18n-linting branch from aac1538 to f61ab10 Compare October 20, 2025 20:52
@github-actions
Copy link

github-actions bot commented Oct 20, 2025

🎨 Storybook Build Status

Build completed successfully!

⏰ Completed at: 11/25/2025, 05:35:06 AM UTC

🔗 Links


🎉 Your Storybook is ready for review!

@github-actions
Copy link

github-actions bot commented Oct 20, 2025

Bundle Size Report

Summary

  • Raw size: 17 MB baseline 17 MB — 🔴 +1.18 kB
  • Gzip: 3.36 MB baseline 3.36 MB — 🔴 +165 B
  • Brotli: 2.58 MB baseline 2.58 MB — 🔴 +178 B
  • Bundles: 93 current • 93 baseline • 38 added / 38 removed

Category Glance
App Entry Points 🔴 +702 B (3.18 MB) · Graph Workspace 🔴 +214 B (940 kB) · Other 🔴 +182 B (3.84 MB) · UI Components 🔴 +85 B (139 kB) · Vendor & Third-Party ⚪ 0 B (8.56 MB) · Panels & Settings ⚪ 0 B (297 kB) · + 3 more

Per-category breakdown
App Entry Points — 3.18 MB (baseline 3.18 MB) • 🔴 +702 B

Main entry bundles and manifests

File Before After Δ Raw Δ Gzip Δ Brotli
assets/index-PpxmSA5o.js (new) 2.95 MB 🔴 +2.95 MB 🔴 +614 kB 🔴 +466 kB
assets/index-CrTazbIJ.js (removed) 2.95 MB 🟢 -2.95 MB 🟢 -614 kB 🟢 -466 kB
assets/index-CeyoNidv.js (removed) 227 kB 🟢 -227 kB 🟢 -48.6 kB 🟢 -40 kB
assets/index-Cqd4kO2l.js (new) 227 kB 🔴 +227 kB 🔴 +48.6 kB 🔴 +40 kB
assets/index-C5ZWCgp8.js (removed) 345 B 🟢 -345 B 🟢 -243 B 🟢 -232 B
assets/index-LfeCQIcU.js (new) 345 B 🔴 +345 B 🔴 +244 B 🔴 +229 B

Status: 3 added / 3 removed

Graph Workspace — 940 kB (baseline 940 kB) • 🔴 +214 B

Graph editor runtime, canvas, workflow orchestration

File Before After Δ Raw Δ Gzip Δ Brotli
assets/GraphView-D7zg_ZiF.js (new) 940 kB 🔴 +940 kB 🔴 +182 kB 🔴 +139 kB
assets/GraphView-B-MUqenv.js (removed) 940 kB 🟢 -940 kB 🟢 -182 kB 🟢 -139 kB

Status: 1 added / 1 removed

Views & Navigation — 6.54 kB (baseline 6.54 kB) • ⚪ 0 B

Top-level views, pages, and routed surfaces

File Before After Δ Raw Δ Gzip Δ Brotli
assets/UserSelectView-BwY6x1sa.js (new) 6.54 kB 🔴 +6.54 kB 🔴 +2.14 kB 🔴 +1.89 kB
assets/UserSelectView-L9pF1nWG.js (removed) 6.54 kB 🟢 -6.54 kB 🟢 -2.14 kB 🟢 -1.91 kB

Status: 1 added / 1 removed

Panels & Settings — 297 kB (baseline 297 kB) • ⚪ 0 B

Configuration panels, inspectors, and settings screens

File Before After Δ Raw Δ Gzip Δ Brotli
assets/CreditsPanel-BKCc1vrH.js (new) 21.4 kB 🔴 +21.4 kB 🔴 +5.15 kB 🔴 +4.5 kB
assets/CreditsPanel-D-FgbNUv.js (removed) 21.4 kB 🟢 -21.4 kB 🟢 -5.15 kB 🟢 -4.5 kB
assets/KeybindingPanel-BWAt8HRA.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.01 kB
assets/KeybindingPanel-kv7KreK1.js (removed) 13.6 kB 🟢 -13.6 kB 🟢 -3.42 kB 🟢 -3.01 kB
assets/ExtensionPanel-CnPnDinu.js (new) 10.4 kB 🔴 +10.4 kB 🔴 +2.48 kB 🔴 +2.17 kB
assets/ExtensionPanel-DYmJlYkX.js (removed) 10.4 kB 🟢 -10.4 kB 🟢 -2.48 kB 🟢 -2.17 kB
assets/AboutPanel-BnAQJayz.js (removed) 8.61 kB 🟢 -8.61 kB 🟢 -2.31 kB 🟢 -2.06 kB
assets/AboutPanel-D00f3IaN.js (new) 8.61 kB 🔴 +8.61 kB 🔴 +2.31 kB 🔴 +2.06 kB
assets/ServerConfigPanel-CtU6Dayz.js (new) 6.56 kB 🔴 +6.56 kB 🔴 +1.83 kB 🔴 +1.63 kB
assets/ServerConfigPanel-D03NZRwG.js (removed) 6.56 kB 🟢 -6.56 kB 🟢 -1.83 kB 🟢 -1.63 kB
assets/UserPanel-B1KILAyC.js (removed) 6.23 kB 🟢 -6.23 kB 🟢 -1.72 kB 🟢 -1.51 kB
assets/UserPanel-DnpbrQQQ.js (new) 6.23 kB 🔴 +6.23 kB 🔴 +1.72 kB 🔴 +1.51 kB
assets/settings-BXTtSH4O.js 33.3 kB 33.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-C9Pzn-NG.js 25.2 kB 25.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CCy2fA_h.js 27.3 kB 27.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-CQpqEFfl.js 26.6 kB 26.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DHcnxypw.js 21.7 kB 21.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DhFTK9fY.js 25.1 kB 25.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DlT4t_ui.js 25.9 kB 25.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-DRgSrIdD.js 24.2 kB 24.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/settings-tjkeqiZq.js 21.1 kB 21.1 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

UI Components — 139 kB (baseline 139 kB) • 🔴 +85 B

Reusable component library chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/Load3D.vue_vue_type_script_setup_true_lang-BgNROEym.js (new) 53.9 kB 🔴 +53.9 kB 🔴 +8.52 kB 🔴 +7.32 kB
assets/Load3D.vue_vue_type_script_setup_true_lang-Ck6antZN.js (removed) 53.9 kB 🟢 -53.9 kB 🟢 -8.52 kB 🟢 -7.32 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-Bgtk_TNP.js (new) 46.9 kB 🔴 +46.9 kB 🔴 +10.1 kB 🔴 +8.8 kB
assets/WidgetSelect.vue_vue_type_script_setup_true_lang-KsVPhw_D.js (removed) 46.8 kB 🟢 -46.8 kB 🟢 -10.1 kB 🟢 -8.76 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-Cr6uuTrr.js (new) 12.8 kB 🔴 +12.8 kB 🔴 +3.35 kB 🔴 +2.95 kB
assets/WidgetInputNumber.vue_vue_type_script_setup_true_lang-EFa9g0Jr.js (removed) 12.8 kB 🟢 -12.8 kB 🟢 -3.35 kB 🟢 -2.95 kB
assets/ComfyQueueButton-B105maVH.js (new) 7.73 kB 🔴 +7.73 kB 🔴 +2.2 kB 🔴 +1.95 kB
assets/ComfyQueueButton-DSqnu89L.js (removed) 7.73 kB 🟢 -7.73 kB 🟢 -2.2 kB 🟢 -1.95 kB
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-C6rVsKXJ.js (new) 2.16 kB 🔴 +2.16 kB 🔴 +827 B 🔴 +718 B
assets/WidgetLayoutField.vue_vue_type_script_setup_true_lang-CHRwc31X.js (removed) 2.16 kB 🟢 -2.16 kB 🟢 -827 B 🟢 -717 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-BuoUPDmL.js (removed) 897 B 🟢 -897 B 🟢 -502 B 🟢 -433 B
assets/MediaTitle.vue_vue_type_script_setup_true_lang-CHkqB8ct.js (new) 897 B 🔴 +897 B 🔴 +502 B 🔴 +451 B
assets/LazyImage.vue_vue_type_script_setup_true_lang-DNzEEbAp.js 10.8 kB 10.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/UserAvatar.vue_vue_type_script_setup_true_lang-B4qnwhJi.js 1.34 kB 1.34 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetButton-0Kc6B4DO.js 2.04 kB 2.04 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 6 added / 6 removed

Data & Services — 12.5 kB (baseline 12.5 kB) • ⚪ 0 B

Stores, services, APIs, and repositories

File Before After Δ Raw Δ Gzip Δ Brotli
assets/keybindingService-BOoGRq_k.js (new) 7.51 kB 🔴 +7.51 kB 🔴 +1.83 kB 🔴 +1.58 kB
assets/keybindingService-CL2ektdE.js (removed) 7.51 kB 🟢 -7.51 kB 🟢 -1.83 kB 🟢 -1.58 kB
assets/audioService-9HysKnsv.js (removed) 2.2 kB 🟢 -2.2 kB 🟢 -961 B 🟢 -822 B
assets/audioService-BVe2qcMz.js (new) 2.2 kB 🔴 +2.2 kB 🔴 +960 B 🔴 +825 B
assets/serverConfigStore-NS6ibDz2.js 2.83 kB 2.83 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 2 added / 2 removed

Utilities & Hooks — 2.94 kB (baseline 2.94 kB) • ⚪ 0 B

Helpers, composables, and utility bundles

File Before After Δ Raw Δ Gzip Δ Brotli
assets/audioUtils-BkTb7dP6.js (new) 1.41 kB 🔴 +1.41 kB 🔴 +650 B 🔴 +543 B
assets/audioUtils-Dl1NUg64.js (removed) 1.41 kB 🟢 -1.41 kB 🟢 -650 B 🟢 -542 B
assets/mathUtil-CTARWQ-l.js 1.07 kB 1.07 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeFilterUtil-CXKCRJ-m.js 460 B 460 B ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 1 added / 1 removed

Vendor & Third-Party — 8.56 MB (baseline 8.56 MB) • ⚪ 0 B

External libraries and shared vendor chunks

File Before After Δ Raw Δ Gzip Δ Brotli
assets/vendor-chart-Bc7F9itp.js 452 kB 452 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-other-BUi7FCLE.js 3.98 MB 3.98 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-primevue-DTsA3ueY.js 1.96 MB 1.96 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-three-aR6ntw5X.js 1.37 MB 1.37 MB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-tiptap-CaFtSsrn.js 232 kB 232 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-vue-xOQVyCMJ.js 160 kB 160 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/vendor-xterm-BZLod3g9.js 407 kB 407 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
Other — 3.84 MB (baseline 3.84 MB) • 🔴 +182 B

Bundles that do not match a named category

File Before After Δ Raw Δ Gzip Δ Brotli
assets/WidgetRecordAudio-BUvxwOvt.js (new) 20.5 kB 🔴 +20.5 kB 🔴 +5.25 kB 🔴 +4.66 kB
assets/WidgetRecordAudio-rk9QDkwa.js (removed) 20.5 kB 🟢 -20.5 kB 🟢 -5.26 kB 🟢 -4.64 kB
assets/AudioPreviewPlayer-CdMsB9dG.js (new) 13.6 kB 🔴 +13.6 kB 🔴 +3.42 kB 🔴 +3.07 kB
assets/AudioPreviewPlayer-Q_Md9yb5.js (removed) 13.4 kB 🟢 -13.4 kB 🟢 -3.4 kB 🟢 -3.05 kB
assets/WidgetGalleria-BEwxYrSv.js (new) 4.1 kB 🔴 +4.1 kB 🔴 +1.45 kB 🔴 +1.31 kB
assets/WidgetGalleria-BHaa8DSl.js (removed) 4.1 kB 🟢 -4.1 kB 🟢 -1.44 kB 🟢 -1.3 kB
assets/WidgetColorPicker-CLYt4HNB.js (removed) 3.41 kB 🟢 -3.41 kB 🟢 -1.38 kB 🟢 -1.23 kB
assets/WidgetColorPicker-CruZJ7CI.js (new) 3.41 kB 🔴 +3.41 kB 🔴 +1.38 kB 🔴 +1.23 kB
assets/WidgetMarkdown-B_5GxeLM.js (new) 3.16 kB 🔴 +3.16 kB 🔴 +1.31 kB 🔴 +1.16 kB
assets/WidgetMarkdown-DCA3rYQg.js (removed) 3.16 kB 🟢 -3.16 kB 🟢 -1.31 kB 🟢 -1.15 kB
assets/WidgetAudioUI--EsqkcpB.js (removed) 2.82 kB 🟢 -2.82 kB 🟢 -1.12 kB 🟢 -1.02 kB
assets/WidgetAudioUI-BdGeDEJR.js (new) 2.82 kB 🔴 +2.82 kB 🔴 +1.12 kB 🔴 +1.02 kB
assets/WidgetTextarea-6uo7KkEf.js (new) 2.54 kB 🔴 +2.54 kB 🔴 +1.04 kB 🔴 +925 B
assets/WidgetTextarea-BwQUPYTk.js (removed) 2.54 kB 🟢 -2.54 kB 🟢 -1.04 kB 🟢 -907 B
assets/WidgetInputText-BKRpsa0c.js (new) 1.99 kB 🔴 +1.99 kB 🔴 +916 B 🔴 +853 B
assets/WidgetInputText-CsG2gyjY.js (removed) 1.99 kB 🟢 -1.99 kB 🟢 -916 B 🟢 -852 B
assets/WidgetToggleSwitch-CpHzqeGw.js (removed) 1.76 kB 🟢 -1.76 kB 🟢 -833 B 🟢 -727 B
assets/WidgetToggleSwitch-DrfH0EE1.js (new) 1.76 kB 🔴 +1.76 kB 🔴 +833 B 🔴 +730 B
assets/MediaImageBottom-By1oBMyN.js (removed) 1.57 kB 🟢 -1.57 kB 🟢 -741 B 🟢 -647 B
assets/MediaImageBottom-D0dV8yvh.js (new) 1.57 kB 🔴 +1.57 kB 🔴 +741 B 🔴 +645 B
assets/MediaAudioBottom-C1iiuH1c.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -738 B 🟢 -657 B
assets/MediaAudioBottom-Cqn3scAK.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +739 B 🔴 +657 B
assets/MediaVideoBottom-BX_i92Es.js (removed) 1.52 kB 🟢 -1.52 kB 🟢 -737 B 🟢 -657 B
assets/MediaVideoBottom-CMsHtGFU.js (new) 1.52 kB 🔴 +1.52 kB 🔴 +737 B 🔴 +655 B
assets/Media3DBottom-b8eoAh7q.js (new) 1.5 kB 🔴 +1.5 kB 🔴 +730 B 🔴 +651 B
assets/Media3DBottom-Bhnpm3Rs.js (removed) 1.5 kB 🟢 -1.5 kB 🟢 -729 B 🟢 -652 B
assets/Media3DTop-BSxWLBkh.js (new) 1.49 kB 🔴 +1.49 kB 🔴 +765 B 🔴 +653 B
assets/Media3DTop-s8mUqaQ5.js (removed) 1.49 kB 🟢 -1.49 kB 🟢 -766 B 🟢 -653 B
assets/WidgetSelect-DTWjR09V.js (removed) 655 B 🟢 -655 B 🟢 -343 B 🟢 -292 B
assets/WidgetSelect-DwHnMfXF.js (new) 655 B 🔴 +655 B 🔴 +342 B 🔴 +311 B
assets/WidgetInputNumber-BvXD7298.js (new) 595 B 🔴 +595 B 🔴 +327 B 🔴 +277 B
assets/WidgetInputNumber-BwB1pyKz.js (removed) 595 B 🟢 -595 B 🟢 -329 B 🟢 -280 B
assets/Load3D-BwWpRdvT.js (new) 424 B 🔴 +424 B 🔴 +267 B 🔴 +224 B
assets/Load3D-Dk3HXIR-.js (removed) 424 B 🟢 -424 B 🟢 -267 B 🟢 -223 B
assets/WidgetLegacy-Bo6AgXmV.js (new) 364 B 🔴 +364 B 🔴 +236 B 🔴 +194 B
assets/WidgetLegacy-D2h-bvNj.js (removed) 364 B 🟢 -364 B 🟢 -238 B 🟢 -194 B
assets/commands-_s-RvhJR.js 13.6 kB 13.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BuUILW6P.js 13 kB 13 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-BV4R6fLx.js 14.9 kB 14.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CLwPdnT6.js 14.2 kB 14.2 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-CWMchBmd.js 15.9 kB 15.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DazTQhtc.js 12.9 kB 12.9 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DmWrOe93.js 13.7 kB 13.7 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-DwiH7Kr6.js 13.8 kB 13.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/commands-mS3LCNPn.js 14.5 kB 14.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-5lOBdqcC.js 84.5 kB 84.5 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-BOCuaVpE.js 73.4 kB 73.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-ClrEFGUz.js 72.4 kB 72.4 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-CyNU0iQX.js 99.3 kB 99.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-D7gwLxft.js 114 kB 114 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DC8o4BCt.js 86.8 kB 86.8 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-DKiesCV4.js 94.3 kB 94.3 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-Hq2q-OtB.js 83.6 kB 83.6 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/main-USAlAlnj.js 82 kB 82 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaAudioTop-ClVHGsSJ.js 1.46 kB 1.46 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaImageTop-BTxsJ9KT.js 1.68 kB 1.68 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/MediaVideoTop-P2MYHlgs.js 2.76 kB 2.76 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-_Px5dSNW.js 306 kB 306 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-7z21KPoS.js 285 kB 285 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-BWKZzBPK.js 346 kB 346 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CGbgH4Yl.js 320 kB 320 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CjjjdWkV.js 313 kB 313 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-CVrNtxvj.js 288 kB 288 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DLRSA0IK.js 309 kB 309 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-DQV2gnwA.js 372 kB 372 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/nodeDefs-ofqLG5vz.js 310 kB 310 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetChart-DaKVD7Py.js 2.48 kB 2.48 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/WidgetImageCompare-DE5-CeXh.js 2.21 kB 2.21 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B
assets/widgetPropFilter-BIbGSUAt.js 1.28 kB 1.28 kB ⚪ 0 B ⚪ 0 B ⚪ 0 B

Status: 18 added / 18 removed

Myestery
Myestery previously approved these changes Oct 20, 2025
@Myestery
Copy link
Collaborator

we could also fix the failing tests associated with the new rules

@DrJKL
Copy link
Contributor Author

DrJKL commented Oct 20, 2025

we could also fix the failing tests associated with the new rules

Yeah, I wasn't planning on merging this until they were updated. It was a draft, but @snomiao kicked things off with the other PR

@snomiao
Copy link
Member

snomiao commented Oct 22, 2025

*clicked update branch

christian-byrne pushed a commit that referenced this pull request Oct 27, 2025
## Summary

This PR fixes all @intlify/vue-i18n/no-raw-text linting errors
identified in #5625 by replacing raw text strings with proper i18n
translation function calls.

## Changes

Fixed i18n linting errors in the following files:
- `src/components/widget/SampleModelSelector.vue` - "Upload Model" →
`$t('g.upload')`
- `src/components/topbar/CurrentUserButton.vue` - "user profile" →
`$t('g.currentUser')`
- `src/components/sidebar/tabs/nodeLibrary/NodeHelpPage.vue` - "Loading
help" → `$t('g.loading')`
- `src/components/sidebar/SidebarShortcutsToggleButton.vue` -
"shortcuts.shortcuts" → `$t('shortcuts.shortcuts')`
- `src/components/sidebar/SidebarLogoutIcon.vue` - "sideToolbar.logout"
→ `$t('sideToolbar.logout')`
- `src/components/sidebar/SidebarHelpCenterIcon.vue` - "menu.help" →
`$t('menu.help')`
- `src/components/sidebar/SidebarBottomPanelToggleButton.vue` -
"sideToolbar.labels.console" → `$t('sideToolbar.labels.console')`
- `src/components/load3d/controls/viewer/ViewerCameraControls.vue` -
"fov" → `t('load3d.fov')`
- `src/components/helpcenter/HelpCenterMenuContent.vue` - "Help Center
Menu" and "Recent releases" → `$t()` calls

All raw text strings have been replaced with appropriate i18n
translation keys that already exist in `src/locales/en/main.json`.

## Related Issue

Fixes errors reported in CI job:
https://github.com/Comfy-Org/ComfyUI_frontend/actions/runs/18705105609/job/53341658467?pr=5625

This PR aims to help #5625 pass CI/CD checks.

## Test Plan

- All i18n linting errors should be resolved
- No functionality changes - only proper use of i18n system
- Existing translation keys are used from the locale files

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6280-bugfix-fix-intlify-vue-i18n-no-raw-text-linting-errors-2976d73d365081369b43de01486fb409)
by [Unito](https://www.unito.io)

---------

Co-authored-by: GitHub Action <action@github.com>
@DrJKL DrJKL force-pushed the drjkl/i18n-linting branch from 6cdb02b to 85de667 Compare November 25, 2025 01:36
@DrJKL DrJKL requested a review from a team as a code owner November 25, 2025 01:36
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/platform/assets/components/MediaAssetMoreMenu.vue (1)

9-15: Add missing i18n translations to all non-English locale files

The component now uses $t('queue.jobMenu.*') bindings for 7 menu labels. While all keys exist in src/locales/en/main.json, the jobMenu object is missing from all 9 other language files (ar, es, fr, ja, ko, ru, tr, zh, zh-TW).

This means non-English users will see i18n key fallback text instead of translated menu labels. Add the jobMenu object and its 7 keys to each locale file before merging:

  • src/locales/ar/main.json
  • src/locales/es/main.json
  • src/locales/fr/main.json
  • src/locales/ja/main.json
  • src/locales/ko/main.json
  • src/locales/ru/main.json
  • src/locales/tr/main.json
  • src/locales/zh/main.json
  • src/locales/zh-TW/main.json
🧹 Nitpick comments (1)
src/components/maskeditor/BrushSettingsPanel.vue (1)

82-89: Inconsistent i18n function usage.

Line 83 uses $t('maskEditor.stepSize') while the other SliderControl components (lines 56, 65, 74) use the imported t() function. For consistency within this component, prefer using the same pattern.

     <SliderControl
-      :label="$t('maskEditor.stepSize')"
+      :label="t('maskEditor.stepSize')"
       :min="1"
       :max="100"
       :step="1"
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6cdb02b and 85de667.

📒 Files selected for processing (14)
  • eslint.config.ts (2 hunks)
  • src/components/maskeditor/BrushSettingsPanel.vue (1 hunks)
  • src/components/queue/CompletionSummaryBanner.vue (1 hunks)
  • src/components/widget/SampleModelSelector.vue (3 hunks)
  • src/locales/en/main.json (8 hunks)
  • src/platform/assets/components/AssetGrid.vue (1 hunks)
  • src/platform/assets/components/MediaAssetMoreMenu.vue (6 hunks)
  • src/platform/cloud/onboarding/CloudSurveyView.vue (4 hunks)
  • src/platform/cloud/onboarding/components/CloudLogo.vue (1 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue (3 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue (1 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuActions.vue (1 hunks)
  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue (2 hunks)
  • tests-ui/tests/components/dialog/footer/ManagerProgressFooter.test.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (9)
  • src/platform/assets/components/AssetGrid.vue
  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/components/widget/SampleModelSelector.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuActions.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • tests-ui/tests/components/dialog/footer/ManagerProgressFooter.test.ts
  • src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue
🧰 Additional context used
📓 Path-based instructions (18)
**/*.vue

📄 CodeRabbit inference engine (.cursorrules)

**/*.vue: Use setup() function for component logic in Vue 3 Composition API
Utilize ref and reactive for reactive state in Vue 3
Implement computed properties with computed() function
Use watch and watchEffect for side effects in Vue 3
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection in Vue 3
Use Vue 3.5 style of default prop declaration with defineProps()
Organize Vue components in <script> <style> order
Use Tailwind CSS for styling Vue components
Implement responsive design with Tailwind CSS
Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components in Vue 3
Follow Vue 3 style guide and naming conventions
Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Never use :class="[]" to merge class names - always use import { cn } from '@/utils/tailwindUtil' for class merging in Vue templates

**/*.vue: Use TypeScript with Vue 3 Single File Components (.vue files)
Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

**/*.{vue,ts,tsx}: Leverage VueUse functions for performance-enhancing utilities
Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

**/*.{ts,tsx,js,vue}: Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in .prettierrc
Organize imports by sorting and grouping by plugin, and run pnpm format before committing

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
src/**/*.vue

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

Use camelCase for variable and setting names in TypeScript/Vue files

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
**/*.{vue,html}

📄 CodeRabbit inference engine (CLAUDE.md)

Never use dark: or dark-theme: Tailwind variants - instead use semantic values from style.css theme, e.g. bg-node-component-surface

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,vue}: Use const settingStore = useSettingStore() and settingStore.get('Comfy.SomeSetting') to retrieve settings in TypeScript/Vue files
Use await settingStore.set('Comfy.SomeSetting', newValue) to update settings in TypeScript/Vue files
Check server capabilities using api.serverSupportsFeature('feature_name') before using enhanced features
Use api.getServerFeature('config_name', defaultValue) to retrieve server feature configuration

Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
src/**/{composables,components}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Clean up subscriptions in state management to prevent memory leaks

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Use vue-i18n for ALL user-facing strings by adding them to src/locales/en/main.json

Files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursorrules)

Use es-toolkit for utility functions

Files:

  • eslint.config.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

Use TypeScript for type safety

**/*.{ts,tsx}: Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue

Files:

  • eslint.config.ts
**/*.ts

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.ts: Define dynamic setting defaults using runtime context with functions in settings configuration
Use defaultsByInstallVersion property for gradual feature rollout based on version in settings configuration

Files:

  • eslint.config.ts
src/components/**/*.vue

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.vue: Use setup() function in Vue 3 Composition API
Destructure props using Vue 3.5 style in Vue components
Use ref/reactive for state management in Vue 3 Composition API
Implement computed() for derived state in Vue 3 Composition API
Use provide/inject for dependency injection in Vue components
Prefer emit/@event-name for state changes over other communication patterns
Use defineExpose only for imperative operations (such as form.validate(), modal.open())
Replace PrimeVue Dropdown component with Select
Replace PrimeVue OverlayPanel component with Popover
Replace PrimeVue Calendar component with DatePicker
Replace PrimeVue InputSwitch component with ToggleSwitch
Replace PrimeVue Sidebar component with Drawer
Replace PrimeVue Chips component with AutoComplete with multiple enabled
Replace PrimeVue TabMenu component with Tabs without panels
Replace PrimeVue Steps component with Stepper without panels
Replace PrimeVue InlineMessage component with Message
Extract complex conditionals to computed properties
Implement cleanup for async operations in Vue components
Use lifecycle hooks: onMounted, onUpdated in Vue 3 Composition API
Use Teleport/Suspense when needed for component rendering
Define proper props and emits definitions in Vue components

Files:

  • src/components/maskeditor/BrushSettingsPanel.vue
src/components/**/*.{vue,css}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,css}: Use Tailwind CSS only for styling (no custom CSS)
Use the correct tokens from style.css in the design system package

Files:

  • src/components/maskeditor/BrushSettingsPanel.vue
src/components/**/*.{vue,ts,js}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,ts,js}: Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners
Use useIntersectionObserver for visibility detection instead of custom scroll handlers
Use vue-i18n for ALL UI strings

Files:

  • src/components/maskeditor/BrushSettingsPanel.vue
🧠 Learnings (9)
📓 Common learnings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Pull requests must pass `pnpm lint`, `pnpm typecheck`, and relevant tests before merging; keep PRs focused and small
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.{vue,ts,tsx} : Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.828Z
Learning: Applies to src/**/*.{vue,ts} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Applies to **/*.{ts,tsx,vue} : Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InlineMessage component with Message
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Chips component with AutoComplete with multiple enabled
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.vue : Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InputSwitch component with ToggleSwitch
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.vue : Follow Vue 3 style guide and naming conventions
📚 Learning: 2025-11-24T19:47:34.296Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/locales/en/main.json
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
📚 Learning: 2025-11-24T19:46:52.254Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.{vue,ts,tsx} : Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Applied to files:

  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
📚 Learning: 2025-11-24T19:48:23.077Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Applies to **/*.{ts,tsx,vue} : Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Applied to files:

  • eslint.config.ts
📚 Learning: 2025-11-24T19:47:02.828Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.828Z
Learning: Applies to src/**/*.{vue,ts} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Applied to files:

  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
📚 Learning: 2025-11-24T19:47:45.608Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings

Applied to files:

  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/components/maskeditor/BrushSettingsPanel.vue
📚 Learning: 2025-11-24T19:47:34.296Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/*.{vue,ts,tsx} : Follow Vue 3 composition API style guide

Applied to files:

  • eslint.config.ts
📚 Learning: 2025-11-24T19:48:23.077Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Applies to **/*.{ts,tsx,js,vue} : Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in `.prettierrc`

Applied to files:

  • eslint.config.ts
📚 Learning: 2025-11-24T19:47:45.608Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Steps component with Stepper without panels

Applied to files:

  • src/components/maskeditor/BrushSettingsPanel.vue
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: deploy-and-comment
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: test
  • GitHub Check: collect
🔇 Additional comments (7)
eslint.config.ts (1)

194-206: Good attribute coverage for i18n enforcement.

The attributes configuration correctly targets accessibility attributes (aria-label, aria-placeholder, etc.) and user-visible attributes (label, placeholder, title). The v-tooltip inclusion addresses the previous reviewer's concern about catching tooltip directives.

src/platform/cloud/onboarding/components/CloudLogo.vue (1)

3-7: LGTM!

The alt text is correctly localized using the subscription.comfyCloudLogo key, aligning with the coding guidelines requirement to use vue-i18n for all user-facing strings.

src/locales/en/main.json (5)

108-108: LGTM!

The new translation keys (submit, playPause, profile, noItems, beta) are properly added to the g (global) namespace and follow the existing naming conventions.

Also applies to: 238-249


696-696: LGTM!

The preview key is correctly placed under sideToolbar.queueProgressOverlay namespace.


938-938: LGTM!

The stepSize key is correctly added under maskEditor namespace, supporting the localization in BrushSettingsPanel.vue.


1844-1844: LGTM!

The comfyCloudLogo key is correctly placed under the subscription namespace, matching the i18n binding in CloudLogo.vue.


2080-2080: LGTM!

The new assetBrowser keys (assetCollection, selectFrameworks, selectProjects, sortingType) are properly added and follow existing conventions.

Also applies to: 2131-2133

@DrJKL DrJKL force-pushed the drjkl/i18n-linting branch from 85de667 to 6c902b8 Compare November 25, 2025 04:14
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
eslint.config.ts (1)

215-237: Past review comment already identified unused entries in ignoreText.

The concerns about 'App Data:', 'App Path:', and '1.2 MB' have been raised in previous reviews. These entries should be removed or verified as necessary.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 85de667 and 6c902b8.

📒 Files selected for processing (14)
  • eslint.config.ts (2 hunks)
  • src/components/maskeditor/BrushSettingsPanel.vue (1 hunks)
  • src/components/queue/CompletionSummaryBanner.vue (1 hunks)
  • src/components/widget/SampleModelSelector.vue (3 hunks)
  • src/locales/en/main.json (8 hunks)
  • src/platform/assets/components/AssetGrid.vue (1 hunks)
  • src/platform/assets/components/MediaAssetMoreMenu.vue (6 hunks)
  • src/platform/cloud/onboarding/CloudSurveyView.vue (4 hunks)
  • src/platform/cloud/onboarding/components/CloudLogo.vue (1 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue (3 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue (1 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuActions.vue (1 hunks)
  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue (2 hunks)
  • tests-ui/tests/components/dialog/footer/ManagerProgressFooter.test.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (8)
  • tests-ui/tests/components/dialog/footer/ManagerProgressFooter.test.ts
  • src/components/maskeditor/BrushSettingsPanel.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuActions.vue
  • src/components/widget/SampleModelSelector.vue
  • src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue
  • src/platform/assets/components/AssetGrid.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
🧰 Additional context used
📓 Path-based instructions (18)
**/*.vue

📄 CodeRabbit inference engine (.cursorrules)

**/*.vue: Use setup() function for component logic in Vue 3 Composition API
Utilize ref and reactive for reactive state in Vue 3
Implement computed properties with computed() function
Use watch and watchEffect for side effects in Vue 3
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection in Vue 3
Use Vue 3.5 style of default prop declaration with defineProps()
Organize Vue components in <script> <style> order
Use Tailwind CSS for styling Vue components
Implement responsive design with Tailwind CSS
Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components in Vue 3
Follow Vue 3 style guide and naming conventions
Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Never use :class="[]" to merge class names - always use import { cn } from '@/utils/tailwindUtil' for class merging in Vue templates

**/*.vue: Use TypeScript with Vue 3 Single File Components (.vue files)
Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

**/*.{vue,ts,tsx}: Leverage VueUse functions for performance-enhancing utilities
Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

**/*.{ts,tsx,js,vue}: Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in .prettierrc
Organize imports by sorting and grouping by plugin, and run pnpm format before committing

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.vue

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

Use camelCase for variable and setting names in TypeScript/Vue files

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{vue,html}

📄 CodeRabbit inference engine (CLAUDE.md)

Never use dark: or dark-theme: Tailwind variants - instead use semantic values from style.css theme, e.g. bg-node-component-surface

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,vue}: Use const settingStore = useSettingStore() and settingStore.get('Comfy.SomeSetting') to retrieve settings in TypeScript/Vue files
Use await settingStore.set('Comfy.SomeSetting', newValue) to update settings in TypeScript/Vue files
Check server capabilities using api.serverSupportsFeature('feature_name') before using enhanced features
Use api.getServerFeature('config_name', defaultValue) to retrieve server feature configuration

Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/{composables,components}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Clean up subscriptions in state management to prevent memory leaks

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Use vue-i18n for ALL user-facing strings by adding them to src/locales/en/main.json

Files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/components/**/*.vue

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.vue: Use setup() function in Vue 3 Composition API
Destructure props using Vue 3.5 style in Vue components
Use ref/reactive for state management in Vue 3 Composition API
Implement computed() for derived state in Vue 3 Composition API
Use provide/inject for dependency injection in Vue components
Prefer emit/@event-name for state changes over other communication patterns
Use defineExpose only for imperative operations (such as form.validate(), modal.open())
Replace PrimeVue Dropdown component with Select
Replace PrimeVue OverlayPanel component with Popover
Replace PrimeVue Calendar component with DatePicker
Replace PrimeVue InputSwitch component with ToggleSwitch
Replace PrimeVue Sidebar component with Drawer
Replace PrimeVue Chips component with AutoComplete with multiple enabled
Replace PrimeVue TabMenu component with Tabs without panels
Replace PrimeVue Steps component with Stepper without panels
Replace PrimeVue InlineMessage component with Message
Extract complex conditionals to computed properties
Implement cleanup for async operations in Vue components
Use lifecycle hooks: onMounted, onUpdated in Vue 3 Composition API
Use Teleport/Suspense when needed for component rendering
Define proper props and emits definitions in Vue components

Files:

  • src/components/queue/CompletionSummaryBanner.vue
src/components/**/*.{vue,css}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,css}: Use Tailwind CSS only for styling (no custom CSS)
Use the correct tokens from style.css in the design system package

Files:

  • src/components/queue/CompletionSummaryBanner.vue
src/components/**/*.{vue,ts,js}

📄 CodeRabbit inference engine (src/components/CLAUDE.md)

src/components/**/*.{vue,ts,js}: Use existing VueUse composables (such as useElementHover) instead of manually managing event listeners
Use useIntersectionObserver for visibility detection instead of custom scroll handlers
Use vue-i18n for ALL UI strings

Files:

  • src/components/queue/CompletionSummaryBanner.vue
**/*.{ts,tsx,js}

📄 CodeRabbit inference engine (.cursorrules)

Use es-toolkit for utility functions

Files:

  • eslint.config.ts
**/*.{ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

Use TypeScript for type safety

**/*.{ts,tsx}: Never use any type - use proper TypeScript types
Never use as any type assertions - fix the underlying type issue

Files:

  • eslint.config.ts
**/*.ts

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.ts: Define dynamic setting defaults using runtime context with functions in settings configuration
Use defaultsByInstallVersion property for gradual feature rollout based on version in settings configuration

Files:

  • eslint.config.ts
🧠 Learnings (8)
📓 Common learnings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.{vue,ts,tsx} : Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.828Z
Learning: Applies to src/**/*.{vue,ts} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Applies to **/*.{ts,tsx,vue} : Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Chips component with AutoComplete with multiple enabled
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InlineMessage component with Message
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.vue : Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/*.{ts,tsx,vue} : Implement proper TypeScript types throughout the codebase
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InputSwitch component with ToggleSwitch
📚 Learning: 2025-11-24T19:47:45.608Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings

Applied to files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • eslint.config.ts
📚 Learning: 2025-11-24T19:47:34.296Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/locales/en/main.json
📚 Learning: 2025-11-24T19:46:52.254Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.{vue,ts,tsx} : Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Applied to files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • eslint.config.ts
  • src/platform/cloud/onboarding/components/CloudLogo.vue
📚 Learning: 2025-11-24T19:47:45.607Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue OverlayPanel component with Popover

Applied to files:

  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
📚 Learning: 2025-11-24T19:47:02.828Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.828Z
Learning: Applies to src/**/*.{vue,ts} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Applied to files:

  • src/components/queue/CompletionSummaryBanner.vue
  • eslint.config.ts
📚 Learning: 2025-11-24T19:48:23.077Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Applies to **/*.{ts,tsx,vue} : Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Applied to files:

  • eslint.config.ts
📚 Learning: 2025-11-24T19:48:23.077Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Applies to **/*.{ts,tsx,js,vue} : Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in `.prettierrc`

Applied to files:

  • eslint.config.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: test
  • GitHub Check: setup
  • GitHub Check: lint-and-format
  • GitHub Check: collect
🔇 Additional comments (7)
eslint.config.ts (1)

194-206: LGTM! Comprehensive attribute coverage for i18n enforcement.

The attributes mapping correctly enforces i18n for accessibility (ARIA) and UI attributes across all elements, with proper scoping of alt to img elements only. The inclusion of v-tooltip addresses the concern raised in past comments.

src/components/queue/CompletionSummaryBanner.vue (1)

28-32: LGTM! Alt text properly internationalized.

The thumbnail alt attribute is correctly bound to the i18n key, following the established pattern for accessibility text localization.

src/platform/cloud/onboarding/components/CloudLogo.vue (1)

3-7: LGTM! Alt text properly localized.

The image alt attribute is correctly bound to the i18n key under the subscription namespace. The typo noted in past reviews has been addressed.

src/workbench/extensions/manager/components/ManagerProgressFooter.vue (2)

52-58: LGTM! Conditional aria-label properly internationalized.

The expand/collapse button correctly uses conditional i18n binding based on the dialog state. The translation keys are appropriately namespaced under contextMenu.


68-68: LGTM! Close button aria-label properly localized.

The close button correctly uses the global i18n key for common UI strings.

src/platform/assets/components/MediaAssetMoreMenu.vue (1)

9-86: LGTM! All menu labels properly internationalized.

All button labels are correctly bound to i18n keys under the queue.jobMenu namespace. The implementation is consistent and follows established i18n patterns.

src/locales/en/main.json (1)

108-108: LGTM! Translation keys properly added for new i18n bindings.

All new translation keys are appropriately namespaced and support the UI components that were updated to use i18n. The keys follow established naming conventions.

Also applies to: 238-238, 248-249, 696-696, 938-938, 1844-1844, 2080-2080, 2131-2133

@snomiao snomiao requested a review from Copilot November 25, 2025 04:20
@DrJKL DrJKL added claude-review Add to trigger a PR code review from Claude Code and removed claude-review Add to trigger a PR code review from Claude Code labels Nov 25, 2025
Copilot finished reviewing on behalf of snomiao November 25, 2025 04:24
'error',
{
attributes: {
'/.+/': [
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[performance] medium Priority

Issue: Potentially inefficient regex pattern /.+/ used for all element attributes
Context: The pattern /.+/ will match every element in the Vue templates, which could slow down linting on large components with many elements
Suggestion: Consider using more specific element patterns or grouping common attributes to avoid the catch-all regex that processes every single element

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only...
But we could split this and some other slow rules out to a dedicated config (later).

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the internationalization (i18n) linter to catch more user-visible text that isn't internationalized. The linter now checks additional HTML attributes for raw text strings, ensuring better support for non-English locales.

  • Expands ESLint i18n rules to check common accessibility and UI attributes (aria-label, placeholder, title, alt, etc.)
  • Converts hardcoded English strings in Vue components to use i18n translation keys
  • Adds corresponding translation entries to the English locale file and test mocks

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
eslint.config.ts Added comprehensive attributes list to i18n linter configuration to check aria-label, placeholder, title, alt, and other user-facing attributes for raw text
src/locales/en/main.json Added new translation keys for submit, playPause, profile, noItems, preview, stepSize, comfyCloudLogo, assetCollection, and filter selection labels
tests-ui/tests/components/dialog/footer/ManagerProgressFooter.test.ts Updated test mocks to include translation keys for close, Collapse, and Expand
src/workbench/extensions/manager/components/ManagerProgressFooter.vue Replaced hardcoded aria-label strings with i18n keys for Close, Collapse, and Expand buttons
src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuActions.vue Replaced hardcoded "Search" placeholder with i18n key
src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue Replaced hardcoded "No items" title with i18n key
src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue Replaced hardcoded aria-labels for Play/Pause, Volume, and More Options with i18n keys
src/platform/cloud/onboarding/components/CloudLogo.vue Replaced hardcoded alt text "Comfy Cloud Logo" with i18n key
src/platform/cloud/onboarding/CloudSurveyView.vue Replaced hardcoded button labels (Next, Back, Submit) and placeholder text with i18n keys
src/platform/assets/components/MediaAssetMoreMenu.vue Replaced hardcoded menu item labels with i18n keys from queue.jobMenu namespace
src/platform/assets/components/AssetGrid.vue Replaced hardcoded aria-label for asset grid with i18n key
src/components/widget/SampleModelSelector.vue Replaced hardcoded labels for Settings, Profile, and dropdown selectors with i18n keys
src/components/queue/CompletionSummaryBanner.vue Replaced hardcoded alt text "preview" with i18n key
src/components/maskeditor/BrushSettingsPanel.vue Replaced hardcoded "Stepsize" label with properly spelled i18n key "stepSize"

'^[^a-zA-Z]*$|^.{0,1}$|^[\\w._%+-]+@[\\w.-]+\\.[A-Za-z]{2,}$',
ignoreNodes: ['md-icon', 'v-icon', 'pre', 'code', 'script', 'style'],
// Brand names and technical terms that shouldn't be translated
ignoreText: [
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[quality] low Priority

Issue: Inconsistent ordering in ignoreText array
Context: The array mixes different categories (file formats, units, brand names) without clear organization, making it harder to maintain
Suggestion: Consider grouping related items (units: GB/KB/MB/ms/px, formats: png/JSON/YAML, brands: ComfyUI/GitHub/OpenAI) or adding comments to document the organization

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's alphabetical, except for 1.2 MB

Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comprehensive PR Review

This review is generated by Claude. It may not always be accurate, as with human reviewers. If you believe that any of the comments are invalid or incorrect, please state why for each. For others, please implement the changes in one way or another.

Review Summary

PR: Lint: Adding more checks for non internationalized strings (#5625)
Impact: 95 additions, 45 deletions across 14 files

Issue Distribution

  • Critical: 0
  • High: 0
  • Medium: 1
  • Low: 1

Category Breakdown

  • Architecture: 0 issues
  • Security: 0 issues
  • Performance: 1 issue
  • Code Quality: 1 issue

Key Findings

Architecture & Design

This PR follows established i18n patterns well. The changes consistently replace hardcoded English strings with proper $t() translation calls, and the new ESLint rule configuration follows the existing structure. The addition of more attribute checks (aria-label, placeholder, title, etc.) is architecturally sound and fills gaps in the current i18n coverage.

Security Considerations

No security issues identified. The changes are limited to linting configuration and text internationalization, which poses no security risks.

Performance Impact

One medium-priority concern with the catch-all regex pattern /.+/ that will match every element in Vue templates. This could impact linting performance on large components, though the impact is likely minimal for typical use cases.

Integration Points

The changes properly integrate with the existing i18n system and maintain backward compatibility. All hardcoded strings were correctly mapped to appropriate translation keys in the locales file.

Positive Observations

  • Excellent consistency in applying the $t() pattern across all changed files
  • Proper test updates to include the new translation keys
  • Good organization of the ignoreText array with relevant technical terms and brand names
  • The new linting rules catch important accessibility attributes (aria-label, alt text) that improve internationalization coverage
  • Changes follow established Vue 3 + i18n patterns in the codebase

References

Next Steps

  1. Consider addressing the regex performance suggestion for better linting efficiency
  2. Optional: Organize the ignoreText array for better maintainability
  3. The changes are ready for merge - this is a valuable improvement to i18n coverage

This is a comprehensive automated review. For architectural decisions requiring human judgment, please request additional manual review.

@github-actions github-actions bot removed the claude-review Add to trigger a PR code review from Claude Code label Nov 25, 2025
@DrJKL DrJKL force-pushed the drjkl/i18n-linting branch from 5a3fa19 to d975a19 Compare November 25, 2025 05:33
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
src/platform/cloud/onboarding/CloudSurveyView.vue (1)

83-91: Consider a more semantically appropriate translation key.

The useCaseOther placeholder uses cloudOnboarding.survey.options.industry.otherPlaceholder, which references "industry" in the key path but is used for a use-case field. While "Please specify" is generic enough to work, using a key that semantically matches the field (or a shared generic key) would be clearer.

Consider one of these approaches:

                :placeholder="
-                  $t('cloudOnboarding.survey.options.industry.otherPlaceholder')
+                  $t('cloudOnboarding.survey.options.otherPlaceholder')
                "

Or add a dedicated use-case key to main.json:

"useCase": {
  "otherPlaceholder": "Please specify"
}
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6c902b8 and d975a19.

📒 Files selected for processing (14)
  • eslint.config.ts (2 hunks)
  • src/components/maskeditor/BrushSettingsPanel.vue (1 hunks)
  • src/components/queue/CompletionSummaryBanner.vue (1 hunks)
  • src/components/widget/SampleModelSelector.vue (3 hunks)
  • src/locales/en/main.json (8 hunks)
  • src/platform/assets/components/AssetGrid.vue (1 hunks)
  • src/platform/assets/components/MediaAssetMoreMenu.vue (6 hunks)
  • src/platform/cloud/onboarding/CloudSurveyView.vue (4 hunks)
  • src/platform/cloud/onboarding/components/CloudLogo.vue (1 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue (3 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue (1 hunks)
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuActions.vue (1 hunks)
  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue (2 hunks)
  • tests-ui/tests/components/dialog/footer/ManagerProgressFooter.test.ts (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (9)
  • tests-ui/tests/components/dialog/footer/ManagerProgressFooter.test.ts
  • src/components/maskeditor/BrushSettingsPanel.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenuActions.vue
  • src/components/queue/CompletionSummaryBanner.vue
  • src/renderer/extensions/vueNodes/widgets/components/audio/AudioPreviewPlayer.vue
  • src/platform/assets/components/MediaAssetMoreMenu.vue
  • src/workbench/extensions/manager/components/ManagerProgressFooter.vue
  • src/components/widget/SampleModelSelector.vue
  • eslint.config.ts
🧰 Additional context used
📓 Path-based instructions (12)
**/*.vue

📄 CodeRabbit inference engine (.cursorrules)

**/*.vue: Use setup() function for component logic in Vue 3 Composition API
Utilize ref and reactive for reactive state in Vue 3
Implement computed properties with computed() function
Use watch and watchEffect for side effects in Vue 3
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection in Vue 3
Use Vue 3.5 style of default prop declaration with defineProps()
Organize Vue components in <script> <style> order
Use Tailwind CSS for styling Vue components
Implement responsive design with Tailwind CSS
Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Implement proper props and emits definitions in Vue components
Utilize Vue 3's Teleport component when needed
Use Suspense for async components in Vue 3
Follow Vue 3 style guide and naming conventions
Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Never use :class="[]" to merge class names - always use import { cn } from '@/utils/tailwindUtil' for class merging in Vue templates

**/*.vue: Use TypeScript with Vue 3 Single File Components (.vue files)
Name Vue components in PascalCase (e.g., MenuHamburger.vue)

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (.cursorrules)

**/*.{vue,ts,tsx}: Leverage VueUse functions for performance-enhancing utilities
Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{ts,tsx,js,vue}

📄 CodeRabbit inference engine (.cursorrules)

Implement proper error handling in components and services

**/*.{ts,tsx,js,vue}: Use 2-space indentation, single quotes, no semicolons, and maintain 80-character line width as configured in .prettierrc
Organize imports by sorting and grouping by plugin, and run pnpm format before committing

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.vue

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.vue: Use the Vue 3 Composition API instead of the Options API when writing Vue components (exception: when overriding or extending PrimeVue components for compatibility)
Use setup() function for component logic
Utilize ref and reactive for reactive state
Implement computed properties with computed()
Use watch and watchEffect for side effects
Implement lifecycle hooks with onMounted, onUpdated, etc.
Utilize provide/inject for dependency injection
Use vue 3.5 style of default prop declaration
Use Tailwind CSS for styling
Implement proper props and emits definitions
Utilize Vue 3's Teleport component when needed
Use Suspense for async components
Follow Vue 3 style guide and naming conventions

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.{vue,ts}

📄 CodeRabbit inference engine (.github/copilot-instructions.md)

src/**/*.{vue,ts}: Leverage VueUse functions for performance-enhancing styles
Implement proper error handling
Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{ts,tsx,js,jsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

Use camelCase for variable and setting names in TypeScript/Vue files

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{vue,html}

📄 CodeRabbit inference engine (CLAUDE.md)

Never use dark: or dark-theme: Tailwind variants - instead use semantic values from style.css theme, e.g. bg-node-component-surface

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx,vue}: Use const settingStore = useSettingStore() and settingStore.get('Comfy.SomeSetting') to retrieve settings in TypeScript/Vue files
Use await settingStore.set('Comfy.SomeSetting', newValue) to update settings in TypeScript/Vue files
Check server capabilities using api.serverSupportsFeature('feature_name') before using enhanced features
Use api.getServerFeature('config_name', defaultValue) to retrieve server feature configuration

Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

src/**/*.{ts,tsx,vue}: Sanitize HTML with DOMPurify to prevent XSS attacks
Avoid using @ts-expect-error; use proper TypeScript types instead
Use es-toolkit for utility functions instead of other utility libraries
Implement proper TypeScript types throughout the codebase

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/{composables,components}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Clean up subscriptions in state management to prevent memory leaks

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/*.{vue,ts,tsx}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Follow Vue 3 composition API style guide

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
src/**/{components,composables}/**/*.{ts,tsx,vue}

📄 CodeRabbit inference engine (src/CLAUDE.md)

Use vue-i18n for ALL user-facing strings by adding them to src/locales/en/main.json

Files:

  • src/platform/assets/components/AssetGrid.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
🧠 Learnings (8)
📓 Common learnings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Pull requests must pass `pnpm lint`, `pnpm typecheck`, and relevant tests before merging; keep PRs focused and small
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.{vue,ts,tsx} : Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.828Z
Learning: Applies to src/**/*.{vue,ts} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-11-24T19:48:23.077Z
Learning: Applies to **/*.{ts,tsx,vue} : Enforce ESLint rules for Vue + TypeScript including: no floating promises, no unused imports, and i18n raw text restrictions in templates
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Chips component with AutoComplete with multiple enabled
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InlineMessage component with Message
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.vue : Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue InputSwitch component with ToggleSwitch
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/*.{ts,tsx,vue} : Implement proper TypeScript types throughout the codebase
📚 Learning: 2025-11-24T19:46:52.254Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.{vue,ts,tsx} : Use vue-i18n in Composition API for any string literals and place new translation entries in src/locales/en/main.json

Applied to files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
📚 Learning: 2025-11-24T19:47:45.608Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.608Z
Learning: Applies to src/components/**/*.{vue,ts,js} : Use vue-i18n for ALL UI strings

Applied to files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
📚 Learning: 2025-11-24T19:47:34.296Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:34.296Z
Learning: Applies to src/**/{components,composables}/**/*.{ts,tsx,vue} : Use vue-i18n for ALL user-facing strings by adding them to `src/locales/en/main.json`

Applied to files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
  • src/platform/cloud/onboarding/components/CloudLogo.vue
  • src/locales/en/main.json
📚 Learning: 2025-11-24T19:47:02.828Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .github/copilot-instructions.md:0-0
Timestamp: 2025-11-24T19:47:02.828Z
Learning: Applies to src/**/*.{vue,ts} : Use vue-i18n in composition API for any string literals. Place new translation entries in src/locales/en/main.json

Applied to files:

  • src/platform/assets/components/AssetGrid.vue
  • src/platform/cloud/onboarding/CloudSurveyView.vue
  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
📚 Learning: 2025-11-24T19:47:45.607Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: src/components/CLAUDE.md:0-0
Timestamp: 2025-11-24T19:47:45.607Z
Learning: Applies to src/components/**/*.vue : Replace PrimeVue Dropdown component with Select

Applied to files:

  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
📚 Learning: 2025-11-24T19:46:52.254Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.vue : Do not use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage). Use replacements: Select, Popover, DatePicker, ToggleSwitch, Drawer, AutoComplete, Tabs, Stepper, Message respectively

Applied to files:

  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
📚 Learning: 2025-11-24T19:46:52.254Z
Learnt from: CR
Repo: Comfy-Org/ComfyUI_frontend PR: 0
File: .cursorrules:0-0
Timestamp: 2025-11-24T19:46:52.254Z
Learning: Applies to **/*.vue : Never use deprecated PrimeVue components (Dropdown, OverlayPanel, Calendar, InputSwitch, Sidebar, Chips, TabMenu, Steps, InlineMessage)

Applied to files:

  • src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: setup
  • GitHub Check: collect
  • GitHub Check: test
  • GitHub Check: lint-and-format
🔇 Additional comments (15)
src/platform/cloud/onboarding/components/CloudLogo.vue (1)

3-7: LGTM! Alt text properly internationalized.

The alt text binding correctly references the translation key, and the past typo issue has been addressed.

src/renderer/extensions/vueNodes/widgets/components/form/dropdown/FormDropdownMenu.vue (1)

70-78: LGTM! Empty state indicator properly internationalized.

The title attribute correctly uses i18n binding for the "No items" tooltip, improving accessibility for non-English users.

src/platform/assets/components/AssetGrid.vue (1)

2-10: LGTM! ARIA label properly internationalized.

The aria-label binding correctly uses i18n, ensuring screen reader users in different locales receive properly translated grid labels.

src/platform/cloud/onboarding/CloudSurveyView.vue (5)

44-52: LGTM! Button labels properly internationalized.

The "Next" button label correctly uses the i18n binding $t('g.next').


94-107: LGTM! Navigation buttons properly internationalized.

The "Back" and "Next" button labels correctly use i18n bindings.


138-146: LGTM! Placeholder uses i18n binding.

The industryOther placeholder correctly uses the i18n key, though see earlier comment about potential key path improvement for the useCaseOther field.


149-162: LGTM! Navigation buttons properly internationalized.

The "Back" and "Next" button labels correctly use i18n bindings.


194-208: LGTM! Final step buttons properly internationalized.

The "Back" and "Submit" button labels correctly use i18n bindings from the global namespace.

src/locales/en/main.json (7)

108-108: LGTM! Translation key added for submit button.

The submit key properly supports the internationalization of submit buttons across the application.


238-249: LGTM! Multiple general-purpose translation keys added.

The new keys (playPause, beta, profile, noItems) provide appropriate translations for UI elements across the application.


696-696: LGTM! Preview label translation added.

The preview key supports the queue progress overlay preview feature internationalization.


938-938: LGTM! Mask editor translation key added.

The stepSize key properly supports the brush settings internationalization.


1844-1844: LGTM! Logo alt text translation added.

The comfyCloudLogo key supports accessible alt text for the Comfy Cloud logo.


2080-2080: LGTM! Asset browser translation key added.

The assetCollection key supports ARIA label internationalization for the asset grid.


2131-2133: LGTM! Asset browser filter translation keys added.

The new keys (selectFrameworks, selectProjects, sortingType) support internationalization of asset browser filtering options.

@DrJKL DrJKL merged commit 8b5cfe7 into main Nov 25, 2025
28 checks passed
@DrJKL DrJKL deleted the drjkl/i18n-linting branch November 25, 2025 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants