This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(i18n): translate grid.import.transform in ko/de/fr/es/pt/ru/ar (#3938) - #3949
Merged
Merged
Conversation
…3938) The third column header of the import wizard's saved-mapping summary was byte-identical to `en` — the literal `Transform` — in seven of the nine non-`en` packs. zh (`转换`) and ja (`変換`) had translated it, which rules out the "deliberately untranslated term" reading. It is the sixth key of the same six-line block objectui#3920 / PR #3936 fixed the other five of, left out of that card only to keep its 5-keys / 35-values census verifiable against it. Each value is the singular of the word the pack already uses for `en`'s plural "transforms" in `grid.import.savedMappingHint` — the sentence `SavedMappingSummary` renders directly above this header, translated by #3936: ko `변환`, de `Transformation`, fr `Transformation`, es `Transformación`, pt `Transformação`, ru `Преобразование`, ar `التحويل`. That is the anchor rather than `legacyFallbackNotice`'s term, which the card suggested: `en`'s own sentence lists "transforms" and "type coercion" as two different server-side operations and `legacyFallbackNotice` is about the second, so reusing de "Typkonvertierung" / ko "형 변환" / ar "تحويل الأنواع" here would name the wrong operation. The new test asserts each pack's coercion term is present in that sentence and absent from the header. The pin PR #3936 left in `gridImportSavedMapping-i18n-3920.test.ts` asserting these seven were still English is replaced by the translated pin it asked for: 7-of-7 no longer serve the `en` value, `en`/zh/ja untouched, and all three headers of the summary row (`csvColumn`, `mapsTo`, `transform`) differ from their `en` values — the row, not the key, is the criterion. `KEYS` stays at five so #3920's census remains checkable against its card. Claude-Session: https://claude.ai/code/session_01GTRjn8xBqp75dk7kFupVRt Co-authored-by: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
Contributor
Author
|
PM 验收(session_01GTRjn8xBqp75dk7kFupVRt):通过,转 ready 并挂 auto-merge。 核验记录(head
Generated by Claude Code |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #3938
grid.import.transform在 ko/de/fr/es/pt/ru/ar 七包与en逐字节相同(字面量Transform),而 zh(转换)/ ja(変換)早已译好 —— 这正是排除「刻意不译的术语」这一读法的对照组。它是 #3920 / PR #3936 修掉的那个六行 block 里的第六个键,当时被刻意留在外面,只为让那单 5 键 / 35 值的普查数与卡片对得上。七包译文(1 × 7)
savedMappingHint)Transform변환TransformTransformationTransformTransformationTransformTransformaciónTransformTransformaçãoTransformПреобразованиеTransformالتحويلen/ zh / ja 未改动;de.ts 也只改了这一行(#3919 的approvalsInbox不在 diff 里)。基准依据:锚点取「同屏那一句」,而不是
legacyFallbackNotice每个值都是本包已在用的那个词的单数形式 —— 即
en复数 "transforms" 在grid.import.savedMappingHint里的既有译法,而那一句正是SavedMappingSummary渲染在这个表头正上方的说明文字(#3936 刚译好)。issue 卡片建议的锚点是
legacyFallbackNotice,这里没有照抄:en自己那句把 "transforms" 与 "type coercion" 并列为两个不同的服务端操作,而legacyFallbackNotice讲的是后者。若按卡片复用 de "Typkonvertierung" / ko "형 변환" / ar "تحويل الأنواع",表头就会指错操作。新测试因此把这条判据也钉住:每包的「类型强转」术语在那一句里在场、在表头里不在场。另外核过一遍:这七个词在各自包内除了 #3936 那两句以外没有别的用法,所以补上单数表头不会让面板出现同一操作的两种叫法。
为什么值得单开一单:它不是隐藏字符串
它是
SavedMappingSummary的第三个TableHead,与csvColumn/mapsTo同处一行,而后两者一直是译好的 —— 于是德语用户读到的是Spalte/Zugeordnet zu/Transform:同一行表头两种语言,就在 PR #3936 刚落地的德语说明文字正下方。#3936 之前整个面板都是英文,反倒自洽;补译之后这处不一致才独立可见。三道 i18n 门禁在这里与 #3920 同样是值域盲区:
all-locales-key-parity只比键名集合与占位符形状(键在、无占位符,完美通过);call-site 门禁只判键能否解析;check-i18n-en-drift.mjs只在en值变化时要求跟随,而这个值从落地起就带着英文进的七包,从没有过「变化」事件。测试:把 PR #3936 预告的那颗钉子换掉
PR #3936 在
gridImportSavedMapping-i18n-3920.test.ts里留了一条it,把这七包钉成「仍是英文」,并写明修 #3938 的人必须回来删掉它、而不是翻转它的期望值。本 PR 兑现这一点,换成它要求的译文钉:not.toBe(en)会在undefined上假绿);en值 —— 这条断言正是被替换那条的镜像;en/ zh / ja 未动,仍是对照组;csvColumn/mapsTo/transform)都不等于各自的en值 —— grid.import.transform 在 ko/de/fr/es/pt/ru/ar 七包是英文 Transform —— 就在已存映射摘要表的第三列表头,与刚补译的 savedMappingHint 同屏 #3938 的判据是这一行,不是这一个键;savedMappingHint里那个词的单数词干,且不等于本包的「类型强转」术语(ko 这一条最吃紧:它的强转术语형 변환本身就包含表头词변환,只有这条不等式能把两者分开)。KEYS仍保持五个:#3920 的普查数据继续可以对着它自己的卡片核验。反向验证(方向先判后跑)
先判:新钉子的核心断言(
englishStill→[])是被替换那条(still→ 七包)的直接反面,读的是规范键、没有??兜底链,且该值本身就是本次改动的主体 —— 因此预判是红(常规方向),不存在倒置或「诊断数反增」的路径。实跑,两个方向都对上:
Transform、测试保持新版 → 新钉子红,失败信息逐行列出七包(ko de fr es pt ru ar);同文件另外 14 条全绿,说明新钉子的作用域就在这一个键上,没有越界压到 grid.import 已存映射那 5 个键在 9 个非 en 包里有 7 个原样留着英文(只有 zh/ja 译了)—— 德/法/西/葡/俄/韩/阿用户在导入弹窗看到英文 #3920 的五个键。一处诚实的细节:vitest 在首个失败expect处即中止该it,所以后面按包精确值的那七条断言并未执行 —— 不是「也一起报错了」。still实收[],期望七包)。这证明替换那条it是必须的,不是装饰性改写。验证
changeset:
.changeset/grid-import-transform-i18n-3938.md(@object-ui/i18npatch)。Generated by Claude Code