You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/12/28 09:10:43 UTC

[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #1097: feat: improve upstream i18n

juzhiyuan commented on a change in pull request #1097:
URL: https://github.com/apache/apisix-dashboard/pull/1097#discussion_r549272308



##########
File path: web/src/pages/Upstream/locales/zh-CN.ts
##########
@@ -15,80 +15,89 @@
  * limitations under the License.
  */
 export default {
-  'upstream.step.backend.server.domain.or.ip': '后端服务域名/IP',
-  'upstream.step.domain.name.default.analysis':
+  'page.upstream.step.select.upstream': '选择上游',
+  'page.upstream.step.select.upstream.select.option': '手动填写',
+  'page.upstream.form.item-label.node.domain.or.ip': '节点域名/IP',
+  'page.upstream.step.backend.server.domain.or.ip': '后端服务域名/IP',
+  'page.upstream.form.item.extra-message.node.domain.or.ip':
     '使用域名时,默认解析本地 /etc/resolv.conf;权重为0则熔断该节点',
-  'upstream.step.input.domain.name.or.ip': '请输入域名/IP',
-  'upstream.step.domain.name.or.ip.rule': '仅支持字母、数字和 . ',
-  'upstream.step.domain.name.or.ip': '域名/IP',
-  'upstream.step.input.port': '请输入端口号',
-  'upstream.step.port': '端口号',
-  'upstream.step.input.weight': '请输入权重',
-  'upstream.step.weight': '权重',
-  'upstream.step.create': '创建',
-  'upstream.step.name': '名称',
-  'upstream.step.name.should.unique': '名称需全局唯一',
-  'upstream.step.input.upstream.name': '请输入上游名称',
-  'upstream.step.description': '描述',
-  'upstream.step.input.description': '请输入描述',
-  'upstream.step.type': '类型',
-  'upstream.step.pass-host': '传递域名',
-  'upstream.step.pass-host.tips': '当选择节点时,节点域名只能有一条数据。',
-  'upstream.step.pass-host.pass': '透传',
-  'upstream.step.pass-host.node': '节点',
-  'upstream.step.pass-host.rewrite': '重写',
-  'upstream.step.pass-host.upstream_host': '上游域名',
-  'upstream.step.connect.timeout': '连接超时',
-  'upstream.step.input.connect.timeout': '请输入连接超时时间',
-  'upstream.step.send.timeout': '发送超时',
-  'upstream.step.input.send.timeout': '请输入发送超时时间',
-  'upstream.step.read.timeout': '接收超时',
-  'upstream.step.input.read.timeout': '请输入接收超时时间',
-  'upstream.step.healthy.check': '上游健康检查',
-  'upstream.step.healthy.checks.healthy': '健康',
-  'upstream.step.healthy.checks.unhealthy': '不健康',
-  'upstream.step.healthy.checks.active': '探活健康检查',
-  'upstream.step.healthy.checks.active.timeout': '超时时间',
-  'upstream.step.input.healthy.checks.active.timeout': '请输入超时时间',
-  'upstream.step.healthy.checks.active.http_path': '路径',
-  'upstream.step.input.healthy.checks.active.http_path': '请输入路径',
-  'upstream.step.healthy.checks.active.port': "端口",
-  'upstream.step.input.healthy.checks.active.port': '请输入端口',
-  'upstream.step.healthy.checks.active.host': '域名',
-  'upstream.step.input.healthy.checks.active.host': '请输入域名',
-  'upstream.step.healthy.checks.active.interval': '间隔',
-  'upstream.step.input.healthy.checks.active.interval': '请输入间隔',
-  'upstream.step.healthy.checks.successes': '成功次数',
-  'upstream.step.input.healthy.checks.successes': '请输入成功次数',
-  'upstream.step.healthy.checks.http_failures': '失败次数',
-  'upstream.step.input.healthy.checks.http_failures': '请输入失败次数',
-  'upstream.step.healthy.checks.active.req_headers': '请求头',
-  'upstream.step.input.healthy.checks.active.req_headers': '请输入请求头',
-  'upstream.step.healthy.checks.passive': '被动健康检查',
-  'upstream.step.healthy.checks.passive.http_statuses': '状态码',
-  'upstream.step.input.healthy.checks.passive.http_statuses': '请输入状态码',
-  'upstream.step.healthy.checks.passive.tcp_failures': 'tcp失败次数',
-  'upstream.step.input.healthy.checks.passive.tcp_failures': '请输入tcp失败次数',
-  'upstream.notificationMessage.enableHealthCheckFirst': '请先启用探活健康检查。',
+  'page.upstream.step.input.domain.name.or.ip': '请输入域名/IP',
+  'page.upstream.step.domain.name.or.ip.rule': '仅支持字母、数字和 . ',
+  'page.upstream.step.domain.name.or.ip': '域名/IP',
+  'page.upstream.step.input.port': '请输入端口号',
+  'page.upstream.step.port': '端口号',
+  'page.upstream.step.input.weight': '请输入权重',
+  'page.upstream.step.weight': '权重',
+  'page.upstream.step.create': '创建',
+  'page.upstream.step.name': '名称',
+  'page.upstream.step.name.should.unique': '名称需全局唯一',
+  'page.upstream.step.input.upstream.name': '请输入上游名称',
+  'page.upstream.step.description': '描述',
+  'page.upstream.step.input.description': '请输入描述',
+  'page.upstream.step.type': '类型',
+  'page.upstream.step.create.node': '创建节点',
+  'page.upstream.step.pass-host': '传递域名',
+  'page.upstream.step.pass-host.tips': '当选择节点时,节点域名只能有一条数据。',
+  'page.upstream.step.pass-host.pass': '透传',
+  'page.upstream.step.pass-host.node': '节点',
+  'page.upstream.step.pass-host.rewrite': '重写',
+  'page.upstream.step.pass-host.upstream_host': '上游域名',
+  'page.upstream.step.connect.timeout': '连接超时',
+  'page.upstream.step.input.connect.timeout': '请输入连接超时时间',
+  'page.upstream.step.send.timeout': '发送超时',
+  'page.upstream.step.input.send.timeout': '请输入发送超时时间',
+  'page.upstream.step.read.timeout': '接收超时',
+  'page.upstream.step.input.read.timeout': '请输入接收超时时间',
+  'page.upstream.step.healthy.checks.healthy.check': '健康检查',
+  'page.upstream.step.healthy.check': '上游健康检查',
+  'page.upstream.step.healthy.checks.healthy': '健康',
+  'page.upstream.step.healthy.checks.unhealthy': '不健康',
+  'page.upstream.step.healthy.checks.healthy.status': '健康状态',
+  'page.upstream.step.healthy.checks.unhealthy.status': '不健康状态',
+  'page.upstream.step.healthy.checks.active': '探活健康检查',
+  'page.upstream.step.healthy.checks.active.timeout': '超时时间',
+  'page.upstream.step.input.healthy.checks.active.timeout': '请输入超时时间',
+  'page.upstream.step.healthy.checks.active.http_path': '路径',
+  'page.upstream.step.input.healthy.checks.active.http_path': '请输入路径',
+  'page.upstream.step.healthy.checks.active.port': "端口",
+  'page.upstream.step.input.healthy.checks.active.port': '请输入端口',
+  'page.upstream.step.healthy.checks.active.host': '域名',
+  'page.upstream.step.input.healthy.checks.active.host': '请输入域名',
+  'page.upstream.step.healthy.checks.active.interval': '间隔',
+  'page.upstream.step.input.healthy.checks.active.interval': '请输入间隔',
+  'page.upstream.step.healthy.checks.successes': '成功次数',
+  'page.upstream.step.input.healthy.checks.successes': '请输入成功次数',
+  'page.upstream.step.healthy.checks.http_failures': '失败次数',
+  'page.upstream.step.healthy.checks.active.create.req_headers': '创建请求头',
+  'page.upstream.step.input.healthy.checks.http_failures': '请输入失败次数',
+  'page.upstream.step.healthy.checks.active.req_headers': '请求头',
+  'page.upstream.step.input.healthy.checks.active.req_headers': '请输入请求头',
+  'page.upstream.step.healthy.checks.passive': '被动健康检查',
+  'page.upstream.step.healthy.checks.passive.create.http_statuses': '创建状态码',
+  'page.upstream.step.healthy.checks.passive.http_statuses': '状态码',
+  'page.upstream.step.input.healthy.checks.passive.http_statuses': '请输入状态码',
+  'page.upstream.step.healthy.checks.passive.tcp_failures': 'tcp失败次数',
+  'page.upstream.step.input.healthy.checks.passive.tcp_failures': '请输入tcp失败次数',
+  'page.upstream.notificationMessage.enableHealthCheckFirst': '请先启用探活健康检查。',
 
-  'upstream.create.edit': '编辑',
-  'upstream.create.create': '创建',
-  'upstream.create.upstream.successfully': '上游成功',
-  'upstream.create.basic.info': '基础信息',
-  'upstream.create.preview': '预览',
+  'page.upstream.create.edit': '编辑',
+  'page.upstream.create.create': '创建',
+  'page.upstream.create.upstream.successfully': '上游成功',
+  'page.upstream.create.basic.info': '基础信息',
+  'page.upstream.create.preview': '预览',
 
-  'upstream.list.name': '名称',
-  'upstream.list.type': '类型',
-  'upstream.list.description': '描述',
-  'upstream.list.edit.time': '编辑时间',
-  'upstream.list.operation': '操作',
-  'upstream.list.edit': '编辑',
-  'upstream.list.confirm.delete': '确定删除该条记录吗?',
-  'upstream.list.confirm': '确定',
-  'upstream.list.cancel': '取消',
-  'upstream.list.delete.successfully': '删除记录成功',
-  'upstream.list.delete': '删除',
-  'upstream.list': '上游列表',
-  'upstream.list.input': '请输入',
-  'upstream.list.create': '创建',
+  'page.upstream.list.name': '名称',
+  'page.upstream.list.type': '类型',
+  'page.upstream.list.description': '描述',
+  'page.upstream.list.edit.time': '编辑时间',
+  'page.upstream.list.operation': '操作',
+  'page.upstream.list.edit': '编辑',
+  'page.upstream.list.confirm.delete': '确定删除该条记录吗?',
+  'page.upstream.list.confirm': '确定',
+  'page.upstream.list.cancel': '取消',
+  'page.upstream.list.delete.successfully': '删除记录成功',
+  'page.upstream.list.delete': '删除',
+  'page.upstream.list': '上游列表',
+  'page.upstream.list.input': '请输入',
+  'page.upstream.list.create': '创建',

Review comment:
       @guoqqqi Please file a new PR after this PR is merged.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org