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

@@ -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 层 │──│ 业务层 │──│ 数据
│ └─────────────┘ └──────────────┘ └──────────────────┘
└─────────────────────────────────────────────────────────────┘
```