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 Aug 12, 2020
1 parent 16e8ccb commit 709d556
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/ActionBar/ActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,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
4 changes: 2 additions & 2 deletions src/components/PluginPage/PluginDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const PluginDrawer: React.FC<Props> = ({
{Boolean(active) && (
<div>
<Button onClick={onClose}>
{formatMessage({ id: 'component.global.button.cancel' })}
{formatMessage({ id: 'component.global.cancel' })}
</Button>
<Button
type="primary"
Expand All @@ -87,7 +87,7 @@ const PluginDrawer: React.FC<Props> = ({
form.submit();
}}
>
{formatMessage({ id: 'component.global.button.confirm' })}
{formatMessage({ id: 'component.global.confirm' })}
</Button>
</div>
)}
Expand Down
23 changes: 20 additions & 3 deletions src/locales/en-US/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,37 @@ 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',
Expand Down
19 changes: 16 additions & 3 deletions src/locales/zh-CN/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,33 @@ 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': '登录',
Expand Down

0 comments on commit 709d556

Please sign in to comment.