From 4b59ca1c8b226326c4821b06226b7f6dc392e362 Mon Sep 17 00:00:00 2001 From: CharAznable <38402730+CharAznable98@users.noreply.github.com> Date: Wed, 3 Jun 2026 21:06:32 +0800 Subject: [PATCH 1/3] Fix Chinese locale review labels --- .../localization/renderer/locales/zh/team.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/features/localization/renderer/locales/zh/team.json b/src/features/localization/renderer/locales/zh/team.json index 303321bc..1a6fe2d0 100644 --- a/src/features/localization/renderer/locales/zh/team.json +++ b/src/features/localization/renderer/locales/zh/team.json @@ -463,13 +463,13 @@ "applyRejections": "申请拒绝" }, "tooltips": { - "autoOn": "滚动到末尾时自动将文件 Token 为已查看(打开)", - "autoOff": "滚动到末尾时自动将文件 Token 为已查看(关闭)", + "autoOn": "滚动到末尾时自动将文件标记为已查看(开启)", + "autoOff": "滚动到末尾时自动将文件标记为已查看(关闭)", "undo": "撤消上次审阅操作 (Ctrl+Z)", "acceptAll": "接受所有文件的所有更改", "rejectAll": "拒绝所有文件中所有可安全拒绝的更改", "rejectAllDisabled": "没有待处理的文件具有可以拒绝的安全原始基线。", - "applyRejections": "将拒绝的帅哥应用到磁盘;接受的更改保持原样" + "applyRejections": "将已拒绝的差异片段应用到磁盘;已接受的更改保持原样" } }, "diffError": { @@ -770,7 +770,7 @@ "optionalLabel": "快速模式(可选)", "defaultOff": "默认(关闭)", "fast": "快速地", - "off": "离开", + "off": "关闭", "defaultFast": "默认(快速)", "defaultResolvesTo": "当前默认解析为 {{mode}}。", "runtimeBackedHint": "快速模式是运行时支持的,并且只有在解析的 Anthropic 启动模型支持它时才会解锁。" @@ -863,7 +863,7 @@ "actions": { "cancel": "取消", "delete": "删除", - "markResolved": "Token 已解决", + "markResolved": "标记为已解决", "save": "保存" }, "attachments": { @@ -1686,7 +1686,7 @@ "label": "项目", "source": { "claude": "Claude 发现", - "codex": "由食品 Codex 委员会发现", + "codex": "由 Codex 发现", "mixed": "由 Claude 和 Codex 发现" }, "deleted": { From f8bfcc2d0b7cf978523dd04d2d0e29307693d038 Mon Sep 17 00:00:00 2001 From: CharAznable <38402730+CharAznable98@users.noreply.github.com> Date: Wed, 3 Jun 2026 21:14:22 +0800 Subject: [PATCH 2/3] Guard Chinese locale Claude brand wording --- .../renderer/zhBrandTerms.test.ts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/features/localization/renderer/zhBrandTerms.test.ts diff --git a/test/features/localization/renderer/zhBrandTerms.test.ts b/test/features/localization/renderer/zhBrandTerms.test.ts new file mode 100644 index 00000000..bc921ec7 --- /dev/null +++ b/test/features/localization/renderer/zhBrandTerms.test.ts @@ -0,0 +1,24 @@ +import { readdirSync, readFileSync } from 'node:fs'; +import path from 'node:path'; +import { describe, expect, it } from 'vitest'; + +const zhLocaleDirectory = path.join( + process.cwd(), + 'src/features/localization/renderer/locales/zh' +); + +const zhLocaleFiles = readdirSync(zhLocaleDirectory) + .filter((fileName) => fileName.endsWith('.json')) + .sort(); + +describe('zh locale brand terms', () => { + it('keeps Claude untranslated in Chinese locale copy', () => { + for (const fileName of zhLocaleFiles) { + const contents = readFileSync(path.join(zhLocaleDirectory, fileName), 'utf8'); + + expect(contents, `${fileName} should use Claude instead of 克劳德`).not.toContain( + '克劳德' + ); + } + }); +}); From 8b14ef8d1b54ab3eb20e957c56fbe313d2907657 Mon Sep 17 00:00:00 2001 From: CharAznable <38402730+CharAznable98@users.noreply.github.com> Date: Wed, 3 Jun 2026 21:14:27 +0800 Subject: [PATCH 3/3] Remove Chinese brand term test --- .../renderer/zhBrandTerms.test.ts | 24 ------------------- 1 file changed, 24 deletions(-) delete mode 100644 test/features/localization/renderer/zhBrandTerms.test.ts diff --git a/test/features/localization/renderer/zhBrandTerms.test.ts b/test/features/localization/renderer/zhBrandTerms.test.ts deleted file mode 100644 index bc921ec7..00000000 --- a/test/features/localization/renderer/zhBrandTerms.test.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { readdirSync, readFileSync } from 'node:fs'; -import path from 'node:path'; -import { describe, expect, it } from 'vitest'; - -const zhLocaleDirectory = path.join( - process.cwd(), - 'src/features/localization/renderer/locales/zh' -); - -const zhLocaleFiles = readdirSync(zhLocaleDirectory) - .filter((fileName) => fileName.endsWith('.json')) - .sort(); - -describe('zh locale brand terms', () => { - it('keeps Claude untranslated in Chinese locale copy', () => { - for (const fileName of zhLocaleFiles) { - const contents = readFileSync(path.join(zhLocaleDirectory, fileName), 'utf8'); - - expect(contents, `${fileName} should use Claude instead of 克劳德`).not.toContain( - '克劳德' - ); - } - }); -});