[Feature][Workflow relationship] Improve English support. (#6936)

* [Feature][Workflow relationship] Improve English support.

* [Feature][Workflow relationship] Improve English support.
This commit is contained in:
songjianet 2021-11-20 22:58:30 +08:00 committed by GitHub
parent 1fdbc3270c
commit 024aacacb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 11 deletions

View File

@ -66,15 +66,14 @@ export default function (locations, links, sourceWorkFlowCode, isShowLabel) {
formatter: (params) => {
if (!params.data.name) return ''
const { name, scheduleStartTime, scheduleEndTime, crontab, workFlowPublishStatus, schedulePublishStatus } = params.data
const str = `
工作流名字${name}<br/>
调度开始时间${scheduleStartTime}<br/>
调度结束时间${scheduleEndTime}<br/>
crontab表达式${crontab}<br/>
工作流发布状态${workFlowPublishStatus}<br/>
调度发布状态${schedulePublishStatus}<br/>
`
return str
return `
${i18n.$t('workflowName')}${name}<br/>
${i18n.$t('scheduleStartTime')}${scheduleStartTime}<br/>
${i18n.$t('scheduleEndTime')}${scheduleEndTime}<br/>
${i18n.$t('crontabExpression')}${crontab}<br/>
${i18n.$t('workflowPublishStatus')}${workFlowPublishStatus}<br/>
${i18n.$t('schedulePublishStatus')}${schedulePublishStatus}<br/>
`
},
color: '#2D303A',
textStyle: {

View File

@ -756,5 +756,11 @@ export default {
cols: 'Cols',
processOnline: 'Online',
searchNode: 'Search Node',
dagScale: 'Scale'
dagScale: 'Scale',
workflowName: 'Workflow Name',
scheduleStartTime: 'Schedule Start Time',
scheduleEndTime: 'Schedule End Time',
crontabExpression: 'Crontab',
workflowPublishStatus: 'Workflow Publish Status',
schedulePublishStatus: 'Schedule Publish Status'
}

View File

@ -757,5 +757,11 @@ export default {
cols: '列数',
processOnline: '已上线',
searchNode: '搜索节点',
dagScale: '缩放'
dagScale: '缩放',
workflowName: '工作流名称',
scheduleStartTime: '定时开始时间',
scheduleEndTime: '定时结束时间',
crontabExpression: 'Crontab',
workflowPublishStatus: '工作流上线状态',
schedulePublishStatus: '定时状态'
}