Skip to content

chore(i18n): web/desktop 硬编码中文 i18n 化(round-30) - #2175

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

chore(i18n): web/desktop 硬编码中文 i18n 化(round-30)#2175
DeliciousBuding merged 1 commit into
masterfrom
chore/cleanup-round-30

Conversation

@DeliciousBuding

Copy link
Copy Markdown
Collaborator

做了什么(round-30,#2154 P3 web/desktop 收口)

  • web(common.json +8 键)未命名 Agent/新 Agent NHub 私聊/群聊 标题兜底、未命名项目、Projects 列表/详情/分组三处错误兜底 → 全部 t()
  • desktop(locales +16 键):Skill/MCP 市场与 Agent 配置错误兜底、附件选择标题、未命名 Agent/项目/文档/会话、Threads/sessions/items 错误兜底、文档时间格式化(今天/昨天/M月D日)
  • 注入方式:hooks 内 useTranslation() 传入纯映射函数(可选 t + zh 兜底),测试零改动;desktopAttachments 非组件模块用运行时 getI18n()
  • 数据域豁免'允许'/'未配置模型'/'Hub 默认策略'/'Hub 配置档案'/'Hub 所有者范围' 等数据匹配与 fixture/demo 文案维持不译(已登记 [整理] 静态审计 backlog 跟踪(探索 lane 剩余项) #2154

验证证据(huawei-dev,worktree cleanup-round-30)

  • tsc:web / desktop / workbench 全绿(desktop 含 shared+workbench 源)
  • vitest:web 258/258、desktop 588/588 全绿
  • 门禁:verify-i18n-deadkeys(新键全部被引用)/ doc-ssot / ci-gates / openapi-contract / migration-idempotency / git diff --check 全绿
  • 无 Go 改动,无需重建 hub/edge

边界

  • 残留 73 行 CJK 均为三类:t?.('key') ?? 中文兜底(i18n-ready)、数据域匹配、fixture/demo 内容

@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: ca2a68b5-23f7-4f0f-9329-243a4672759e

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.

- web:未命名 Agent/新 Agent N、Hub 私聊/群聊标题兜底、未命名项目、Projects 三处错误兜底 → common.json +8 键(zh/en)
- desktop:Skill/MCP 市场与 Agent 配置错误、附件选择标题、未命名 Agent/项目/文档/会话、Threads/sessions/消息错误兜底、文档时间格式 → locales +16 键(zh/en)
- 注入方式:hooks 内 useTranslation 传入纯映射函数(可选 t + zh 兜底,测试零改动);desktopAttachments 用运行时 getI18n
- 数据域豁免:'允许'/'未配置模型'/'Hub 默认策略'/'Hub 配置档案' 匹配与 fixture/demo 文案维持不译

Co-authored-by: Cursor <cursor@vectorcontrol.tech>
@DeliciousBuding
DeliciousBuding merged commit 27fabab into master Sep 1, 2026
41 checks passed
@DeliciousBuding
DeliciousBuding deleted the chore/cleanup-round-30 branch September 1, 2026 10:10
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