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
+6 -6
View File
@@ -18,7 +18,7 @@ func ApiInit(g *gin.Engine) {
if global.Config.App.ShowSwagger == 1 {
g.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler, ginSwagger.InstanceName("api")))
}
// 加载 HTML 模板
// load HTML template
g.LoadHTMLGlob("resources/templates/*")
frg := g.Group("/api")
@@ -33,7 +33,7 @@ func ApiInit(g *gin.Engine) {
{
l := &api.Login{}
// 如果返回oidc则可以通过oidc登录
// if oidc is returned, login via oidc is possible
frg.GET("/login-options", l.LoginOptions)
frg.POST("/login", l.Login)
@@ -56,7 +56,7 @@ func ApiInit(g *gin.Engine) {
}
{
pe := &api.Peer{}
//提交系统信息
//submit system info
frg.POST("/sysinfo", pe.SysInfo)
frg.POST("/sysinfo_ver", pe.SysInfoVer)
}
@@ -93,14 +93,14 @@ func ApiInit(g *gin.Engine) {
{
ab := &api.Ab{}
//获取地址
//get address
frg.GET("/ab", ab.Ab)
//更新地址
//update address
frg.POST("/ab", ab.UpAb)
}
PersonalRoutes(frg)
//访问静态文件
//access static files
g.StaticFS("/upload", http.Dir(global.Config.Gin.ResourcesPath+"/public/upload"))
}