gui tests: codex-async-compact's zh and zh-TW notes say Codex CLI as translated (#6658)

35aaaa4b9 (11-13) translated "Codex CLI" as "Codex 命令行" / "Codex 命令列"
for the Codex client setting. codexHeld in context.js passes the same
word through t(), so the held-share note in zh and zh-TW changed too,
and codex-async-compact's expected strings still had "Codex CLI": 4 of
20 cases red (chromium and webkit, zh and zh-TW) since then. The app is
right; the test now expects the translated word.

Run at this head on mote (macOS 27, Playwright 1.62.0):
node --test internal/gui/tests/codex-async-compact.test.cjs: pass 20,
fail 0. Broken by hand: zh's expectation put back to "Codex CLI",
chromium zh and webkit zh red (18/2), restored.

Not run: the rest of the GUI suite (only this test file changes).
This commit is contained in:
yetone
2026-11-17 07:55:10 +08:00
parent ce16633367
commit acc358f071
@@ -65,8 +65,8 @@ const words = {
// one too old for the feature beside the app of no known version, or the app alone
const held = {
en: { old: "Codex CLI 0.162.1, Codex app: the share needs Codex 0.163 or later; until it's updated magpie writes only async_compaction = true, at 65%", unknown: "Codex app: the share needs Codex 0.163 or later; until it's updated magpie writes only async_compaction = true, at 65%" },
zh: { old: "Codex CLI 0.162.1, Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%", unknown: "Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%" },
"zh-TW": { old: "Codex CLI 0.162.1, Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%", unknown: "Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%" },
zh: { old: "Codex 命令行 0.162.1, Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%", unknown: "Codex 应用:阈值需要 Codex 0.163 或更新;更新之前 magpie 只写 async_compaction = true,按 65%" },
"zh-TW": { old: "Codex 命令列 0.162.1, Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%", unknown: "Codex 應用程式:閾值需要 Codex 0.163 或更新;更新之前 magpie 只寫 async_compaction = true,按 65%" },
ja: { old: "Codex CLI 0.162.1, Codex アプリ:しきい値には Codex 0.163 以降が必要です。更新するまで magpie は async_compaction = true だけを書き、65% で圧縮します", unknown: "Codex アプリ:しきい値には Codex 0.163 以降が必要です。更新するまで magpie は async_compaction = true だけを書き、65% で圧縮します" },
de: { old: "Codex CLI 0.162.1, Codex-App: Die Schwelle braucht Codex 0.163 oder neuer; bis zum Update schreibt magpie nur async_compaction = true, bei 65 %", unknown: "Codex-App: Die Schwelle braucht Codex 0.163 oder neuer; bis zum Update schreibt magpie nur async_compaction = true, bei 65 %" },
};