refactor: update UI text and error messages to English for better accessibility

This commit is contained in:
Laisky.Cai
2025-01-19 12:59:58 +00:00
parent 76ba80d406
commit 13b1b165bd
62 changed files with 805 additions and 805 deletions

View File

@@ -27,7 +27,7 @@ func TurnstileCheck() gin.HandlerFunc {
if response == "" {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": "Turnstile token 为空",
"message": "Turnstile token is empty",
})
c.Abort()
return
@@ -61,7 +61,7 @@ func TurnstileCheck() gin.HandlerFunc {
if !res.Success {
c.JSON(http.StatusOK, gin.H{
"success": false,
"message": "Turnstile 校验失败,请刷新重试!",
"message": "Turnstile verification failed, please refresh and try again!",
})
c.Abort()
return
@@ -70,7 +70,7 @@ func TurnstileCheck() gin.HandlerFunc {
err = session.Save()
if err != nil {
c.JSON(http.StatusOK, gin.H{
"message": "无法保存会话信息,请重试",
"message": "Unable to save session information, please try again",
"success": false,
})
return