From 1a8ae85e551afc297d9249bdca0049ad366e517c Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 28 Sep 2025 22:40:14 +0800 Subject: [PATCH] refactor: simplify language settings UI by removing description text and general section --- src/components/SettingsModal.tsx | 60 +++++++++++++------------------- src/i18n/locales/en.json | 1 - src/i18n/locales/zh.json | 1 - 3 files changed, 25 insertions(+), 37 deletions(-) diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsx index de7684a..589b8df 100644 --- a/src/components/SettingsModal.tsx +++ b/src/components/SettingsModal.tsx @@ -374,44 +374,34 @@ export default function SettingsModal({ onClose }: SettingsModalProps) { {/* 设置内容 */}
- {/* 通用设置 */} + {/* 语言设置 */}

- {t("settings.general")} + {t("settings.language")}

-
-
-

- {t("settings.language")} -

-

- {t("settings.languageDescription")} -

-
- - -
-
+
+ +
diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 0956387..cde99f3 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -64,7 +64,6 @@ "title": "Settings", "general": "General", "language": "Language", - "languageDescription": "Choose the display language for CC Switch. This preference will be remembered next time you open the app.", "languageOptionChinese": "中文", "languageOptionEnglish": "English", "windowBehavior": "Window Behavior", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 36012c7..8102d89 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -64,7 +64,6 @@ "title": "设置", "general": "通用", "language": "界面语言", - "languageDescription": "选择 CC Switch 的显示语言,下次启动会自动记住你的偏好。", "languageOptionChinese": "中文", "languageOptionEnglish": "English", "windowBehavior": "窗口行为",