Skip to content

Commit c37ab37

Browse files
authored
refactor(apps, api, components): update several translations (#114)
1 parent bc635cd commit c37ab37

File tree

150 files changed

+901
-679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+901
-679
lines changed

apps/landing/translations/en.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ form:
55
password: Password
66
submit: Login
77
message:
8-
error: 'Login in failed: {{ msg }}'
9-
success: Login in successfully
8+
error: 'Failed to login: {{ msg }}'
9+
success: Login successfully

apps/main/[2]resource/components/HostTable/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ function useTableColumn() {
9999
{
100100
payload: { hostsId: hostId },
101101
options: {
102-
actionName: t('delete.name'),
102+
successMessage: t('delete.success'),
103+
errorMessage: t('delete.failed'),
103104
},
104105
},
105106
{
@@ -155,7 +156,7 @@ function getHostColumns(
155156
Online: { text: t('model:host.status.online'), status: 'Success' },
156157
Offline: { text: t('model:host.status.offline'), status: 'Default' },
157158
Failed: { text: t('model:host.status.failed'), status: 'Error' },
158-
Deleting: { text: t('model:host.status.failed'), status: 'Error' },
159+
Deleting: { text: t('model:host.status.deleting'), status: 'Error' },
159160
Deleted: { text: t('model:host.status.deleted'), status: 'Error' },
160161
},
161162
},
@@ -307,7 +308,7 @@ function getHostColumns(
307308
// <a key="monitor">{t('actions.monitor')}</a>,
308309
<DeleteConfirm
309310
key="delete"
310-
title={t('delete.name')}
311+
title={t('delete.title')}
311312
content={t('delete.confirm', { hostName: record.hostName })}
312313
confirmInput={{
313314
expect: 'delete',

apps/main/[2]resource/components/HostTable/translations/en.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ actions:
1313
monitor: Monitor
1414
delete: Delete
1515
delete:
16-
name: Delete Host
17-
confirm: Are you sure to delete the {{ hostName }} host?
16+
title: Delete Host
17+
confirm: Are you sure you want to delete the {{ hostName }} host?
18+
success: The host deletion task is created
19+
failed: Failed to create a host deletion task

apps/main/[2]resource/components/HostTable/translations/zh.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ actions:
1313
monitor: 监控
1414
delete: 删除
1515
delete:
16-
name: 删除主机
16+
title: 删除主机
1717
confirm: 确认删除 {{ hostName }} 主机吗?
18+
success: 删除主机任务创建成功
19+
failed: 删除主机任务创建失败
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Resources
1+
name: Resources Management
22
header:
3-
title: Resources List
4-
import: Import Hosts
3+
title: Resource List
4+
import: Import Hosts
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name: 资源管理
22
header:
33
title: 资源列表
4-
import: 导入主机
4+
import: 导入主机

apps/main/[3]cluster/[1]instances/[-1]new/components/CreatePanel/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export function CreatePanel({ back }: CreatePanelProps) {
3232
{
3333
payload: value,
3434
options: {
35-
actionName: t('name'),
35+
successMessage: t('message.success'),
36+
errorMessage: t('message.failed'),
3637
},
3738
},
3839
{
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
name: Create Cluster
1+
name: Create Cluster
2+
message:
3+
success: The cluster creation task is created
4+
failed: Failed to create a cluster creation task
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
name: 创建集群
1+
name: 创建集群
2+
message:
3+
success: 创建集群任务创建成功
4+
failed: 创建集群任务创建失败
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
name: New Cluster
1+
name: Create Cluster
22
header:
3-
title: New Cluster
3+
title: Create Cluster

0 commit comments

Comments
 (0)