fix(i18n): add worktree translation to all 19 third-language dicts (#285)

PR #285 added the zh/en 'worktree' key but the 19 third-language dicts
(de/fr/pt/ko/ar/hi/id/tr/vi/th/ru/it/nl/sv/pl/zhHK/zhTW/zhMO) were missing
it — only ja was patched in the prior commit. The dicts are typed
Record<keyof typeof zh, string> via an unchecked 'as' cast, so tsc did
not catch the gap.

This commit:
- adds the worktree translation to all 19 dicts
- strengthens tests/locales.spec.ts to assert key-set equality for EVERY
  shipped dictionary (not just zh/en/ja), preventing future regressions
This commit is contained in:
HuanLinOTO
2026-08-23 20:58:33 +08:00
parent 0a21629fa3
commit 9410e5bb2a
19 changed files with 31 additions and 1 deletions
+1
View File
@@ -106,6 +106,7 @@ export const th: Record<string, string> = {
commit: 'Commit',
commitError: 'Commit ล้มเหลว',
branch: 'Branch',
worktree: 'เวิร์กทรี',
checkoutError: 'สลับ branch ล้มเหลว',
history: 'ประวัติ',
changes: 'การเปลี่ยนแปลง',