diff --git a/src/locales/en-US/menu.ts b/src/locales/en-US/menu.ts index 52c032de3b..1d43bab12a 100644 --- a/src/locales/en-US/menu.ts +++ b/src/locales/en-US/menu.ts @@ -48,9 +48,10 @@ export default { 'menu.editor.flow': 'Flow Editor', 'menu.editor.mind': 'Mind Editor', 'menu.editor.koni': 'Koni Editor', + 'menu.metrics': 'Metrics', + 'menu.routes': 'Route', 'menu.ssl': 'SSL', - 'menu.ssl.list': 'List', - 'menu.ssl.edit': 'Edit', - 'menu.ssl.create': 'Create', + 'menu.upstream': 'Upstream', + 'menu.consumer': 'Consumer', 'menu.setting': 'Settings', }; diff --git a/src/locales/zh-CN/menu.ts b/src/locales/zh-CN/menu.ts index d1a36ab1c8..f4a637603a 100644 --- a/src/locales/zh-CN/menu.ts +++ b/src/locales/zh-CN/menu.ts @@ -48,10 +48,10 @@ export default { 'menu.editor.flow': '流程编辑器', 'menu.editor.mind': '脑图编辑器', 'menu.editor.koni': '拓扑编辑器', - 'menu.ssl': 'SSL', - 'menu.ssl.list': '列表', - 'menu.ssl.edit': '编辑', - 'menu.ssl.create': '创建', - 'menu.setting': '设置', 'menu.metrics': '监控', + 'menu.routes': '路由', + 'menu.ssl': '证书', + 'menu.upstream': '上游', + 'menu.consumer': '用户', + 'menu.setting': '设置', }; diff --git a/src/pages/Consumer/List.tsx b/src/pages/Consumer/List.tsx index 1985f2182f..772e938498 100644 --- a/src/pages/Consumer/List.tsx +++ b/src/pages/Consumer/List.tsx @@ -61,7 +61,7 @@ const Page: React.FC = () => { ]; return ( - + actionRef={ref} columns={columns} diff --git a/src/pages/Consumer/locales/en-US.ts b/src/pages/Consumer/locales/en-US.ts index fcfbc76c7b..fc199e58df 100644 --- a/src/pages/Consumer/locales/en-US.ts +++ b/src/pages/Consumer/locales/en-US.ts @@ -1,9 +1,4 @@ export default { - 'menu.consumer': 'Consumer', - 'menu.consumer.list': 'List', - 'menu.consumer.create': 'Create Consumer', - 'menu.consumer.edit': 'Edit Consumer', - 'consumer.step.username': 'Username', 'consumer.step.username.rule': 'Maximum length is 100, only letters, numbers and _ are supported, and can only begin with letters', 'consumer.step.username.unique': 'Username should be unique', @@ -29,7 +24,7 @@ export default { 'consumer.list.cancel': 'Cancel', 'consumer.list.delete.success': 'Delete Success', 'consumer.list.delete': 'Delete', - 'consumer.list.list': 'Consumer List', + 'consumer.list': 'Consumer List', 'consumer.list.input': 'Please input', 'consumer.list.create': 'Create', -}; \ No newline at end of file +}; diff --git a/src/pages/Consumer/locales/zh-CN.ts b/src/pages/Consumer/locales/zh-CN.ts index a2ba70adb2..fedcf6ff74 100644 --- a/src/pages/Consumer/locales/zh-CN.ts +++ b/src/pages/Consumer/locales/zh-CN.ts @@ -1,9 +1,4 @@ export default { - 'menu.consumer': 'Consumer', - 'menu.consumer.list': '列表', - 'menu.consumer.create': '创建 Consumer', - 'menu.consumer.edit': '编辑 Consumer', - 'consumer.step.username': '用户名', 'consumer.step.username.rule': '最大长度100,仅支持字母、数字和 _ ,且只能以字母开头', 'consumer.step.username.unique': '用户名需唯一', @@ -29,7 +24,7 @@ export default { 'consumer.list.cancel': '取消', 'consumer.list.delete.success': '删除记录成功', 'consumer.list.delete': '删除', - 'consumer.list.list': 'Consumer 列表', + 'consumer.list': '用户列表', 'consumer.list.input': '请输入', 'consumer.list.create': '创建', -}; \ No newline at end of file +}; diff --git a/src/pages/Route/locales/en-US.ts b/src/pages/Route/locales/en-US.ts index e7fc86b589..6dc7d32988 100644 --- a/src/pages/Route/locales/en-US.ts +++ b/src/pages/Route/locales/en-US.ts @@ -1,9 +1,4 @@ export default { - 'menu.routes': 'Route', - 'menu.routes.list': 'Route List', - 'menu.routes.create': 'Create a Route', - 'menu.routes.edit': 'Edit the Route', - 'route.create.define.api.request': 'Define API requests', 'route.create.define.api.backend.server': 'Define API Backend Server', 'route.create.plugin.configuration': 'Plugin Configuration', @@ -34,7 +29,8 @@ export default { 'route.match.request.header.example': 'Request header name, for example: HOST', 'route.match.parameter.name.example': 'Parameter name, for example: id', 'route.match.input.parameter.name': 'Please input parameter name', - 'route.match.parameter.name.rule': 'Only letters, numbers, - and _ are supported, and can only begin with letters', + 'route.match.parameter.name.rule': + 'Only letters, numbers, - and _ are supported, and can only begin with letters', 'route.match.rule': 'Only letters and Numbers are supported, and can only begin with letters', 'route.match.choose.operational.character': 'Please choose operational character', 'route.match.value': 'Value', @@ -42,101 +38,107 @@ export default { 'route.match.advanced.match.rule': 'Advanced Routing Matching Conditions', 'route.match.create': 'Create', - 'route.meta.name.description':'Name And Description', - 'route.meta.api.name':'API Name', - 'route.meta.input.api.name':'Please input API name', - 'route.meta.api.name.rule':'Maximum length 100, only letters, Numbers, _, and - are supported, and can only begin with letters', - 'rotue.meta.api.rule':'Only letters, numbers, _ and - are supported, and can only begin with letters', - 'route.meta.description':'Description', - 'route.meta.description.rule':'Can not more than 200 characters', + 'route.meta.name.description': 'Name And Description', + 'route.meta.api.name': 'API Name', + 'route.meta.input.api.name': 'Please input API name', + 'route.meta.api.name.rule': + 'Maximum length 100, only letters, Numbers, _, and - are supported, and can only begin with letters', + 'rotue.meta.api.rule': + 'Only letters, numbers, _ and - are supported, and can only begin with letters', + 'route.meta.description': 'Description', + 'route.meta.description.rule': 'Can not more than 200 characters', - 'route.request.config.domain.name':'Domain Name', - 'route.request.config.domain.or.ip':'Domain Name or IP, support for generic Domain Name, for example: *.test.com', - 'route.request.config.input.domain.name':'Please input Domain Name', - 'route.request.config.domain.name.rule':'Only letters, numbers and * are supported. * can only be at the beginning, and only single * is supported', - 'route.request.config.create':'Create', - 'route.request.config.path':'Path', - 'route.request.config.path.description1':'1. Request path, for example: /foo/index.html, supports request path prefix /foo/* ;', - 'route.request.config.path.description2':'2. /* represents all paths', - 'route.request.config.input.path':'Please input request path', - 'route.request.config.path.rule':'Begin with / , and * can only at the end', - 'route.request.config.basic.define':'Request Basic Define', - 'route.request.config.protocol':'Protocol', - 'route.request.config.choose.protocol':'Please choose protocols', - 'route.request.config.http.method':'HTTP Method', - 'route.request.config.choose.http.method':'Please choose HTTP methods', - 'route.request.config.redirect':'Redirect', - 'route.request.config.enable.https':'Enable HTTPS', - 'route.request.config.custom':'Custom', - 'route.request.config.forbidden':'Forbidden', - 'route.request.config.redirect.custom':'Custom Redirect', - 'route.request.config.redirect.custom.example':'For examle: /foo/index.html', - 'route.request.config.redirect.301':'301(Permanent Redirect)', - 'route.request.config.redirect.302':'302(Temporary Redirect)', + 'route.request.config.domain.name': 'Domain Name', + 'route.request.config.domain.or.ip': + 'Domain Name or IP, support for generic Domain Name, for example: *.test.com', + 'route.request.config.input.domain.name': 'Please input Domain Name', + 'route.request.config.domain.name.rule': + 'Only letters, numbers and * are supported. * can only be at the beginning, and only single * is supported', + 'route.request.config.create': 'Create', + 'route.request.config.path': 'Path', + 'route.request.config.path.description1': + '1. Request path, for example: /foo/index.html, supports request path prefix /foo/* ;', + 'route.request.config.path.description2': '2. /* represents all paths', + 'route.request.config.input.path': 'Please input request path', + 'route.request.config.path.rule': 'Begin with / , and * can only at the end', + 'route.request.config.basic.define': 'Request Basic Define', + 'route.request.config.protocol': 'Protocol', + 'route.request.config.choose.protocol': 'Please choose protocols', + 'route.request.config.http.method': 'HTTP Method', + 'route.request.config.choose.http.method': 'Please choose HTTP methods', + 'route.request.config.redirect': 'Redirect', + 'route.request.config.enable.https': 'Enable HTTPS', + 'route.request.config.custom': 'Custom', + 'route.request.config.forbidden': 'Forbidden', + 'route.request.config.redirect.custom': 'Custom Redirect', + 'route.request.config.redirect.custom.example': 'For examle: /foo/index.html', + 'route.request.config.redirect.301': '301(Permanent Redirect)', + 'route.request.config.redirect.302': '302(Temporary Redirect)', - 'route.http.request.header.name':'HTTP Request Header Name', - 'route.http.action':'Action', - 'route.http.override.or.create':'Override/Create', - 'route.http.delete':'Delete', - 'route.http.value':'Value', - 'route.http.operation':'Operation', - 'route.http.edit':'Edit', - 'route.http.edit.request.header':'Edit HTTP request header', - 'route.http.operate.request.header':'Operate request header', - 'route.http.confirm':'Confirm', - 'route.http.cancel':'Cancel', - 'route.http.input.request.header.name':'Please input HTTP request header name', - 'route.http.select.actions':'Please select actions', - 'route.http.input.value':'Please input value', - 'route.http.override.request.header':'Override HTTP request header', + 'route.http.request.header.name': 'HTTP Request Header Name', + 'route.http.action': 'Action', + 'route.http.override.or.create': 'Override/Create', + 'route.http.delete': 'Delete', + 'route.http.value': 'Value', + 'route.http.operation': 'Operation', + 'route.http.edit': 'Edit', + 'route.http.edit.request.header': 'Edit HTTP request header', + 'route.http.operate.request.header': 'Operate request header', + 'route.http.confirm': 'Confirm', + 'route.http.cancel': 'Cancel', + 'route.http.input.request.header.name': 'Please input HTTP request header name', + 'route.http.select.actions': 'Please select actions', + 'route.http.input.value': 'Please input value', + 'route.http.override.request.header': 'Override HTTP request header', - 'route.request.override.input':'Input', - 'route.request.override.domain.name.or.ip':'Domain Name/IP', - 'route.request.override.use.domain.name.default.analysis':'When using Domain Name, it will analysis the local: /etc/resolv.conf by default', - 'route.request.override.input.domain.or.ip':'Please input Domain Name/IP', - 'route.request.override.domain.or.ip.rules':'Only letters, numbers and . are supported', - 'route.request.override.input.port.number':'Please input port number', - 'route.request.override.port.number':'Port Number', - 'route.request.override.input.weight':'Please input weight', - 'route.request.override.weight':'Weight', - 'route.request.override.create':'Create', - 'route.request.override':'Requests Override', - 'route.request.override.protocol':'Protocol', - 'route.request.override.select.protocol':'Please select protocol', - 'route.request.override.stay.same':'Stay The Same', - 'route.request.override.path':'Request Path', - 'route.request.override.edit':'Edit', - 'route.request.override.new.path':'New Path', - 'route.request.override.input.path':'Please input request path', - 'route.request.override.path.example':'For example: /foo/bar/index.html', - 'route.request.override.upstream':'Upstream', - 'route.request.override.connection.timeout':'Connection Timeout', - 'route.request.override.input.connection.timeout':'Please inout connection timeout', - 'route.request.override.send.timeout':'Send Timeout', - 'route.request.override.inout.send.timeout':'Please input send timeout', - 'route.request.override.receive.timeout':'Receive Timeout', - 'route.request.override.inout.receive.timeout':'Please input receive timeout', + 'route.request.override.input': 'Input', + 'route.request.override.domain.name.or.ip': 'Domain Name/IP', + 'route.request.override.use.domain.name.default.analysis': + 'When using Domain Name, it will analysis the local: /etc/resolv.conf by default', + 'route.request.override.input.domain.or.ip': 'Please input Domain Name/IP', + 'route.request.override.domain.or.ip.rules': 'Only letters, numbers and . are supported', + 'route.request.override.input.port.number': 'Please input port number', + 'route.request.override.port.number': 'Port Number', + 'route.request.override.input.weight': 'Please input weight', + 'route.request.override.weight': 'Weight', + 'route.request.override.create': 'Create', + 'route.request.override': 'Requests Override', + 'route.request.override.protocol': 'Protocol', + 'route.request.override.select.protocol': 'Please select protocol', + 'route.request.override.stay.same': 'Stay The Same', + 'route.request.override.path': 'Request Path', + 'route.request.override.edit': 'Edit', + 'route.request.override.new.path': 'New Path', + 'route.request.override.input.path': 'Please input request path', + 'route.request.override.path.example': 'For example: /foo/bar/index.html', + 'route.request.override.upstream': 'Upstream', + 'route.request.override.connection.timeout': 'Connection Timeout', + 'route.request.override.input.connection.timeout': 'Please inout connection timeout', + 'route.request.override.send.timeout': 'Send Timeout', + 'route.request.override.inout.send.timeout': 'Please input send timeout', + 'route.request.override.receive.timeout': 'Receive Timeout', + 'route.request.override.inout.receive.timeout': 'Please input receive timeout', - 'route.constants.define.api.request':'Define API Request', - 'route.constants.preview':'Preview', - 'route.constants.define.api.backend.serve':'Define API Backend Server', - 'route.constants.plugin.configuration':'Plugin Configuration', + 'route.constants.define.api.request': 'Define API Request', + 'route.constants.preview': 'Preview', + 'route.constants.define.api.backend.serve': 'Define API Backend Server', + 'route.constants.plugin.configuration': 'Plugin Configuration', - 'route.create.management':'Route Management', + 'route.create.management': 'Route Management', - 'route.list.name':'Name', - 'route.list.domain.name':'Domain Name', - 'route.list.path':'Path', - 'route.list.description':'Description', - 'route.list.edit.time':'Edit Time', - 'route.list.operation':'Operation', - 'route.list.edit':'Edit', - 'route.list.delete.confrim':'Are you sure to delete this route?', - 'route.list.delete.success':'Delete Success!', - 'route.list.confirm':'Confirm', - 'route.list.cancel':'Cancel', - 'route.list.delete':'Delete', - 'route.list':'Route List', - 'route.list.input':'Please input', - 'route.list.create':'Create', + 'route.list.name': 'Name', + 'route.list.domain.name': 'Domain Name', + 'route.list.path': 'Path', + 'route.list.description': 'Description', + 'route.list.edit.time': 'Edit Time', + 'route.list.operation': 'Operation', + 'route.list.edit': 'Edit', + 'route.list.delete.confrim': 'Are you sure to delete this route?', + 'route.list.delete.success': 'Delete Success!', + 'route.list.confirm': 'Confirm', + 'route.list.cancel': 'Cancel', + 'route.list.delete': 'Delete', + 'route.list': 'Route List', + 'route.list.input': 'Please input', + 'route.list.create': 'Create', }; diff --git a/src/pages/Route/locales/zh-CN.ts b/src/pages/Route/locales/zh-CN.ts index e8789dceff..4397adaac8 100644 --- a/src/pages/Route/locales/zh-CN.ts +++ b/src/pages/Route/locales/zh-CN.ts @@ -1,9 +1,4 @@ export default { - 'menu.routes': '路由', - 'menu.routes.list': '列表', - 'menu.routes.create': '创建', - 'menu.routes.edit': '编辑', - 'route.create.define.api.request': '定义 API 请求', 'route.create.define.api.backend.server': '定义 API 后端服务', 'route.create.plugin.configuration': '插件配置', @@ -42,101 +37,103 @@ export default { 'route.match.advanced.match.rule': '高级路由匹配条件', 'route.match.create': '创建', - 'route.meta.name.description':'名称及其描述', - 'route.meta.api.name':'API 名称', - 'route.meta.input.api.name':'请输入 API 名称', - 'route.meta.api.name.rule':'最大长度100,仅支持字母、数字、- 和 _,且只能以字母开头', - 'rotue.meta.api.rule':'仅支持字母、数字、- 和 _,且只能以字母开头', - 'route.meta.description':'描述', - 'route.meta.description.rule':'不超过 200 个字符', + 'route.meta.name.description': '名称及其描述', + 'route.meta.api.name': 'API 名称', + 'route.meta.input.api.name': '请输入 API 名称', + 'route.meta.api.name.rule': '最大长度100,仅支持字母、数字、- 和 _,且只能以字母开头', + 'rotue.meta.api.rule': '仅支持字母、数字、- 和 _,且只能以字母开头', + 'route.meta.description': '描述', + 'route.meta.description.rule': '不超过 200 个字符', - 'route.request.config.domain.name':'域名', - 'route.request.config.domain.or.ip':'域名或IP,支持泛域名,如:*.test.com', - 'route.request.config.input.domain.name':'请输入域名', - 'route.request.config.domain.name.rule':'仅支持字母、数字和 * ,且 * 只能是在开头,支持单个 * ', - 'route.request.config.create':'创建', - 'route.request.config.path':'路径', - 'route.request.config.path.description1':'1. 请求路径,如 /foo/index.html,支持请求路径前缀 /foo/* ;', - 'route.request.config.path.description2':'2. /* 代表所有路径', - 'route.request.config.input.path':'请输入请求路径', - 'route.request.config.path.rule':'以 / 开头,且 * 只能在最后', - 'route.request.config.basic.define':'请求基础定义', - 'route.request.config.protocol':'协议', - 'route.request.config.choose.protocol':'请选择协议', - 'route.request.config.http.method':'HTTP 方法', - 'route.request.config.choose.http.method':'请选择 HTTP 方法', - 'route.request.config.redirect':'重定向', - 'route.request.config.enable.https':'启用 HTTPS', - 'route.request.config.custom':'自定义', - 'route.request.config.forbidden':'禁用', - 'route.request.config.redirect.custom':'自定义重定向', - 'route.request.config.redirect.custom.example':'例如:/foo/index.html', - 'route.request.config.redirect.301':'301(永久重定向)', - 'route.request.config.redirect.302':'302(临时重定向)', + 'route.request.config.domain.name': '域名', + 'route.request.config.domain.or.ip': '域名或IP,支持泛域名,如:*.test.com', + 'route.request.config.input.domain.name': '请输入域名', + 'route.request.config.domain.name.rule': '仅支持字母、数字和 * ,且 * 只能是在开头,支持单个 * ', + 'route.request.config.create': '创建', + 'route.request.config.path': '路径', + 'route.request.config.path.description1': + '1. 请求路径,如 /foo/index.html,支持请求路径前缀 /foo/* ;', + 'route.request.config.path.description2': '2. /* 代表所有路径', + 'route.request.config.input.path': '请输入请求路径', + 'route.request.config.path.rule': '以 / 开头,且 * 只能在最后', + 'route.request.config.basic.define': '请求基础定义', + 'route.request.config.protocol': '协议', + 'route.request.config.choose.protocol': '请选择协议', + 'route.request.config.http.method': 'HTTP 方法', + 'route.request.config.choose.http.method': '请选择 HTTP 方法', + 'route.request.config.redirect': '重定向', + 'route.request.config.enable.https': '启用 HTTPS', + 'route.request.config.custom': '自定义', + 'route.request.config.forbidden': '禁用', + 'route.request.config.redirect.custom': '自定义重定向', + 'route.request.config.redirect.custom.example': '例如:/foo/index.html', + 'route.request.config.redirect.301': '301(永久重定向)', + 'route.request.config.redirect.302': '302(临时重定向)', - 'route.http.request.header.name':'HTTP 请求头名称', - 'route.http.action':'行为', - 'route.http.override.or.create':'重写/创建', - 'route.http.delete':'删除', - 'route.http.value':'值', - 'route.http.operation':'操作', - 'route.http.edit':'编辑', - 'route.http.edit.request.header':'编辑请求头', - 'route.http.operate.request.header':'操作请求头', - 'route.http.confirm':'确定', - 'route.http.cancel':'取消', - 'route.http.input.request.header.name':'请输入 HTTP 请求头名称', - 'route.http.select.actions':'请选择行为', - 'route.http.input.value':'请输入值', - 'route.http.override.request.header':'HTTP 请求头改写', + 'route.http.request.header.name': 'HTTP 请求头名称', + 'route.http.action': '行为', + 'route.http.override.or.create': '重写/创建', + 'route.http.delete': '删除', + 'route.http.value': '值', + 'route.http.operation': '操作', + 'route.http.edit': '编辑', + 'route.http.edit.request.header': '编辑请求头', + 'route.http.operate.request.header': '操作请求头', + 'route.http.confirm': '确定', + 'route.http.cancel': '取消', + 'route.http.input.request.header.name': '请输入 HTTP 请求头名称', + 'route.http.select.actions': '请选择行为', + 'route.http.input.value': '请输入值', + 'route.http.override.request.header': 'HTTP 请求头改写', - 'route.request.override.input':'手动填写', - 'route.request.override.domain.name.or.ip':'域名/IP', - 'route.request.override.use.domain.name.default.analysis':'使用域名时,默认解析本地:/etc/resolv.conf', - 'route.request.override.input.domain.or.ip':'请输入域名/IP', - 'route.request.override.domain.or.ip.rules':'仅支持字母、数字和 . ', - 'route.request.override.input.port.number':'请输入端口号', - 'route.request.override.port.number':'端口号', - 'route.request.override.input.weight':'请输入权重', - 'route.request.override.weight':'权重', - 'route.request.override.create':'创建', - 'route.request.override':'请求改写', - 'route.request.override.protocol':'协议', - 'route.request.override.select.protocol':'请选择协议', - 'route.request.override.stay.same':'保持原样', - 'route.request.override.path':'请求路径', - 'route.request.override.edit':'编辑', - 'route.request.override.new.path':'新路径', - 'route.request.override.input.path':'请输入请求路径', - 'route.request.override.path.example':'例如:/foo/bar/index.html', - 'route.request.override.upstream':'上游', - 'route.request.override.connection.timeout':'连接超时', - 'route.request.override.input.connection.timeout':'请输入连接超时时间', - 'route.request.override.send.timeout':'发送超时', - 'route.request.override.inout.send.timeout':'请输入发送超时时间', - 'route.request.override.receive.timeout':'接收超时', - 'route.request.override.inout.receive.timeout':'请输入接收超时时间', + 'route.request.override.input': '手动填写', + 'route.request.override.domain.name.or.ip': '域名/IP', + 'route.request.override.use.domain.name.default.analysis': + '使用域名时,默认解析本地:/etc/resolv.conf', + 'route.request.override.input.domain.or.ip': '请输入域名/IP', + 'route.request.override.domain.or.ip.rules': '仅支持字母、数字和 . ', + 'route.request.override.input.port.number': '请输入端口号', + 'route.request.override.port.number': '端口号', + 'route.request.override.input.weight': '请输入权重', + 'route.request.override.weight': '权重', + 'route.request.override.create': '创建', + 'route.request.override': '请求改写', + 'route.request.override.protocol': '协议', + 'route.request.override.select.protocol': '请选择协议', + 'route.request.override.stay.same': '保持原样', + 'route.request.override.path': '请求路径', + 'route.request.override.edit': '编辑', + 'route.request.override.new.path': '新路径', + 'route.request.override.input.path': '请输入请求路径', + 'route.request.override.path.example': '例如:/foo/bar/index.html', + 'route.request.override.upstream': '上游', + 'route.request.override.connection.timeout': '连接超时', + 'route.request.override.input.connection.timeout': '请输入连接超时时间', + 'route.request.override.send.timeout': '发送超时', + 'route.request.override.inout.send.timeout': '请输入发送超时时间', + 'route.request.override.receive.timeout': '接收超时', + 'route.request.override.inout.receive.timeout': '请输入接收超时时间', - 'route.constants.define.api.request':'定义 API 请求', - 'route.constants.preview':'预览', - 'route.constants.define.api.backend.serve':'定义 API 后端服务', - 'route.constants.plugin.configuration':'插件配置', + 'route.constants.define.api.request': '定义 API 请求', + 'route.constants.preview': '预览', + 'route.constants.define.api.backend.serve': '定义 API 后端服务', + 'route.constants.plugin.configuration': '插件配置', - 'route.create.management':'路由管理', + 'route.create.management': '路由管理', - 'route.list.name':'名称', - 'route.list.domain.name':'域名', - 'route.list.path':'路径', - 'route.list.description':'描述', - 'route.list.edit.time':'编辑时间', - 'route.list.operation':'操作', - 'route.list.edit':'编辑', - 'route.list.delete.confrim':'确定删除该路由吗?', - 'route.list.delete.success':'删除成功!', - 'route.list.confirm':'确认', - 'route.list.cancel':'取消', - 'route.list.delete':'删除', - 'route.list':'路由列表', - 'route.list.input':'请输入', - 'route.list.create':'创建', + 'route.list.name': '名称', + 'route.list.domain.name': '域名', + 'route.list.path': '路径', + 'route.list.description': '描述', + 'route.list.edit.time': '编辑时间', + 'route.list.operation': '操作', + 'route.list.edit': '编辑', + 'route.list.delete.confrim': '确定删除该路由吗?', + 'route.list.delete.success': '删除成功!', + 'route.list.confirm': '确认', + 'route.list.cancel': '取消', + 'route.list.delete': '删除', + 'route.list': '路由列表', + 'route.list.input': '请输入', + 'route.list.create': '创建', }; diff --git a/src/pages/Upstream/locales/en-US.ts b/src/pages/Upstream/locales/en-US.ts index ed534496a0..410040c684 100644 --- a/src/pages/Upstream/locales/en-US.ts +++ b/src/pages/Upstream/locales/en-US.ts @@ -1,50 +1,46 @@ export default { - 'menu.upstream': 'Upstream', - 'menu.upstream.list': 'List', - 'menu.upstream.create': 'Create a Upstream', - 'menu.upstream.edit': 'Edit the Upstream', + 'upstream.step.backend.server.domain.or.ip': 'Backend Server Domain Name/IP', + 'upstream.step.domain.name.default.analysis': + 'When using domain name, it will analysis local: /etc/resolv.conf by default, if weight is 0, then fusing this node', + 'upstream.step.input.domain.name.or.ip': 'Please input domain name/IP', + 'upstream.step.domain.name.or.ip.rule': 'Only letters, numbers and . are supported', + 'upstream.step.domain.name.or.ip': 'Domain Name/IP', + 'upstream.step.input.port': 'Please input port number', + 'upstream.step.port': 'Port Number', + 'upstream.step.input.weight': 'Please input weight', + 'upstream.step.weight': 'Weight', + 'upstream.step.create': 'Create', + 'upstream.step.name': 'Name', + 'upstream.step.name.should.unique': 'Name should be unique', + 'upstream.step.input.upstream.name': 'Please input upstream name', + 'upstream.step.description': 'Description', + 'upstream.step.input.description': 'Please input description', + 'upstream.step.type': 'Type', + 'upstream.step.connect.timeout': 'Connect Timeout', + 'upstream.step.input.connect.timeout': 'Please input connect timeout', + 'upstream.step.send.timeout': 'Send Timeout', + 'upstream.step.input.send.timeout': 'Please input send timeout', + 'upstream.step.receive.timeout': 'Receive Timeout', + 'upstream.step.input.receive.timeout': 'Please input receive timeout', - 'upstream.step.backend.server.domain.or.ip':'Backend Server Domain Name/IP', - 'upstream.step.domain.name.default.analysis':'When using domain name, it will analysis local: /etc/resolv.conf by default, if weight is 0, then fusing this node', - 'upstream.step.input.domain.name.or.ip':'Please input domain name/IP', - 'upstream.step.domain.name.or.ip.rule':'Only letters, numbers and . are supported', - 'upstream.step.domain.name.or.ip':'Domain Name/IP', - 'upstream.step.input.port':'Please input port number', - 'upstream.step.port':'Port Number', - 'upstream.step.input.weight':'Please input weight', - 'upstream.step.weight':'Weight', - 'upstream.step.create':'Create', - 'upstream.step.name':'Name', - 'upstream.step.name.should.unique':'Name should be unique', - 'upstream.step.input.upstream.name':'Please input upstream name', - 'upstream.step.description':'Description', - 'upstream.step.input.description':'Please input description', - 'upstream.step.type':'Type', - 'upstream.step.connect.timeout':'Connect Timeout', - 'upstream.step.input.connect.timeout':'Please input connect timeout', - 'upstream.step.send.timeout':'Send Timeout', - 'upstream.step.input.send.timeout':'Please input send timeout', - 'upstream.step.receive.timeout':'Receive Timeout', - 'upstream.step.input.receive.timeout':'Please input receive timeout', + 'upstream.create.edit': 'Edit', + 'upstream.create.create': 'Create', + 'upstream.create.upstream.successfully': 'upstream successfully', + 'upstream.create.basic.info': 'Basic Information', + 'upstream.create.preview': 'Preview', - 'upstream.create.edit':'Edit', - 'upstream.create.create':'Create', - 'upstream.create.upstream.successfully':'upstream successfully', - 'upstream.create.basic.info':'Basic Information', - 'upstream.create.preview':'Preview', - - 'upstream.list.name':'Name', - 'upstream.list.type':'Type', - 'upstream.list.description':'Description', - 'upstream.list.edit.time':'Edit Time', - 'upstream.list.operation':'Operation', - 'upstream.list.edit':'Edit', - 'upstream.list.confirm.delete':'Are you sure to delete ?', - 'upstream.list.confirm':'Confirm', - 'upstream.list.cancel':'Cancel', - 'upstream.list.delete.successfully':'Delete successfully', - 'upstream.list.delete':'Delete', - 'upstream.list':'Upstream List', - 'upstream.list.input':'Please input', - 'upstream.list.create':'Create', + 'upstream.list.name': 'Name', + 'upstream.list.type': 'Type', + 'upstream.list.description': 'Description', + 'upstream.list.edit.time': 'Edit Time', + 'upstream.list.operation': 'Operation', + 'upstream.list.edit': 'Edit', + 'upstream.list.confirm.delete': 'Are you sure to delete ?', + 'upstream.list.confirm': 'Confirm', + 'upstream.list.cancel': 'Cancel', + 'upstream.list.delete.successfully': 'Delete successfully', + 'upstream.list.delete': 'Delete', + 'upstream.list': 'Upstream List', + 'upstream.list.input': 'Please input', + 'upstream.list.create': 'Create', }; diff --git a/src/pages/Upstream/locales/zh-CN.ts b/src/pages/Upstream/locales/zh-CN.ts index 694799e0d2..7f1867a507 100644 --- a/src/pages/Upstream/locales/zh-CN.ts +++ b/src/pages/Upstream/locales/zh-CN.ts @@ -1,50 +1,46 @@ export default { - 'menu.upstream': '上游', - 'menu.upstream.list': '列表', - 'menu.upstream.create': '创建上游', - 'menu.upstream.edit': '编辑上游', + 'upstream.step.backend.server.domain.or.ip': '后端服务域名/IP', + 'upstream.step.domain.name.default.analysis': + '使用域名时,默认解析本地 /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.connect.timeout': '连接超时', + 'upstream.step.input.connect.timeout': '请输入连接超时时间', + 'upstream.step.send.timeout': '发送超时', + 'upstream.step.input.send.timeout': '请输入发送超时时间', + 'upstream.step.receive.timeout': '接收超时', + 'upstream.step.input.receive.timeout': '请输入接收超时时间', - 'upstream.step.backend.server.domain.or.ip':'后端服务域名/IP', - 'upstream.step.domain.name.default.analysis':'使用域名时,默认解析本地 /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.connect.timeout':'连接超时', - 'upstream.step.input.connect.timeout':'请输入连接超时时间', - 'upstream.step.send.timeout':'发送超时', - 'upstream.step.input.send.timeout':'请输入发送超时时间', - 'upstream.step.receive.timeout':'接收超时', - 'upstream.step.input.receive.timeout':'请输入接收超时时间', + 'upstream.create.edit': '编辑', + 'upstream.create.create': '创建', + 'upstream.create.upstream.successfully': '上游成功', + 'upstream.create.basic.info': '基础信息', + 'upstream.create.preview': '预览', - 'upstream.create.edit':'编辑', - 'upstream.create.create':'创建', - 'upstream.create.upstream.successfully':'上游成功', - 'upstream.create.basic.info':'基础信息', - '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':'创建', + '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': '创建', };