Skip to content

chore(i18n): workbench/shared UI 文案全量 i18n 化 + tasks 常量 label 化 - #2172

Merged
DeliciousBuding merged 1 commit into
masterfrom
chore/cleanup-round-29
Sep 1, 2026
Merged

chore(i18n): workbench/shared UI 文案全量 i18n 化 + tasks 常量 label 化#2172
DeliciousBuding merged 1 commit into
masterfrom
chore/cleanup-round-29

Conversation

@DeliciousBuding

Copy link
Copy Markdown
Collaborator

做了什么(round-29,#2154 P3 i18n 收口)

  • tasks lanetasks/shared.tsx 模块级常量(NAV_PRIMARY/QUICK/PANE_TITLES/VIEW_MODES)改为渲染期 t() 求值;workbenchTasksPageModel 标签构造注入 t
  • workbench 组件:composer 状态/占位、ConversationSidebar 置顶·资料卡·查看资料、WorkspaceHeader 会话类型/tooltip、agentCapabilities 摘要、ContactRows 关系标签·接受/拒绝·添加好友、QuickActionGrid 文案、SettingsNav/SettingsMain 状态文案、DocMain 上传/模板库、FilePreviewParts PDF/HTML/图片标题、AddContactModal 区号/有效期/备注占位、ConversationHost 附件失败提示、WorkbenchRoutes 路由兜底——全部 t(),zh 兜底保留
  • shared:inspectorEvidence 状态/空态/读取中标签、SlideshowPreview 幻灯片 aria、TablePreview 行列统计、adapterMapBlock「运行失败」、normalizeThreadItems 用户兜底——注入可选 translator(与 normalizeHubMessages 同模式)
  • 资源:chatview +19 键、workbench +40 键,zh/en 对称
  • 测试:P2: 统一前端测试 i18next 实例与资源入口 #1717 惯例修正(ConversationSidebar en 断言→Pin;ComposerContextParts 实测 zh 断言→opt zh;TaskMainViews/model 测试 opt zh + fixedT)

明确豁免(登记 #2154,不属 UI 文案)

  • demo/fixture 数据(workbenchDemo*/agentProfileCatalog*/workbenchDocPreview/workbenchProjectPreview)
  • 数据域中文(TaskItem.status 值域、board columns、workbenchTaskGroups 匹配、workbenchPreferences 值解析、design/labels 前缀匹配、normalizeApprovalRisk 输入归一化)

验证证据(本机 huawei-dev,worktree cleanup-round-29)

  • tsc:shared / workbench / web / desktop 四包全绿
  • vitest:shared 2756、workbench 1659、web 258、desktop 588 全绿;desktop 宿主 shared-ci(=CI shard 面)4415/4415
  • 门禁:verify-i18n-deadkeys / doc-ssot / ci-gates / openapi-contract / migration-idempotency / git diff --check 全绿
  • 无 Go 改动,无需重建 hub/edge

探索副产物(本轮并跑,只读)

  • 后端性能 8 项核实:3 项已修复可打勾(route-decision SQL 聚合 [P41.4] Hub agentteam routing residual pure slice (~716 LOC) #842、relay 补发闭环、pending 逐出 dropped 指标)、4 项仍存在(team events 无游标分页、消息搜索 OR ILIKE、SQLiteStore 全量快照、typing 回调直查 DB)、1 项待核实(stream tick UPDATE)
  • web/desktop 硬编码中文盘点:63 行/11 文件 → round-30 范围

…P3)

- tasks/shared.tsx 模块级常量改为渲染期 t() 求值(buildNavPrimary/buildNavQuick/paneTitle/buildViewModes)
- workbenchTasksPageModel 标签构造注入 t;WorkbenchTasksRouteView 传 SHARED ns
- composer 状态/占位标签、ConversationSidebar 置顶/资料卡、WorkspaceHeader 会话类型/tooltip、agentCapabilities 摘要、ContactRows 关系标签、QuickActionGrid、SettingsNav/SettingsMain 状态文案、DocMain 上传/模板库、FilePreviewParts PDF/HTML/图片标题、AddContactModal 区号/有效期等全部走 t(),zh 兜底保留
- shared:inspectorEvidence 状态/空态/读取中标签、Slideshow 幻灯片 aria、TablePreview 行列统计、adapterMapBlock 运行失败、normalizeThreadItems 用户兜底全部注入可选 t
- chatview +19 键 / workbench +40 键(zh/en 对称);测试按 #1717 惯例 opt-in 对应语言
- demo/fixture/数据域中文(workbenchDemo*/TaskGroups/CatalogData/board status 等)明确豁免,登记 #2154

Co-authored-by: Cursor <cursor@vectorcontrol.tech>
@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 2ffe4565-a4c4-4d58-b827-a426b433f7e6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DeliciousBuding
DeliciousBuding merged commit d318dad into master Sep 1, 2026
41 checks passed
@DeliciousBuding
DeliciousBuding deleted the chore/cleanup-round-29 branch September 1, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant