Skip to content

feat: add Simplified Chinese (zh) i18n support — 934 strings, 342 files#563

Open
Gawg-AI wants to merge 3 commits into
outsourc-e:mainfrom
Gawg-AI:main
Open

feat: add Simplified Chinese (zh) i18n support — 934 strings, 342 files#563
Gawg-AI wants to merge 3 commits into
outsourc-e:mainfrom
Gawg-AI:main

Conversation

@Gawg-AI
Copy link
Copy Markdown

@Gawg-AI Gawg-AI commented May 28, 2026

Summary

Add full Simplified Chinese (zh-CN) internationalization support to Hermes Workspace. This addresses Issue #562.

Changes

  • i18n.ts expanded: 938 new translation keys added to src/lib/i18n.ts, growing from 346 to 2367 lines
  • 342 TSX files migrated: Hardcoded English UI strings replaced with {t('key')} calls
  • 694 Chinese translations: Bulk-translated via MiniMax API (MiniMax-M2.7) at batch size 30

Scope

Metric Count
New i18n keys 938
TSX files migrated 342
ZH translations 694/934 (~74%)

Note on remaining ~240 untranslated strings

Some lower-priority strings (technical labels, error codes, API truncations) were not translated due to finish_reason: length limits. A follow-up PR can cover these.

Testing

  • No logic changes — purely string replacement
  • i18n infrastructure already had full zh support; this populates all keys
  • Language switcher (setLocale('zh')) already works in the existing UI

Related

Closes #562

- 938 new i18n keys, 342 TSX files migrated
- Addresses Issue outsourc-e#562
- 967/967 EN-ZH key pairs aligned (was 678/967 Chinese)
- 957/967 keys now have Chinese translations
- 10 remaining are code type definitions (void, Array, Record) - kept as EN
- Used MiniMax-M2.7 API for batch translation
- Addresses ~240 untranslated strings from initial PR
@Gawg-AI
Copy link
Copy Markdown
Author

Gawg-AI commented May 28, 2026

翻译补充完成

补充了 246 条之前未翻译的 ZH 条目:

指标 之前 现在
EN keys 967 967
ZH 有中文翻译 ~678 957
覆盖率 ~70% 98.97%

剩余 10 条为代码类型定义(void, Array, Record 等),保持英文原文。

使用 MiniMax-M2.7 API 批量翻译,分 3 轮完成。

- Add ~1300 new EN/ZH translation keys to i18n.ts
- Replace hardcoded strings in 45 TSX files with {t('key')}
- Add import { t } from '@/lib/i18n' to all migrated files
- Covers labels, aria-labels, JSX text content across components, routes, and screens
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.

[i18n] Chinese (Simplified) Localization — 245 files need hardcoded-string migration

1 participant