Repository navigation
Closed
Labels
V1.0Milestone v1.0; mirrors the GitHub milestoneMilestone v1.0; mirrors the GitHub milestoneready-for-agentFully specified, ready for an AFK agentFully specified, ready for an AFK agent
Milestone
Description
What to build
按 docs/research/2026-09-18-dsh-i18n-client-localization.md 的结论,把 packages/client 的 UI 文案接入 DSH 自带 locale 服务,不引入 Paraglide:
- 增加 @deepseek-ai/dsh-client-locale@0.1.5-rc.2(devDep + dsh.client.inject);inject 增加 locale。
- 新建 packages/client/src/client/locales.ts:namespace botharness;zh 为 key 源,en satisfies Record<BotharnessKey, string>;声明 LocaleNamespaceMap 合并。
- apply() 中通过 Client locale seam 注册 zh/en;sidebar.panellist 的 label 使用绑定后的翻译函数;相关 slot 注册 locale namespace。
- 把 STATE_LABELS 与各组件里的硬编码文案迁到 locale(品牌名/模型名等专有名词除外)。
- 覆盖 UI Foundation: BotHarness motion preference(System / Reduce / Full) #128 的 Follow system / Reduce motion / Full motion、UI Tracer: Channel composer island 与 PersonaBot activity region #129 composer activity region、Bot activity: shared snapshot and live DM presence #120/Bot activity: safe tool summaries and effects #122/Bot activity: Orchestrator and Assignment aggregation #123/Group activity: live facepile, safe summaries and details #124 的 working/thinking/waiting/attention、安全 tool/activity label 与 collapsible 文案。
- 安全摘要以 bounded locale key + safe publicDetail 呈现;不能把模型生成的 raw reasoning 当本地化 UI copy。
- 更新客户端测试的中文断言为按 key/translation 断言。
- 语言切换、持久化、设置项与 html lang 由 DSH locale 提供。
Acceptance criteria
- 切到 en 后 Bot 模式、sidebar、Channel composer、Motion 设置与 Activity 状态全部可见系统文案为英文。
- zh/en key 对齐由 TypeScript/vitest 保证(缺 key 编译失败)。
- UI Foundation: BotHarness motion preference(System / Reduce / Full) #128 三个选项和 reduced-motion 静态 fallback 文案在 zh/en 下含义明确。
- Bot activity: safe tool summaries and effects #122/Bot activity: Orchestrator and Assignment aggregation #123/Group activity: live facepile, safe summaries and details #124 的 hover/focus/collapsible 安全摘要使用 locale key;provider publicDetail 保持标注边界。
- bundle 契约测试与全部门禁通过;新增 external 必须显式登记。
- 组件内无残留硬编码 UI 文案。
References
- 研究:docs/research/2026-09-18-dsh-i18n-client-localization.md
- UI Foundation: BotHarness motion preference(System / Reduce / Full) #128、UI Tracer: Channel composer island 与 PersonaBot activity region #129、Bot activity: shared snapshot and live DM presence #120、Bot activity: safe tool summaries and effects #122、Bot activity: Orchestrator and Assignment aggregation #123、Group activity: live facepile, safe summaries and details #124
- 结论:Paraglide 不引入(运行时与 DSH locale 重复、CJS closure-factory 产物不匹配、当前规模收益太小)
Metadata
Metadata
Assignees
Labels
V1.0Milestone v1.0; mirrors the GitHub milestoneMilestone v1.0; mirrors the GitHub milestoneready-for-agentFully specified, ready for an AFK agentFully specified, ready for an AFK agent
Type
Projects
- StatusShow more project fieldsDone
Activity
DoodleBears commentedon Sep 19, 2026
客户端 UI 术语标准(来自 #54 的产品反馈,接入 DSH locale 时作为对照表):
Bots保持英文(QA 指定的原生观感)现状:文案为硬编码中文,术语已在 #54 统一;本票接入 zh/en 时补齐遗漏串(搜索占位、空态、Modal 文案、菜单项、aria-label 等)。