chore(i18n): zh 可见面术语收敛「对话」→「会话」+ 定义面棘轮门禁 - #2183
Merged
Merged
Conversation
Co-authored-by: Cursor <cursor@vectorcontrol.tech>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
#2154 术语漂移收敛(round-31 取证):用户可见面「对话」与「会话」混用——
shortcut.quickChat甚至自身 title 用「对话」、detail 用「会话」。收敛结论:zh 可见文案统一「会话」;代码标识符保留领域语义(Thread=后端线程实体、Conversation=UI 会话、chat=功能域名),不动标识符。变更
nav.chat「对话」→「会话」(shared chatview resources + shared workbench)。shortcut.quickChat「快速新建对话」→「快速新建会话」(desktop zh.json + chatview resources)。ContactMainViews联系人页 subtitle「发起对话」→「发起会话」。strings.ts7 处 zh 文案统一「会话」。scripts/verify/verify-i18n-terminology.py(fail-closed):扫描 5 个 zh i18n 定义面(web zh locale、desktop zh locale、chatview/shared workbench/mobile 资源),禁止术语「对话」,豁免「对话框」(dialog 不同概念);接入 checks.yml → validate,并在docs/governance/verifier-map.md登记。硬编码残留与 demo/fixture 数据域不在门禁范围(由既有清理轮与 callsite/dead-key 门禁分治,豁免现状已登记 [整理] 静态审计 backlog 跟踪(探索 lane 剩余项) #2154)。getByRole('button',{name:'对话'})、sharedi18n.test.ts的nav.chat断言、mobile e2ethreads.spec.ts正则。验证
tsc --noEmit全绿(含 mobile)。verify-doc-ssot / i18n-deadkeys / ci-gates / openapi-contract / migration-idempotency+ 新门禁 +git diff --check全绿。备注
workbench/src/mockData.ts、mobile-rn/mobileFixtures.ts数据域「对话」维持不译;ContactMainViews联系人页仍有成组硬编码中文(subtitle/sectionTitle),建议后续 i18n 化。