Skip to content

Commit

Permalink
i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
yang1666204 committed Feb 28, 2024
1 parent 6340ff4 commit e83dcd7
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 18 deletions.
6 changes: 5 additions & 1 deletion distribution/dashboard/ui/src/i18n/strings/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -551,5 +551,9 @@
"Dashboard.Detail.NewBackup.SchduleSelectFormItem.SchedulingCycle": "Scheduling cycle",
"Dashboard.Detail.NewBackup.SchduleSelectFormItem.SelectASchedulingCycle": "Select a scheduling cycle",
"Dashboard.Detail.NewBackup.ScheduleTimeFormItem.SchedulingTime": "Scheduling time",
"Dashboard.Detail.NewBackup.ScheduleTimeFormItem.SelectASchedulingTime": "Select a scheduling time"
"Dashboard.Detail.NewBackup.ScheduleTimeFormItem.SelectASchedulingTime": "Select a scheduling time",
"Dashboard.Cluster.New.Monitor.Image": "Image",
"Dashboard.Cluster.New.Monitor.ImageList": "(Image list)",
"Dashboard.Cluster.New.Observer.Image": "Image",
"Dashboard.Cluster.New.Observer.ImageList": "(Image list)"
}
6 changes: 5 additions & 1 deletion distribution/dashboard/ui/src/i18n/strings/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -551,5 +551,9 @@
"Dashboard.Detail.NewBackup.SchduleSelectFormItem.SchedulingCycle": "调度周期",
"Dashboard.Detail.NewBackup.SchduleSelectFormItem.SelectASchedulingCycle": "请选择调度周期",
"Dashboard.Detail.NewBackup.ScheduleTimeFormItem.SchedulingTime": "调度时间",
"Dashboard.Detail.NewBackup.ScheduleTimeFormItem.SelectASchedulingTime": "请选择调度时间"
"Dashboard.Detail.NewBackup.ScheduleTimeFormItem.SelectASchedulingTime": "请选择调度时间",
"Dashboard.Cluster.New.Monitor.Image": "镜像",
"Dashboard.Cluster.New.Monitor.ImageList": "(镜像列表)",
"Dashboard.Cluster.New.Observer.Image": "镜像",
"Dashboard.Cluster.New.Observer.ImageList": "(镜像列表)"
}
20 changes: 11 additions & 9 deletions distribution/dashboard/ui/src/pages/Cluster/New/Monitor.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { SUFFIX_UNIT } from '@/constants';
import { MIRROR_MONITOR } from '@/constants/doc';
import { intl } from '@/utils/intl';
import {
Card,
Expand All @@ -10,8 +12,6 @@ import {
Tooltip,
} from 'antd';
import { useEffect, useState } from 'react';
import { MIRROR_MONITOR } from '@/constants/doc';
import { SUFFIX_UNIT } from '@/constants';

const monitorTooltipText = intl.formatMessage({
id: 'OBDashboard.Cluster.New.Monitor.TheImageShouldBeFully',
Expand Down Expand Up @@ -68,13 +68,15 @@ export default function Monitor() {
style={{ width: '50%' }}
label={
<>
镜像{' '}
<a
href={MIRROR_MONITOR}
rel="noreferrer"
target="_blank"
>
(镜像列表)
{intl.formatMessage({
id: 'Dashboard.Cluster.New.Monitor.Image',
defaultMessage: '镜像',
})}{' '}
<a href={MIRROR_MONITOR} rel="noreferrer" target="_blank">
{intl.formatMessage({
id: 'Dashboard.Cluster.New.Monitor.ImageList',
defaultMessage: '(镜像列表)',
})}
</a>
</>
}
Expand Down
16 changes: 9 additions & 7 deletions distribution/dashboard/ui/src/pages/Cluster/New/Observer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ export default function Observer({ storageClasses, form }: any) {
style={{ width: '50%' }}
label={
<>
镜像{' '}
<a
href={MIRROR_SERVER}
rel="noreferrer"
target="_blank"
>
(镜像列表)
{intl.formatMessage({
id: 'Dashboard.Cluster.New.Observer.Image',
defaultMessage: '镜像',
})}{' '}
<a href={MIRROR_SERVER} rel="noreferrer" target="_blank">
{intl.formatMessage({
id: 'Dashboard.Cluster.New.Observer.ImageList',
defaultMessage: '(镜像列表)',
})}
</a>
</>
}
Expand Down

0 comments on commit e83dcd7

Please sign in to comment.