From e4113f632060fb538bff989f97e36d7589e99fe2 Mon Sep 17 00:00:00 2001 From: Mel0ny <2189829539@qq.com> Date: Fri, 5 Jun 2026 00:27:45 +0800 Subject: [PATCH] feat(i18n): add Chinese localization support - Add i18n infrastructure with i18next - Add Chinese translations for all UI strings (7 zh locale files) - Standardize technical terms per Claude Code official Chinese docs - Migrate 33 components to useTranslation - Add language selector in App Settings - Add Electron i18n support - Add README.zh-CN.md with language switcher links --- README.md | 2 + README.zh-CN.md | 254 ++++++++++ package-lock.json | 157 ++++-- package.json | 7 +- src/electron/i18n.ts | 45 ++ src/i18n/i18next.d.ts | 22 + src/i18n/index.ts | 22 + src/i18n/locales/en/common.json | 229 +++++++++ src/i18n/locales/en/marketplace.json | 58 +++ src/i18n/locales/en/plugin.json | 309 ++++++++++++ src/i18n/locales/en/profile.json | 230 +++++++++ src/i18n/locales/en/scripts.json | 48 ++ src/i18n/locales/en/settings.json | 119 +++++ src/i18n/locales/en/team.json | 89 ++++ src/i18n/locales/zh/common.json | 229 +++++++++ src/i18n/locales/zh/marketplace.json | 58 +++ src/i18n/locales/zh/plugin.json | 309 ++++++++++++ src/i18n/locales/zh/profile.json | 230 +++++++++ src/i18n/locales/zh/scripts.json | 48 ++ src/i18n/locales/zh/settings.json | 119 +++++ src/i18n/locales/zh/team.json | 89 ++++ src/i18n/node.ts | 35 ++ src/ui/components/AppSettingsDialog.tsx | 57 ++- src/ui/components/BulkManageDialog.tsx | 101 ++-- src/ui/components/CuratedDetailModal.tsx | 42 +- src/ui/components/DiscoverDetail.tsx | 20 +- src/ui/components/DiscoverList.tsx | 22 +- src/ui/components/DoctorModal.tsx | 47 +- src/ui/components/Home.tsx | 81 +-- src/ui/components/ManageDialog.tsx | 466 +++++++++--------- src/ui/components/MergePreview.tsx | 24 +- src/ui/components/PluginList.tsx | 12 +- src/ui/components/PluginManager.tsx | 14 +- src/ui/components/PluginPicker.tsx | 34 +- src/ui/components/ProfileEditor.tsx | 247 +++++----- src/ui/components/ProfileList.tsx | 52 +- src/ui/components/PromptPicker.tsx | 28 +- src/ui/components/SkillToggler.tsx | 22 +- src/ui/components/TeamEditor.tsx | 50 +- src/ui/components/TeamList.tsx | 90 ++-- .../configure/SortableWidgetRow.tsx | 12 +- .../components/configure/StatusBarPreview.tsx | 8 +- src/ui/components/configure/StatusBarTab.tsx | 50 +- .../configure/WidgetOptionsPanel.tsx | 4 +- src/ui/components/profile/InfoCard.tsx | 29 +- src/ui/components/profile/McpTab.tsx | 31 +- src/ui/components/profile/ProfileTopBar.tsx | 22 +- src/ui/components/profile/SettingsTab.tsx | 162 +++--- src/ui/components/shared/ConfirmDialog.tsx | 6 +- src/ui/components/shared/EditorTopBar.tsx | 28 +- src/ui/components/shared/FilterBar.tsx | 21 +- .../shared/LaunchOptionsPopover.tsx | 18 +- .../components/shared/TagsProjectsEditor.tsx | 16 +- src/ui/components/team/DraggableProfile.tsx | 10 +- src/ui/components/team/SortableMember.tsx | 22 +- src/ui/main.tsx | 1 + 56 files changed, 3661 insertions(+), 896 deletions(-) create mode 100644 README.zh-CN.md create mode 100644 src/electron/i18n.ts create mode 100644 src/i18n/i18next.d.ts create mode 100644 src/i18n/index.ts create mode 100644 src/i18n/locales/en/common.json create mode 100644 src/i18n/locales/en/marketplace.json create mode 100644 src/i18n/locales/en/plugin.json create mode 100644 src/i18n/locales/en/profile.json create mode 100644 src/i18n/locales/en/scripts.json create mode 100644 src/i18n/locales/en/settings.json create mode 100644 src/i18n/locales/en/team.json create mode 100644 src/i18n/locales/zh/common.json create mode 100644 src/i18n/locales/zh/marketplace.json create mode 100644 src/i18n/locales/zh/plugin.json create mode 100644 src/i18n/locales/zh/profile.json create mode 100644 src/i18n/locales/zh/scripts.json create mode 100644 src/i18n/locales/zh/settings.json create mode 100644 src/i18n/locales/zh/team.json create mode 100644 src/i18n/node.ts diff --git a/README.md b/README.md index b05e019..c2cb956 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,8 @@ Issues
+English · **[中文](./README.zh-CN.md)** + Each profile is an isolated Claude Code config directory: its own MCP servers, skills, agents, slash commands, and settings. Work in one terminal, personal in another, both running Claude Code with different tools loaded. 647 curated plugins and 4,795 skills come built in.diff --git a/README.zh-CN.md b/README.zh-CN.md new file mode 100644 index 0000000..5479181 --- /dev/null +++ b/README.zh-CN.md @@ -0,0 +1,254 @@ +
+
+
无需手动编辑配置,运行独立的 Claude Code 环境。
+ +
+
+
+
+
+ 主页 + · + 文档 + · + 发布 + · + 问题 +
+ +> **[English](./README.md)** · 中文 + +每个 Profile 是一个独立的 Claude Code 配置目录:拥有自己的 MCP servers、Skills、Agents、斜杠命令和设置。一个终端用于工作,另一个用于个人用途,两者都运行 Claude Code 但加载不同的工具。内置 647 个精选 Plugin 和 4,795 个 Skills。 + +
+
+
+
+