From c17100ed3cbdf5e62aeddce2e32ded24f8c53587 Mon Sep 17 00:00:00 2001 From: Snowykami Date: Wed, 10 Sep 2025 21:21:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=AD=E6=B7=BB=E5=8A=A0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=98=BE=E7=A4=BA=EF=BC=8C=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=8F=8D=E9=A6=88=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/common/captcha/turnstile.tsx | 3 ++- web/src/locales/zh-CN.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/components/common/captcha/turnstile.tsx b/web/src/components/common/captcha/turnstile.tsx index aa6cd1e..c6be410 100644 --- a/web/src/components/common/captcha/turnstile.tsx +++ b/web/src/components/common/captcha/turnstile.tsx @@ -63,7 +63,8 @@ export function TurnstileWidget(props: CaptchaProps) {
{status === 'loading' && } {status === 'success' && } -
{status === 'success' ? t("success") :t("doing")}
+ {status === 'error' && } +
{status === 'success' ? t("success") : (status === 'error' ? t("error") : t("doing"))}
diff --git a/web/src/locales/zh-CN.json b/web/src/locales/zh-CN.json index 5ead2f7..8240ba3 100644 --- a/web/src/locales/zh-CN.json +++ b/web/src/locales/zh-CN.json @@ -4,6 +4,7 @@ }, "Captcha": { "doing": "正在检测你是不是机器人...", + "error": "验证失败,请重试。", "success": "恭喜,你是人类!" }, "Comment": {