fix(shared): 37 个硬编码中文 title/subtitle 迁移到 i18n 资源 - #1750
Conversation
workbench 页面中 33 个 title 和 4 个 subtitle 属性仍使用硬编码中文, 英文 locale 用户会看到 mixed-language 界面。将全部迁移到 sharedWorkbench namespace 的 t() 调用,新增 settings.section.* / projects.section.* / contacts.section.* 键(zh + en),覆盖设置面板子区标题、项目面板分区 标题、联系人分组标题和副标题。 SettingsPanes/SettingsMain 使用双 namespace 模式(CHATVIEW for aria, SHARED_WORKBENCH for section titles),避免 key-echo 返回 key 字符串。 Co-authored-by: Cursor <cursor@vectorcontrol.tech>
|
Warning Review limit reached
Next review available in: 32 minutes Limit details: You’ve used all 1 included review currently available under your plan. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
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. Comment |
SettingsMain title="设置加载失败" 迁移到 tw("settings.loadFailed") 后,
desktop/shared 测试 i18n 实例默认 'test' 语言(key-echo),tw() 返回
key 而非中文。将 SettingsPage.test.tsx 断言从 '设置加载失败' 改为
'settings.loadFailed' 匹配 key-echo 行为。
修复 PR #1750 引入的 frontend-desktop (1) 和 Frontend coverage baseline
(@agenthub/shared) CI 失败。
Co-authored-by: Cursor <cursor@vectorcontrol.tech>
Summary
title+ 4 个subtitle属性从硬编码中文迁移到sharedWorkbenchnamespace 的t()调用settings.section.*(11 keys)、projects.section.*(12 keys)、contacts.section.*(5 keys with subtitles),zh + enSettingsPanes/SettingsMain使用双 namespace(CHATVIEW for aria, SHARED_WORKBENCH for section titles)验收
Test plan
pnpm --filter @agenthub/shared typecheck— PASSpython scripts/verify/verify-i18n-callsites.py— PASS