Skip to content

Commit

Permalink
fix(i18n): modify global i18n refer to Proposal (apache#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxiran committed Sep 27, 2020
1 parent 738abca commit bc2b770
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/ActionBar/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const ActionBar: React.FC<Props> = ({ step, lastStep, onChange, withResultView }
<Button type="primary" onClick={() => onChange(step + 1)}>
{step < lastStep
? formatMessage({ id: 'component.actionbar.button.nextStep' })
: formatMessage({ id: 'component.global.button.submit' })}
: formatMessage({ id: 'component.global.submit' })}
</Button>
</Col>
</Row>
Expand Down
32 changes: 29 additions & 3 deletions src/locales/en-US/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,46 @@ export default {
'component.tagSelect.expand': 'Expand',
'component.tagSelect.collapse': 'Collapse',
'component.tagSelect.all': 'All',
'component.global.remove': 'Remove',
'component.global.confirm': 'Confirm',
'component.global.delete': 'Delete',
'component.global.cancel': 'Cancel',
'component.global.button.submit': 'Submit',
'component.global.submit': 'Submit',
'component.global.create': 'Create',
'component.global.add': 'Add',
'component.global.save': 'Save',
'component.global.edit': 'Edit',
'component.global.action': 'Action',
'component.global.update': 'Update',
'component.global.get': 'Get',
'component.global.edit.plugin': 'Edit plugin',
'component.global.loading': 'Loading',
'component.global.list': 'List',
'component.global.description': 'Description',
'component.global.operation': 'Operation',
'component.status.success': 'Successfully',
'component.status.fail': 'Failed',
'component.global.popconfirm.title.delete': 'Are you sure to delete this record ?',
'component.global.notification.success.messaage.deleteSuccess': 'Deleted Successfully',

'component.global.steps.stepTitle.basicInformation': 'Basic Information',
'component.global.steps.stepTitle.preview': 'Preview',
'component.global.steps.stepTitle.pluginConfig': 'Plugin Config',

'component.global.pleaseEnter': 'Please Eneter',
'component.global.pleaseChoose': 'Please Choose',

'component.global.input.ruleMessage.name':
'Only letters, numbers, - and _ are supported, and can only begin with letters',

'component.global.connectionTimeout': 'Connection Timeout',
// User component
'component.user.loginByPassword': 'Username & Password',
'component.user.login': 'Login',
'component.user.username': 'Username',
'component.user.password': 'Password',
'component.user.rememberMe': 'Remember Me',
'component.user.inputUsername': 'Please input username!',
'component.user.inputPassword': 'Please input password!',
'component.user.wrongUsernameOrPassword': 'Wrong account or password!',
// SSL Module
'component.ssl.removeSSLItemModalContent': 'You are going to remove this item!',
'component.ssl.removeSSLItemModalTitle': 'SSL Remove Alert',
Expand Down
28 changes: 25 additions & 3 deletions src/locales/zh-CN/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,42 @@ export default {
'component.tagSelect.expand': '展开',
'component.tagSelect.collapse': '收起',
'component.tagSelect.all': '全部',
'component.global.remove': '删除',
'component.global.confirm': '确认',
'component.global.delete': '删除',
'component.global.cancel': '取消',
'component.global.button.submit': '提交',
'component.global.submit': '提交',
'component.global.create': '创建',
'component.global.add': '新建',
'component.global.save': '保存',
'component.global.edit': '编辑',
'component.global.action': '操作',
'component.global.update': '更新',
'component.global.get': '获取',
'component.global.edit.plugin': '编辑插件',
'component.global.loading': '加载中',
'component.global.list': '列表',
'component.global.description': '描述',
'component.global.operation': '操作',
'component.status.success': '成功',
'component.status.fail': '失败',
'component.global.pleaseEnter': '请输入',
'component.global.pleaseChoose': '请选择',
'component.global.connectionTimeout': '连接超时',

'component.global.popconfirm.title.delete': '确定删除该条记录吗?',
'component.global.steps.stepTitle.basicInformation': '基础信息',
'component.global.steps.stepTitle.preview': '预览',
'component.global.steps.stepTitle.pluginConfig': '插件配置',
'component.global.input.ruleMessage.name': '仅支持字母、数字、- 和 _,且只能以字母开头',

// User component
'component.user.loginByPassword': '账号密码登录',
'component.user.login': '登录',
'component.user.username': '账号',
'component.user.password': '密码',
'component.user.rememberMe': '自动登录',
'component.user.inputUsername': '请输入账号!',
'component.user.inputPassword': '请输入密码!',
'component.user.wrongUsernameOrPassword': '账号或密码错误!',
// SSL Module
'component.ssl.removeSSLItemModalContent': '确定要删除该项吗?',
'component.ssl.removeSSLItemModalTitle': '删除 SSL',
Expand Down

0 comments on commit bc2b770

Please sign in to comment.