feat: add Simplified Chinese (zh) i18n support — 934 strings, 342 files#563
Open
Gawg-AI wants to merge 3 commits into
Open
feat: add Simplified Chinese (zh) i18n support — 934 strings, 342 files#563Gawg-AI wants to merge 3 commits into
Gawg-AI wants to merge 3 commits into
Conversation
- 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
Author
翻译补充完成补充了 246 条之前未翻译的 ZH 条目:
剩余 10 条为代码类型定义( 使用 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add full Simplified Chinese (zh-CN) internationalization support to Hermes Workspace. This addresses Issue #562.
Changes
src/lib/i18n.ts, growing from 346 to 2367 lines{t('key')}callsMiniMax-M2.7) at batch size 30Scope
Note on remaining ~240 untranslated strings
Some lower-priority strings (technical labels, error codes, API truncations) were not translated due to
finish_reason: lengthlimits. A follow-up PR can cover these.Testing
setLocale('zh')) already works in the existing UIRelated
Closes #562