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": {