feat: integrate language switcher into settings with modern segment control UI

- Move language switcher from header to settings modal for better organization
- Implement modern segment control UI instead of radio buttons for language selection
- Add language preference persistence in localStorage and backend settings
- Support instant language preview with cancel/revert functionality
- Remove standalone LanguageSwitcher component
- Improve initial language detection logic (localStorage -> browser -> default)
- Add proper i18n keys for language settings UI text
This commit is contained in:
Jason
2025-09-28 22:23:49 +08:00
parent 0bedbb2663
commit c5aa244d65
8 changed files with 157 additions and 38 deletions

View File

@@ -30,4 +30,6 @@ export interface Settings {
claudeConfigDir?: string;
// 覆盖 Codex 配置目录(可选)
codexConfigDir?: string;
// 首选语言(可选,默认中文)
language?: "en" | "zh";
}