Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/locales/en-US/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
10 changes: 5 additions & 5 deletions src/locales/zh-CN/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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': '设置',
};
2 changes: 1 addition & 1 deletion src/pages/Consumer/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const Page: React.FC = () => {
];

return (
<PageContainer title={formatMessage({ id: 'consumer.list.list' })}>
<PageContainer title={formatMessage({ id: 'consumer.list' })}>
<ProTable<ConsumerModule.ResEntity>
actionRef={ref}
columns={columns}
Expand Down
9 changes: 2 additions & 7 deletions src/pages/Consumer/locales/en-US.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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',
};
};
9 changes: 2 additions & 7 deletions src/pages/Consumer/locales/zh-CN.ts
Original file line number Diff line number Diff line change
@@ -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': '用户名需唯一',
Expand All @@ -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': '创建',
};
};
196 changes: 99 additions & 97 deletions src/pages/Route/locales/en-US.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -34,109 +29,116 @@ 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',
'route.match.input.parameter.value': 'Please input parameter value',
'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',
};
Loading