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
+110 -110
View File
@@ -146,8 +146,8 @@ definitions:
collection_id:
type: integer
color:
description: color flutter的颜色值,从0x00000000 0xFFFFFFFF; 前两位表示透明度,后面6位表示颜色,
可以转成rgba
description: color is flutter's color value,from 0x00000000 to 0xFFFFFFFF; the first two digits represent transparency, the following 6 digits represent the color,
can be converted to rgba
type: integer
created_at:
type: string
@@ -194,15 +194,15 @@ definitions:
type: object
info:
contact: {}
description: 接口
title: 管理系统API
description: API
title: management systemAPI
version: "1.0"
paths:
/:
get:
consumes:
- application/json
description: 首页
description: home
produces:
- application/json
responses:
@@ -214,14 +214,14 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.Response'
summary: 首页
summary: home
tags:
- 首页
- home
/ab:
get:
consumes:
- application/json
description: 地址列表
description: address list
produces:
- application/json
responses:
@@ -235,15 +235,15 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 地址列表
summary: address list
tags:
- 地址
- address
post:
consumes:
- application/json
description: 地址更新
description: address update
parameters:
- description: 地址表单
- description: address form
in: body
name: body
required: true
@@ -262,14 +262,14 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 地址更新
summary: address update
tags:
- 地址
- address
/ab/peer/add/{guid}:
delete:
consumes:
- application/json
description: 删除地址
description: delete address
parameters:
- description: guid
in: path
@@ -289,13 +289,13 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 删除地址
summary: delete address
tags:
- 地址[Personal]
- address[Personal]
post:
consumes:
- application/json
description: 添加地址
description: add address
parameters:
- description: guid
in: path
@@ -315,14 +315,14 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 添加地址
summary: add address
tags:
- 地址[Personal]
- address[Personal]
/ab/peer/update/{guid}:
put:
consumes:
- application/json
description: 更新地址
description: update address
parameters:
- description: guid
in: path
@@ -342,20 +342,20 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 更新地址
summary: update address
tags:
- 地址[Personal]
- address[Personal]
/ab/peers:
post:
consumes:
- application/json
description: 地址
description: address
parameters:
- description: 页码
- description: page number
in: query
name: current
type: integer
- description: 每页数量
- description: items per page
in: query
name: pageSize
type: integer
@@ -376,14 +376,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- BearerAuth: []
summary: 地址列表
summary: address list
tags:
- 地址[Personal]
- address[Personal]
/ab/personal:
post:
consumes:
- application/json
description: 个人地址
description: personal address
parameters:
- description: string valid
in: body
@@ -403,14 +403,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- BearerAuth: []
summary: 个人地址
summary: personal address
tags:
- 地址[Personal]
- address[Personal]
/ab/settings:
post:
consumes:
- application/json
description: 设置
description: settings
parameters:
- description: string valid
in: body
@@ -430,20 +430,20 @@ paths:
$ref: '#/definitions/response.Response'
security:
- BearerAuth: []
summary: 设置
summary: settings
tags:
- 地址[Personal]
- address[Personal]
/ab/shared/profiles:
post:
consumes:
- application/json
description: 共享
description: shared
parameters:
- description: 页码
- description: page number
in: query
name: current
type: integer
- description: 每页数量
- description: items per page
in: query
name: pageSize
type: integer
@@ -460,14 +460,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- BearerAuth: []
summary: 共享地址簿
summary: shared address book
tags:
- 地址[Personal]
- address[Personal]
/ab/tag/{guid}:
delete:
consumes:
- application/json
description: 标签
description: tag
parameters:
- description: guid
in: path
@@ -487,14 +487,14 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 标签删除
summary: delete tag
tags:
- 地址[Personal]
- address[Personal]
/ab/tag/add/{guid}:
post:
consumes:
- application/json
description: 标签
description: tag
parameters:
- description: guid
in: path
@@ -514,14 +514,14 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 标签添加
summary: add tag
tags:
- 地址[Personal]
- address[Personal]
/ab/tag/rename/{guid}:
put:
consumes:
- application/json
description: 标签
description: tag
parameters:
- description: guid
in: path
@@ -541,14 +541,14 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 标签重命名
summary: rename tag
tags:
- 地址[Personal]
- address[Personal]
/ab/tag/update/{guid}:
put:
consumes:
- application/json
description: 标签
description: tag
parameters:
- description: guid
in: path
@@ -568,14 +568,14 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 标签修改颜色
summary: change tag color
tags:
- 地址[Personal]
- address[Personal]
/ab/tags/{guid}:
post:
consumes:
- application/json
description: 标签
description: tag
parameters:
- description: guid
in: path
@@ -595,16 +595,16 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 标签
summary: tag
tags:
- 地址[Personal]
- address[Personal]
/audit/conn:
post:
consumes:
- application/json
description: 审计连接
description: audit connection
parameters:
- description: 审计连接
- description: audit connection
in: body
name: body
required: true
@@ -621,16 +621,16 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.Response'
summary: 审计连接
summary: audit connection
tags:
- 审计
- audit
/audit/file:
post:
consumes:
- application/json
description: 审计文件
description: audit file
parameters:
- description: 审计文件
- description: audit file
in: body
name: body
required: true
@@ -647,14 +647,14 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.Response'
summary: 审计文件
summary: audit file
tags:
- 审计
- audit
/currentUser:
get:
consumes:
- application/json
description: 用户信息
description: user info
produces:
- application/json
responses:
@@ -668,24 +668,24 @@ paths:
$ref: '#/definitions/response.Response'
security:
- token: []
summary: 用户信息
summary: user info
tags:
- 用户
- user
/device-group/accessible:
get:
consumes:
- application/json
description: 机器
description: machine
parameters:
- description: 页码
- description: page number
in: query
name: page
type: integer
- description: 每页数量
- description: items per page
in: query
name: pageSize
type: integer
- description: 状态
- description: status
in: query
name: status
type: integer
@@ -706,14 +706,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- BearerAuth: []
summary: 设备
summary: device
tags:
- 群组
- group
/heartbeat:
post:
consumes:
- application/json
description: 心跳
description: heartbeat
produces:
- application/json
responses:
@@ -723,16 +723,16 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.Response'
summary: 心跳
summary: heartbeat
tags:
- 首页
- home
/login:
post:
consumes:
- application/json
description: 登录
description: login
parameters:
- description: 登录表单
- description: login form
in: body
name: body
required: true
@@ -749,14 +749,14 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.ErrorResponse'
summary: 登录
summary: login
tags:
- 登录
- login
/login-options:
get:
consumes:
- application/json
description: 登录选项
description: login options
produces:
- application/json
responses:
@@ -770,14 +770,14 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.ErrorResponse'
summary: 登录选项
summary: login options
tags:
- 登录
- login
/logout:
post:
consumes:
- application/json
description: 登出
description: logout
produces:
- application/json
responses:
@@ -789,9 +789,9 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.ErrorResponse'
summary: 登出
summary: logout
tags:
- 登录
- login
/oidc/auth:
post:
consumes:
@@ -853,17 +853,17 @@ paths:
get:
consumes:
- application/json
description: 机器
description: machine
parameters:
- description: 页码
- description: page number
in: query
name: page
type: integer
- description: 每页数量
- description: items per page
in: query
name: pageSize
type: integer
- description: 状态
- description: status
in: query
name: status
type: integer
@@ -884,14 +884,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- BearerAuth: []
summary: 机器
summary: machine
tags:
- 群组
- group
/server-config:
get:
consumes:
- application/json
description: 服务配置,给webclient提供api-server
description: service config, provides an api-server for the webclient
produces:
- application/json
responses:
@@ -905,14 +905,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- token: []
summary: 服务配置
summary: service config
tags:
- WEBCLIENT
/server-config-v2:
get:
consumes:
- application/json
description: 服务配置,给webclient提供api-server
description: service config, provides an api-server for the webclient
produces:
- application/json
responses:
@@ -926,14 +926,14 @@ paths:
$ref: '#/definitions/response.Response'
security:
- token: []
summary: 服务配置
summary: service config
tags:
- WEBCLIENT_V2
/shared-peer:
post:
consumes:
- application/json
description: 分享的peer
description: shared peer
produces:
- application/json
responses:
@@ -945,16 +945,16 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.Response'
summary: 分享的peer
summary: shared peer
tags:
- WEBCLIENT
/sysinfo:
post:
consumes:
- application/json
description: 提交系统信息
description: submit system info
parameters:
- description: 系统信息表单
- description: system info form
in: body
name: body
required: true
@@ -971,14 +971,14 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.ErrorResponse'
summary: 提交系统信息
summary: submit system info
tags:
- System
/sysinfo_ver:
post:
consumes:
- application/json
description: 获取系统版本信息
description: get system version info
produces:
- application/json
responses:
@@ -990,24 +990,24 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.ErrorResponse'
summary: 获取系统版本信息
summary: get system version info
tags:
- System
/users:
get:
consumes:
- application/json
description: 用户列表
description: user list
parameters:
- description: 页码
- description: page number
in: query
name: page
type: integer
- description: 每页数量
- description: items per page
in: query
name: pageSize
type: integer
- description: 状态
- description: status
in: query
name: status
type: integer
@@ -1035,14 +1035,14 @@ paths:
$ref: '#/definitions/response.ErrorResponse'
security:
- BearerAuth: []
summary: 用户列表
summary: user list
tags:
- 群组
- group
/version:
get:
consumes:
- application/json
description: 版本
description: version
produces:
- application/json
responses:
@@ -1054,9 +1054,9 @@ paths:
description: Internal Server Error
schema:
$ref: '#/definitions/response.Response'
summary: 版本
summary: version
tags:
- 首页
- home
securityDefinitions:
BearerAuth:
in: header