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:
+3
-3
@@ -22,7 +22,7 @@ func (as *AuditService) AuditConnList(page, pageSize uint, where func(tx *gorm.D
|
||||
return
|
||||
}
|
||||
|
||||
// Create 创建
|
||||
// Create create
|
||||
func (as *AuditService) CreateAuditConn(u *model.AuditConn) error {
|
||||
res := DB.Create(u).Error
|
||||
return res
|
||||
@@ -31,7 +31,7 @@ func (as *AuditService) DeleteAuditConn(u *model.AuditConn) error {
|
||||
return DB.Delete(u).Error
|
||||
}
|
||||
|
||||
// Update 更新
|
||||
// Update update
|
||||
func (as *AuditService) UpdateAuditConn(u *model.AuditConn) error {
|
||||
return DB.Model(u).Updates(u).Error
|
||||
}
|
||||
@@ -80,7 +80,7 @@ func (as *AuditService) DeleteAuditFile(u *model.AuditFile) error {
|
||||
return DB.Delete(u).Error
|
||||
}
|
||||
|
||||
// Update 更新
|
||||
// Update update
|
||||
func (as *AuditService) UpdateAuditFile(u *model.AuditFile) error {
|
||||
return DB.Model(u).Updates(u).Error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user