fix(i18n): add internationalization support for app names

- Add i18n for Claude/Codex/Gemini app names in AppSwitcher
- Use useTranslation hook with existing translation keys
- Fix ASCII diagram alignment in README files
This commit is contained in:
Jason
2025-11-13 16:37:58 +08:00
parent 30c763ffe3
commit 2fae8c9275
3 changed files with 23 additions and 21 deletions

View File

@@ -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) │
│ └─────────────┘ └──────────────┘ └──────────────────┘
└─────────────────────────────────────────────────────────────┘
```