mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-10 10:33:41 +08:00
refactor: update UI text and error messages to English for better accessibility
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user