From 4c25e6bff9f9ed7ab9e3110440af1d2a057eefa1 Mon Sep 17 00:00:00 2001 From: "jonsk.echo" Date: Tue, 18 Nov 2025 15:51:29 +0800 Subject: [PATCH 1/2] Update common.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加中文翻译。 --- src/locales/zh/common.json | 369 ++++++++++++++++++++++++++++++++++++- 1 file changed, 368 insertions(+), 1 deletion(-) diff --git a/src/locales/zh/common.json b/src/locales/zh/common.json index 0967ef424b..15fe72616c 100644 --- a/src/locales/zh/common.json +++ b/src/locales/zh/common.json @@ -1 +1,368 @@ -{} +{ + "apisix": { + "dashboard": "APISIX Dashboard", + "logo": "APISIX Logo" + }, + "consumerGroups": { + "singular": "消费者组" + }, + "consumers": { + "singular": "消费者" + }, + "credentials": { + "singular": "凭证" + }, + "form": { + "basic": { + "desc": "描述", + "labels": { + "errorFormat": "格式标签错误, 正确格式为`key:value`", + "key": "Key", + "placeholder": "输入类似 `key:value`, then enter or blur", + "title": "标签", + "value": "值" + }, + "name": "名字", + "status": "状态", + "statusOption": { + "0": "已禁用", + "1": "已启用" + }, + "title": "基本信息" + }, + "btn": { + "add": "增加", + "addARow": "增加一行", + "cancel": "取消", + "delete": "删除", + "edit": "编辑", + "save": "保存", + "upload": "上传", + "view": "查看" + }, + "consumers": { + "groupId": "组ID", + "username": "用户名" + }, + "disabled": "禁用,点击开关启用", + "general": { + "title": "常规" + }, + "info": { + "create_time": "创建时间", + "id": "ID", + "title": "信息", + "update_time": "更新时间" + }, + "json": { + "parseError": "JSON格式无效" + }, + "plugins": { + "addPlugin": "添加插件", + "configId": "插件配置ID", + "editPlugin": "编辑插件", + "label": "插件", + "searchForSelectedPlugins": "搜索所选插件", + "selectPlugins": { + "title": "选择插件" + }, + "viewPlugin": "查看插件" + }, + "protos": { + "content": "内容", + "contentPlaceholder": "粘贴或上传 {{fileTypes}} 文件" + }, + "routes": { + "enableWebsocket": "启用WebSocket", + "filterFunc": "过滤函数", + "host": "主机", + "hosts": "主机", + "matchRules": "匹配规则", + "methods": "HTTP方法", + "priority": "优先级", + "remoteAddr": "远程地址", + "remoteAddrs": "远程地址", + "service": "服务", + "uri": "URI", + "uris": "URIs", + "vars": "变量" + }, + "search": "搜索", + "secrets": { + "aws": { + "access_key_id": "访问密钥ID", + "endpoint_url": "端点url", + "region": "地区", + "secret_access_key": "Secret Access Key", + "session_token": "Session Token" + }, + "gcp": { + "auth": "认证", + "auth_config": "身份认证配置", + "auth_file": "身份认证文件", + "client_email": "客户端电子邮件", + "entries_uri": "Entries URI", + "private_key": "私钥", + "project_id": "项目 ID", + "scope": "范围", + "ssl_verify": "SSL验证", + "token_uri": "Token URI" + }, + "manager": "安全管理", + "managerConfig": "配置管理", + "title": "安全配置", + "vault": { + "namespace": "命名空间", + "prefix": "前缀", + "token": "Token", + "uri": "URI" + } + }, + "services": { + "enableWebsocket": "启用WebSocket", + "hosts": "主机", + "script": "脚本", + "settings": "服务设置" + }, + "ssls": { + "cert": "证书", + "cert_key_list": { + "add": "添加pair", + "delete": "删除pair", + "title": "证书和密钥对" + }, + "client": { + "ca": "客户端CA证书", + "depth": "Verification Depth", + "skipMtlsUriRegex": "跳过 mTLS URI 正则表达式", + "title": "客户端" + }, + "key": "私钥", + "sni": "SNI", + "snis": "SNIs", + "ssl_protocols": "SSL协议", + "type": "证书类型" + }, + "streamRoutes": { + "protocol": { + "conf": "配置", + "logger": "记录器", + "name": "协议名称", + "superiorId": "Superior ID", + "title": "协议信息" + }, + "remoteAddr": "远程地址", + "server": "服务器", + "serverAddr": "服务器地址", + "serverPort": "服务器端口", + "sni": "SNI" + }, + "tagsInput": { + "placeholder": "Input text, then enter or blur" + }, + "upload": { + "fileOverSize": "文件尺寸太大", + "readError": "文件读取错误:" + }, + "upstreams": { + "checks": { + "active": { + "concurrency": "并发", + "healthy": { + "http_statuses": "HTTP状态", + "interval": "间隔", + "successes": "成功", + "title": "健康" + }, + "host": "主机", + "http_path": "HTTP路径", + "http_request_headers": "HTTP请求头", + "https_verify_certificate": "Https验证证书", + "port": "端口", + "timeout": "超时", + "title": "活动", + "type": "类型", + "unhealthy": { + "http_failures": "HTTP失败", + "http_statuses": "HTTP状态", + "interval": "间隔", + "tcp_failures": "TCP故障", + "timeouts": "超时", + "title": "故障" + } + }, + "passive": { + "healthy": { + "http_statuses": "HTTP状态", + "successes": "“成功", + "title": "Healthy" + }, + "title": "Passive", + "type": "类型", + "unhealthy": { + "http_failures": "HTTP失败", + "http_statuses": "HTTP状态", + "tcp_failures": "TCP失败", + "timeouts": "超时", + "title": "Unhealthy" + } + }, + "title": "健康检查" + }, + "connectionConfiguration": "连接配置", + "discoveryArgs": { + "title": "发现Args" + }, + "discoveryType": { + "title": "发现类型" + }, + "findUpstreamFrom": "查找来自上游", + "hashOn": "哈希开启", + "hashOnDesc": "This will be valid when `type` is `chash`", + "identifier": "上游标识符", + "inline": "内联上游配置", + "keepalivePool": { + "idleTimeout": "空闲超时", + "requests": "请求", + "size": "大小", + "title": "Keepalive Pool" + }, + "key": "Key", + "keyDesc": "This will be valid when `type` is `chash`", + "loadBalancing": "负载平衡", + "nodes": { + "action": { + "title": "操作" + }, + "add": "添加节点", + "host": { + "title": "主机" + }, + "port": { + "title": "端口" + }, + "priority": { + "title": "优先级" + }, + "title": "节点", + "weight": { + "title": "Weight" + } + }, + "passHost": "Pass Host", + "retries": "重试", + "retry": "重试", + "retryTimeout": "重试超时", + "scheme": "方案", + "serviceDiscovery": { + "serviceName": "服务名称", + "title": "服务发现" + }, + "serviceId": "服务ID", + "serviceName": { + "title": "服务名称" + }, + "timeout": { + "connect": "连接", + "read": "读取", + "send": "发送", + "title": "超时" + }, + "title": "上", + "tls": { + "clientCert": "客户端证书", + "clientCertId": "客户端证书ID", + "clientCertKeyPair": "客户端证书密钥对", + "clientKey": "客户端密钥", + "title": "TLS", + "verify": "验证" + }, + "type": "类型", + "updateTime": "更新时间", + "upstreamHost": "上游主机", + "upstreamHostDesc": "Set this when `pass_host` is `rewrite`", + "upstreamId": "上游ID" + } + }, + "globalRules": { + "singular": "全局规则" + }, + "help-us-translate": "帮助我们进行翻译!", + "info": { + "add": { + "success": "添加 {{name}} 成功", + "title": "添加 {{name}}" + }, + "delete": { + "content": "是否要删除 {{name}}", + "success": "删除 {{name}} 成功", + "title": "删除 {{name}}" + }, + "detail": { + "title": "{{name}} 详细信息" + }, + "edit": { + "success": "编辑 {{name}} 成功", + "title": "编辑 {{name}}" + } + }, + "mark": { + "question": "?" + }, + "noData": "无数据", + "or": "OR", + "pluginConfigs": { + "singular": "插件配置" + }, + "pluginMetadata": { + "search": "搜索插件元数据", + "singular": "插件元数据" + }, + "protos": { + "singular": "协议" + }, + "routes": { + "singular": "路由" + }, + "seconds": "秒", + "secrets": { + "singular": "Secret" + }, + "services": { + "singular": "服务" + }, + "settings": { + "adminKey": "管理员密钥”", + "title": "设置", + "ui-commit-sha": "UI提交SHA" + }, + "sources": { + "consumerGroups": "消费者组", + "consumers": "消费者", + "credentials": "凭据", + "globalRules": "全局规则", + "pluginConfigs": "插件配置", + "pluginMetadata": "插件元数据", + "protos": "协议", + "routes": "路由", + "secrets": "Secrets", + "services": "服务", + "ssls": "SSLs", + "streamRoutes": "Stream Routes", + "upstreams": "上游" + }, + "ssls": { + "singular": "SSL" + }, + "streamRoutes": { + "singular": "Stream Route" + }, + "table": { + "actions": "动作", + "disabled": "禁止", + "enabled": "启用" + }, + "upstreams": { + "singular": "上游" + } +} From 7e9d95b1b7228a321a5df873c4b70f1f395bea12 Mon Sep 17 00:00:00 2001 From: "jonsk.echo" Date: Wed, 3 Dec 2025 18:11:41 +0800 Subject: [PATCH 2/2] Update common.json MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新了部分错误 --- src/locales/zh/common.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/locales/zh/common.json b/src/locales/zh/common.json index 15fe72616c..b8e24a41b9 100644 --- a/src/locales/zh/common.json +++ b/src/locales/zh/common.json @@ -16,9 +16,9 @@ "basic": { "desc": "描述", "labels": { - "errorFormat": "格式标签错误, 正确格式为`key:value`", + "errorFormat": "标签格式错误, 正确格式为`key:value`", "key": "Key", - "placeholder": "输入类似 `key:value`, then enter or blur", + "placeholder": "输入类似`key:value`, then enter or blur", "title": "标签", "value": "值" }, @@ -91,7 +91,7 @@ "secrets": { "aws": { "access_key_id": "访问密钥ID", - "endpoint_url": "端点url", + "endpoint_url": "端点URL", "region": "地区", "secret_access_key": "Secret Access Key", "session_token": "Session Token" @@ -194,7 +194,7 @@ "passive": { "healthy": { "http_statuses": "HTTP状态", - "successes": "“成功", + "successes": "成功", "title": "Healthy" }, "title": "Passive", @@ -229,7 +229,7 @@ }, "key": "Key", "keyDesc": "This will be valid when `type` is `chash`", - "loadBalancing": "负载平衡", + "loadBalancing": "负载均衡", "nodes": { "action": { "title": "操作" @@ -268,7 +268,7 @@ "send": "发送", "title": "超时" }, - "title": "上", + "title": "标题", "tls": { "clientCert": "客户端证书", "clientCertId": "客户端证书ID", @@ -332,7 +332,7 @@ "singular": "服务" }, "settings": { - "adminKey": "管理员密钥”", + "adminKey": "管理员密钥", "title": "设置", "ui-commit-sha": "UI提交SHA" },