feat(gui): add full Chinese (zh) localization via react-i18next - #425
Open
uckkk wants to merge 1 commit into
Open
feat(gui): add full Chinese (zh) localization via react-i18next#425uckkk wants to merge 1 commit into
uckkk wants to merge 1 commit into
Conversation
Introduce react-i18next-based internationalization across the GUI: - Add i18n infrastructure (i18n.ts, locales/en.json + zh.json, test setup) - Wrap the app in I18nextProvider; default language zh, fallback en - Convert all hardcoded UI strings in components/views to t() calls: sidebar, composer, settings, onboarding, inbox, connectors, automations, skills, personas, audit, approvals, transcripts, right rail, gallery - Add en/zh locale bundles with 1500+ keys, including plural forms - Register locale-override Tauri commands so translations can persist across app updates without touching the official binary - Add vitest setup so tests assert against the English bundle Tests: 108 unit tests pass; tsc clean.
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
Adds full Chinese (Simplified) localization to the GUI using react-i18next.
What's included
ead_locale_override/\write_locale_override\ store translations in the app data dir so they survive app updates without rebuilding the binary
Verification
pm run build: success
Notes