Skip to content

面对面房间邀请预览卡按窗口语言显示(Cut 30) #3249

Closed

Description

@Birfy

Written-by: Dev

Part of #3114 · Cut 30(规格:#3114 comment 7031198774).

面对面房间面板里粘贴一条群邀请链接后画出的预览卡,在中文窗口整张仍是英文:Lead: Chief、3 / 8 in the room、1:05 left to join、Clear;卡片没有名字时画 Face-to-face room,链接没有期限时画 Open while the room is open、过期时画 This link has expired。

复现:中文窗口 → + → 面对面建群 → 滚到 Group invite link,粘贴一条群邀请链接,点 Join with link:输入框下方那张卡(core/src/client/room-invite-preview.js 的 RoomInvitePreview)七处绘制点全是英文,唯一绘制点是 plugins/social/client.js:1938,本地房间路径与服务器预览路径共用这张卡。

修法:七处绘制点全部走 t();字典补 5 条新键(Lead: {lead}、{members} in the room、{members} / {max} in the room、This link has expired、Open while the room is open),复用已有的 {time} left to join、Face-to-face room、Join、Clear。人数行改成绘制时按 members/maxMembers 组句,people 保留今天的英文原句——插件会把 preview 存进 invite 状态,译文不能存进去,否则切换语言后人数行停在旧语言。

This link has expired 不能借字典里已有的 This link has expired.(带句号),否则英文会多一个句号。

验收:core/test/room-invite-preview.test.js 由 5 例扩到 9 例(红先 9 / 5 / 4,改后 9 / 9 / 0),既有 5 例逐字不动、逐字英文不变;plugins/ 一行不动(插件那 16 行英文断言是第二道锁);三基线仍 12 / 9 / 46。

Activity

  1. added
    bug
    area:ui
    on Nov 20, 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

    area:uibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions