From f8447721263f7ffaf385b5a47e0bfa47a7c975ef Mon Sep 17 00:00:00 2001 From: "Apple\\Apple" Date: Fri, 13 Jun 2025 01:43:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20fix(PersonalSetting):=20improve?= =?UTF-8?q?=20notification=20message=20accuracy=20for=20settings=20save=20?= =?UTF-8?q?operation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change success message from "通知设置已更新" to "设置保存成功" - Change error message from "更新通知设置失败" to "设置保存失败" - Makes messages more generic since the function saves multiple types of settings (notification, pricing, IP logging) not just notification settings --- web/src/components/settings/PersonalSetting.js | 4 ++-- web/src/i18n/locales/en.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/web/src/components/settings/PersonalSetting.js b/web/src/components/settings/PersonalSetting.js index 95821332..36eb4e4d 100644 --- a/web/src/components/settings/PersonalSetting.js +++ b/web/src/components/settings/PersonalSetting.js @@ -368,13 +368,13 @@ const PersonalSetting = () => { }); if (res.data.success) { - showSuccess(t('通知设置已更新')); + showSuccess(t('设置保存成功')); await getUserData(); } else { showError(res.data.message); } } catch (error) { - showError(t('更新通知设置失败')); + showError(t('设置保存失败')); } }; diff --git a/web/src/i18n/locales/en.json b/web/src/i18n/locales/en.json index 6b0d80fb..4fcf19e4 100644 --- a/web/src/i18n/locales/en.json +++ b/web/src/i18n/locales/en.json @@ -1650,5 +1650,7 @@ "IP记录": "IP Record", "记录请求与错误日志 IP": "Record request and error log IP", "开启后,仅“消费”和“错误”日志将记录您的客户端 IP 地址": "After enabling, only \"consumption\" and \"error\" logs will record your client IP address", - "只有当用户设置开启IP记录时,才会进行请求和错误类型日志的IP记录": "Only when the user sets IP recording, the IP recording of request and error type logs will be performed" + "只有当用户设置开启IP记录时,才会进行请求和错误类型日志的IP记录": "Only when the user sets IP recording, the IP recording of request and error type logs will be performed", + "设置保存成功": "Settings saved successfully", + "设置保存失败": "Settings save failed" } \ No newline at end of file