feat: add i18n multi-language support (English + Chinese) 添加国际化支持,包含中文翻译#125
Merged
lcomplete merged 3 commits intolcomplete:devfrom Mar 21, 2026
Merged
feat: add i18n multi-language support (English + Chinese) 添加国际化支持,包含中文翻译#125lcomplete merged 3 commits intolcomplete:devfrom
lcomplete merged 3 commits intolcomplete:devfrom
Conversation
- Add react-i18next, i18next, i18next-browser-languagedetector - Create i18n initialization with browser language detection - Add 5 translation namespaces: common, navigation, settings, page, auth - Add English and Chinese (zh-CN) translation files - Migrate PrimaryNavigation, SubHeader, NavLabels to i18n - Migrate SettingModal tabs and GeneralSetting to i18n - Add language switcher dropdown in Settings > General - Migrate SignIn page to i18n
Closed
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 internationalization (i18n) support to the Huntly web client, with complete English and Chinese (zh-CN) translations.
为 Huntly Web 客户端添加国际化(i18n)支持,包含完整的英文和中文(zh-CN)翻译。
Changes / 变更内容
i18n Infrastructure / i18n 基础设施
Integrate
react-i18next,i18next, andi18next-browser-languagedetectorAdd i18n initialization config at
app/client/src/i18n/index.tsAuto-detect user's browser language with
localStoragecaching集成
react-i18next、i18next和i18next-browser-languagedetector在
app/client/src/i18n/index.ts中添加 i18n 初始化配置自动检测用户浏览器语言,并通过
localStorage缓存语言偏好Translation Files / 翻译文件
Add structured JSON translation files for both
enandzh-CN.为
en和zh-CN两种语言添加结构化 JSON 翻译文件Component Migration / 组件迁移
Migrate all hardcoded strings to
useTranslation()/t()calls across:将所有硬编码字符串迁移为
useTranslation()/t()调用,涉及:Language Switcher / 语言切换