diff --git a/README.md b/README.md index d89c7f7..d0c902a 100644 --- a/README.md +++ b/README.md @@ -167,18 +167,18 @@ Download the latest `CC-Switch-v{version}-Linux.deb` package or `CC-Switch-v{ver ``` ┌─────────────────────────────────────────────────────────────┐ │ Frontend (React + TS) │ -│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ -│ │ Components │ │ Hooks │ │ TanStack Query │ │ -│ │ (UI) │──│ (Bus. Logic) │──│ (Cache/Sync) │ │ -│ └─────────────┘ └──────────────┘ └──────────────────┘ │ +│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ +│ │ Components │ │ Hooks │ │ TanStack Query │ │ +│ │ (UI) │──│ (Bus. Logic) │──│ (Cache/Sync) │ │ +│ └─────────────┘ └──────────────┘ └──────────────────┘ │ └────────────────────────┬────────────────────────────────────┘ │ Tauri IPC ┌────────────────────────▼────────────────────────────────────┐ │ Backend (Tauri + Rust) │ -│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ -│ │ Commands │ │ Services │ │ Models/Config │ │ -│ │ (API Layer) │──│ (Bus. Layer) │──│ (Data) │ │ -│ └─────────────┘ └──────────────┘ └──────────────────┘ │ +│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ +│ │ Commands │ │ Services │ │ Models/Config │ │ +│ │ (API Layer) │──│ (Bus. Layer) │──│ (Data) │ │ +│ └─────────────┘ └──────────────┘ └──────────────────┘ │ └─────────────────────────────────────────────────────────────┘ ``` diff --git a/README_ZH.md b/README_ZH.md index 7319a45..9244e18 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -166,19 +166,19 @@ brew upgrade --cask cc-switch ``` ┌─────────────────────────────────────────────────────────────┐ -│ 前端 (React + TS) │ -│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ -│ │ Components │ │ Hooks │ │ TanStack Query │ │ -│ │ (UI) │──│ (业务逻辑) │──│ (缓存/同步) │ │ -│ └─────────────┘ └──────────────┘ └──────────────────┘ │ +│ 前端 (React + TS) │ +│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ +│ │ Components │ │ Hooks │ │ TanStack Query │ │ +│ │ (UI) │──│ (业务逻辑) │──│ (缓存/同步) │ │ +│ └─────────────┘ └──────────────┘ └──────────────────┘ │ └────────────────────────┬────────────────────────────────────┘ │ Tauri IPC ┌────────────────────────▼────────────────────────────────────┐ -│ 后端 (Tauri + Rust) │ -│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ -│ │ Commands │ │ Services │ │ Models/Config │ │ -│ │ (API 层) │──│ (业务层) │──│ (数据) │ │ -│ └─────────────┘ └──────────────┘ └──────────────────┘ │ +│ 后端 (Tauri + Rust) │ +│ ┌─────────────┐ ┌──────────────┐ ┌──────────────────┐ │ +│ │ Commands │ │ Services │ │ Models/Config │ │ +│ │ (API 层) │──│ (业务层) │──│ (数据) │ │ +│ └─────────────┘ └──────────────┘ └──────────────────┘ │ └─────────────────────────────────────────────────────────────┘ ``` diff --git a/src/components/AppSwitcher.tsx b/src/components/AppSwitcher.tsx index f7ac954..010bce4 100644 --- a/src/components/AppSwitcher.tsx +++ b/src/components/AppSwitcher.tsx @@ -1,5 +1,6 @@ import type { AppId } from "@/lib/api"; import { ClaudeIcon, CodexIcon, GeminiIcon } from "./BrandIcons"; +import { useTranslation } from "react-i18next"; interface AppSwitcherProps { activeApp: AppId; @@ -7,6 +8,7 @@ interface AppSwitcherProps { } export function AppSwitcher({ activeApp, onSwitch }: AppSwitcherProps) { + const { t } = useTranslation(); const handleSwitch = (app: AppId) => { if (app === activeApp) return; onSwitch(app); @@ -31,7 +33,7 @@ export function AppSwitcher({ activeApp, onSwitch }: AppSwitcherProps) { : "text-gray-500 dark:text-gray-400 group-hover:text-[#D97757] dark:group-hover:text-[#D97757] transition-colors duration-200" } /> - Claude + {t("apps.claude")} );