Skip to content

#3114 Cut 27:面对面房间的自动发送开关与 Past rooms 折的中文文案 #3231

Open

Description

@Birfy

Written-by: Triage

Part of #3114

现象(中文窗口仍画英文)

「社交 › 面对面房间」这一屏还有三处在中文窗口画英文:

  • 房间头每个 Bot 一个的自动发送开关:Auto-send Chief → room(:564),以及这个复选框自己的名字 Auto-send Chief's room messages(:561,aria-label)。
  • 侧栏房间列表底部的已结束房间折:Past rooms(:3097)。

三处都是 plugins/social/client.js 里绕过了本文件已有 tr() 的裸绘制,扫描器把它们记在 core/test/i18n-template-draws.baseline.json(2 条)与 core/test/i18n-missing-entries.baseline.json(1 条)。

要做的

  1. 三处绘制改走 tr(),Auto-send 两句拆成带 {bot} 的键(my Bot 兜底也进字典)。
  2. core/src/client/i18n.js 的 ZH 对象里补 4 个 zh 键(插在 'Auto-send from now on' 之后,不要动 HOST_ZH 末尾)。
  3. 两条基线各销掉对应的 pin;三处总数行 [12, 14, 51] → [12, 12, 50](若 Read the Sharing page invite hint and room hints in the window's language (#3114) #3230 先合,基数 [12, 12, 48] → [12, 10, 47])。
  4. 一条 changelog 片段。

不改行为:截断长度、data-flybot 挂点、title、CSS 一律不动;Auto-send 的状态读写(social/status、social/face-auto)一行不碰。

验收

规格与可复制验收在 #3114 的「第二十七刀切片规格(Cut 27)」评论(A1–A18)。要点:

  • 中文窗口:Chief 发给房间的消息自动发送、自动发送 Chief 在房间里的消息、历史房间;无翻译器时逐字英文不变。
  • 基线 12 / 14 / 51 → 12 / 12 / 50;red 先 4 / 1 / 3,green 后 4 / 4 / 0。
  • cd plugins/social && npm test:main 744/744/0 → tip 748/748/0。

关联

Activity

  1. added
    bugSomething isn't working
    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a template
    area:uiWeb/desktop UI and copy
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a templatearea:uiWeb/desktop UI and copybugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions