Skip to content

[finding] en 包 32 个值用 ASCII "..." 结尾、113 个用 U+2026 "…" —— 同一屏上省略号两种字形,且九包各自跟着抄 #3878

Description

@yinlianghui

#3546 切片七回填 dashboard.loading 时量出来的:该调用点的英文兜底是 'Loading…'(U+2026),而 common.loading / detail.loading'Loading...'(三个 ASCII 句点)。两者是不同的字符串,所以不能复用邻键译文,只能各自存在 —— 这本身没错,但顺手扫出这是全包性的分歧。

实测

packages/i18n/src/locales/en.ts,按结尾字符统计:

结尾 数量
(U+2026) 113
...(三个 ASCII 句点) 32

32 个 ... 的 key:

common.loading            common.select                fields.richText.placeholder
table.search              grid.loading                 kanban.cardTitlePlaceholder
detail.loading            detail.filterPlaceholder     chart.loading
workflow.fromPlaceholder  workflow.toPlaceholder       console.initializing
console.commandPalette.placeholder                     console.ai.searchChats
console.ai.loadingHistory console.ai.askAgent          console.ai.loadingAgents
console.ai.askAnything    console.objectView.searchFields
console.objectView.selectField                         console.objectView.selectOption
console.objectView.ufAddField                          auth.login.submittingButton
auth.register.submittingButton                          auth.forgotPassword.submittingButton
sidebar.searchNavigation  topbar.connection.connecting topbar.connection.reconnecting
home.loading              search.placeholder           collaboration.replyingTo
collaboration.replyingToComment

九包各自的 ... 计数是 30-31, 是 124-125 —— 即九包逐值跟随 en,分歧是从 en 侧长出来的,不是翻译问题。

为什么算 finding 而不是 bug

纯字形,不影响可读性也不影响功能。但它是用户同屏可见的:比如 console.ai.askAnything(Ask anything...)与同一 AI 面板里用 的值并排;common.loadingdashboard.loading 在同一个仪表板上下文里一个三点一个省略号。

修法与代价

统一到 (113 : 32,多数派;也是排版正确的做法),把 32 个 en 值改掉。代价是 check-i18n-en-drift.mjs 会把这 32 个判成"en 值变了,九包必须跟",于是同一个 PR 要动 32 × 10 = 320 个值 —— 而这 320 处的改动内容是机械的(把 ... 换成 )。所以这不是"顺手做"的量级,需要独立 PR,并且最好配一条门禁(en 里禁止以三个 ASCII 句点结尾)否则会重新长回来。

也可以裁定"两种都可以",那就把这条关掉 —— 记在这里是为了让裁定有个地方落。

关联:#3546(切片七,发现路径)、#3866(同一批取证里另一个"测量方法/字形"类发现)。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions