i18n: Translate all Chinese to English across the codebase

Translate Chinese comments, log/error messages, validator labels and
Swagger annotations to English throughout the source code, generated
Swagger docs, config files and CI workflows.

Make the English README primary: README.md now holds the English docs
and README_EN.md holds the Chinese version, with cross-language links
updated accordingly.

Note: the generated docs/ swagger files were translated in place; run
`go generate ./...` (swag init) to regenerate them from the now-English
annotations when a Go toolchain is available.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-27 12:17:04 +02:00
co-authored by Claude Opus 4.8
parent c5687e1506
commit 16e97c8efa
103 changed files with 3088 additions and 3086 deletions
+20 -20
View File
@@ -64,7 +64,7 @@ func (o *Oauth) ToBind(c *gin.Context) {
})
}
// Confirm 确认授权登录
// Confirm confirm authorized login
func (o *Oauth) Confirm(c *gin.Context) {
j := &adminReq.OauthConfirmForm{}
err := c.ShouldBindJSON(j)
@@ -140,8 +140,8 @@ func (o *Oauth) Unbind(c *gin.Context) {
// Detail Oauth
// @Tags Oauth
// @Summary Oauth详情
// @Description Oauth详情
// @Summary Oauthdetails
// @Description Oauthdetails
// @Accept json
// @Produce json
// @Param id path int true "ID"
@@ -161,13 +161,13 @@ func (o *Oauth) Detail(c *gin.Context) {
return
}
// Create 创建Oauth
// Create createOauth
// @Tags Oauth
// @Summary 创建Oauth
// @Description 创建Oauth
// @Summary createOauth
// @Description createOauth
// @Accept json
// @Produce json
// @Param body body admin.OauthForm true "Oauth信息"
// @Param body body admin.OauthForm true "Oauthinfo"
// @Success 200 {object} response.Response{data=model.Oauth}
// @Failure 500 {object} response.Response
// @Router /admin/oauth/create [post]
@@ -202,14 +202,14 @@ func (o *Oauth) Create(c *gin.Context) {
response.Success(c, nil)
}
// List 列表
// List list
// @Tags Oauth
// @Summary Oauth列表
// @Description Oauth列表
// @Summary Oauthlist
// @Description Oauthlist
// @Accept json
// @Produce json
// @Param page query int false "页码"
// @Param page_size query int false "页大小"
// @Param page query int false "page number"
// @Param page_size query int false "page size"
// @Success 200 {object} response.Response{data=model.OauthList}
// @Failure 500 {object} response.Response
// @Router /admin/oauth/list [get]
@@ -224,13 +224,13 @@ func (o *Oauth) List(c *gin.Context) {
response.Success(c, res)
}
// Update 编辑
// Update edit
// @Tags Oauth
// @Summary Oauth编辑
// @Description Oauth编辑
// @Summary Oauthedit
// @Description Oauthedit
// @Accept json
// @Produce json
// @Param body body admin.OauthForm true "Oauth信息"
// @Param body body admin.OauthForm true "Oauthinfo"
// @Success 200 {object} response.Response{data=model.OauthList}
// @Failure 500 {object} response.Response
// @Router /admin/oauth/update [post]
@@ -259,13 +259,13 @@ func (o *Oauth) Update(c *gin.Context) {
response.Success(c, nil)
}
// Delete 删除
// Delete delete
// @Tags Oauth
// @Summary Oauth删除
// @Description Oauth删除
// @Summary Oauthdelete
// @Description Oauthdelete
// @Accept json
// @Produce json
// @Param body body admin.OauthForm true "Oauth信息"
// @Param body body admin.OauthForm true "Oauthinfo"
// @Success 200 {object} response.Response
// @Failure 500 {object} response.Response
// @Router /admin/oauth/delete [post]