feat(i18n): add internationalization support for Chinese and English#11
Merged
liruifengv merged 1 commit intomainfrom Feb 15, 2026
Merged
feat(i18n): add internationalization support for Chinese and English#11liruifengv merged 1 commit intomainfrom
liruifengv merged 1 commit intomainfrom
Conversation
- Install i18next, react-i18next, zod-i18n-map - Create 18 translation JSON files (9 namespaces × 2 languages) - Add i18n initialization for renderer (react-i18next) and main process (standalone instance) - Extend SettingsSchema with language field (default: 'en') - Add language selector in General Settings with real-time switching - Replace ~200 hardcoded UI strings across ~30 component files with t() calls - Internationalize Electron menus and native dialogs - Sync language across main process, both renderer windows via settings:changed IPC Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Merged
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
i18next+react-i18next, covering both renderer process (React UI) and main process (Electron menus, dialogs)common,chat,message,settings,sidebar,permission,onboarding,menu,validation) for English and Chineset()callsChanges
i18next,react-i18next,zod-i18n-mapsrc/renderer/i18n.ts,src/main/i18n.ts,src/locales/{en,zh}/*.jsonlanguagefield toSettingsSchema(default:'en')Test plan
settings.jsonwithoutlanguagefield upgrades gracefully🤖 Generated with Claude Code