Skip to content

Commit

Permalink
optimize: i18n
Browse files Browse the repository at this point in the history
Signed-off-by: 孙林耀 <[email protected]>
  • Loading branch information
MicroOps-cn committed Sep 23, 2024
1 parent 6ec51d5 commit 836ab69
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 7 deletions.
21 changes: 15 additions & 6 deletions public/src/locales/en-US/users.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
export default {
'pages.users.status.value.disabled': 'disabled',
'pages.users.status.value.user_inactive': 'not active',
'pages.users.status.value.password_expired': 'Password has expired',
'pages.users.form.apps.appList.delete': 'delete',
'pages.users.form.grant.appList.grant': 'authorization',
};
"pages.users.status.value.disabled": "disabled",
"pages.users.status.value.user_inactive": "not active",
"pages.users.status.value.password_expired": "Password has expired",
"pages.users.form.apps.appList.delete": "delete",
"pages.users.form.grant.appList.grant": "authorization",
"pages.users.button.disable": "Disable",
"pages.users.button.delete": "Delete",
"pages.users.chosen": "Chosen",
"pages.users.item": "Item(s)",
"pages.users.batchDeletion": "Batch deletion",
"pages.users.batchDisable": "Batch disable",
"pages.users.batchEnable": "Batch enable",
"pages.users.button.cancel": "Cancel",
"pages.users.button.more": "more",
}
1 change: 1 addition & 0 deletions public/src/locales/zh-CN/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default {
'pages.events.timeRange.lastMonth': '最近一月',
'pages.events.timeRange.thisWeek': '本周',
'pages.events.timeRange.thisMonth': '本月',
'pages.events.took.second': '{took} 秒',
'user.settings.sessions.session.title.lastSeen': '最近活动',
'user.settings.sessions.session.title.expiry': '过期时间',
'user.settings.sessions.session.title.loggedOn': '登陆时间',
Expand Down
3 changes: 3 additions & 0 deletions public/src/locales/zh-CN/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ export default {
'pages.roles.button.delete': '删除',
'pages.roles.form.title.roleUpdate': '修改角色',
'pages.roles.form.cancel?': '取消编辑?',
'pages.roles.chosen': '已选择',
'pages.roles.item': '项',
'pages.roles.button.batchDeletion': '批量删除',
};
9 changes: 9 additions & 0 deletions public/src/locales/zh-CN/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@ export default {
'pages.users.grant.appList.grant': '授权',
'pages.users.form.apps.appList.delete': '删除',
'pages.users.form.grant.appList.grant': '授权',
'pages.users.button.disable': '禁用',
'pages.users.button.delete': '删除',
'pages.users.chosen': '已选择',
'pages.users.item': '项',
'pages.users.batchDeletion': '批量删除',
'pages.users.batchDisable': '批量禁用',
'pages.users.batchEnable': '批量启用',
'pages.users.button.more': '更多',
'pages.users.button.cancel': '取消',
};
2 changes: 1 addition & 1 deletion public/src/pages/Roles/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const RoleList: React.FC = () => {
<div>
{intl.t('chosen', 'Chosen')}{' '}
<a style={{ fontWeight: 600 }}>{selectedRowsState.length}</a>{' '}
{intl.t('item', 'Items')}
{intl.t('item', 'Item(s)')}
</div>
}
>
Expand Down

0 comments on commit 836ab69

Please sign in to comment.