Skip to content

feat(i18n): add Chinese localization support#5

Open
mel0nyrame wants to merge 1 commit into
Mduffy37:mainfrom
mel0nyrame:feat/i18n-chinese-localization
Open

feat(i18n): add Chinese localization support#5
mel0nyrame wants to merge 1 commit into
Mduffy37:mainfrom
mel0nyrame:feat/i18n-chinese-localization

Conversation

@mel0nyrame

@mel0nyrame mel0nyrame commented Jun 4, 2026

Copy link
Copy Markdown

Summary

Add Chinese (zh-CN) localization support to ClaudeWorks.

What this PR does

  • Add i18n infrastructure with i18next
  • Add Chinese translations for all UI strings (7 zh locale files)
  • Standardize technical terms per Claude Code official Chinese docs
  • Migrate 33 components to useTranslation
  • Add language selector in App Settings
  • Add Electron i18n support
  • Add README.zh-CN.md with language switcher links

Checklist

  • [x]

claudeworks@1.0.1 smoke
vitest run test/smoke.test.ts

RUN v3.2.4 /Users/mac/Desktop/claudeworks-main

✓ test/smoke.test.ts (7 tests) 120ms

Test Files 1 passed (1)
Tests 7 passed (7)
Start at 00:28:45
Duration 388ms (transform 62ms, setup 0ms, collect 70ms, tests 120ms, environment 0ms, prepare 42ms) — 7/7 tests passed

  • [x]

claudeworks@1.0.1 build
tsc -p tsconfig.electron.json && rm -rf dist/builtin-plugin && cp -r src/builtin-plugin dist/builtin-plugin && rm -rf dist/scripts && cp -r src/scripts dist/scripts && vite build

vite v5.4.21 building for production...
transforming...
✓ 378 modules transformed.
rendering chunks...
computing gzip size...
../../dist/ui/index.html 0.62 kB │ gzip: 0.37 kB
../../dist/ui/assets/index-DSakx-gL.css 140.71 kB │ gzip: 22.11 kB
../../dist/ui/assets/marketplace-CkHZd3qe.js 1.08 kB │ gzip: 0.79 kB
../../dist/ui/assets/scripts-CJeGqMiV.js 1.22 kB │ gzip: 0.83 kB
../../dist/ui/assets/marketplace-GwZyFS18.js 1.36 kB │ gzip: 0.64 kB
../../dist/ui/assets/scripts-BVGNvpAQ.js 1.49 kB │ gzip: 0.69 kB
../../dist/ui/assets/team-C9dTNvNa.js 1.99 kB │ gzip: 1.48 kB
../../dist/ui/assets/settings-BKySH4ee.js 2.50 kB │ gzip: 2.04 kB
../../dist/ui/assets/team-Bl4LKr07.js 2.66 kB │ gzip: 1.25 kB
../../dist/ui/assets/settings-C7tx4Qv2.js 3.69 kB │ gzip: 1.70 kB
../../dist/ui/assets/common-mahnc2BN.js 4.83 kB │ gzip: 3.02 kB
../../dist/ui/assets/common-DKDQ2wJ7.js 6.32 kB │ gzip: 2.55 kB
../../dist/ui/assets/profile-CJaBD0vP.js 6.83 kB │ gzip: 4.30 kB
../../dist/ui/assets/plugin-BVL2CFQF.js 7.51 kB │ gzip: 4.13 kB
../../dist/ui/assets/profile-BXxmRxEa.js 9.94 kB │ gzip: 3.88 kB
../../dist/ui/assets/plugin-BZSHJkpj.js 10.25 kB │ gzip: 3.67 kB
../../dist/ui/assets/index-DYJT0Z9h.js 710.79 kB │ gzip: 199.19 kB
✓ built in 1.11s — builds successfully

  • Focused PR — one thing at a time

Files changed

56 files, +3661 / -896 lines

- Add i18n infrastructure with i18next
- Add Chinese translations for all UI strings (7 zh locale files)
- Standardize technical terms per Claude Code official Chinese docs
- Migrate 33 components to useTranslation
- Add language selector in App Settings
- Add Electron i18n support
- Add README.zh-CN.md with language switcher links
@mel0nyrame

Copy link
Copy Markdown
Author
image image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant