Browse Source

[Fix][Warning instance manage] Expand the support of `i18n`. (#7186)

2.0.7-release
songjianet 3 years ago committed by GitHub
parent
commit
52f610ada1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue
  2. 2
      dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js
  3. 2
      dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

9
dolphinscheduler-ui/src/js/conf/home/pages/security/pages/warningInstance/_source/createWarningInstance.vue

@ -122,15 +122,12 @@
this.store.dispatch('security/getUiPluginById', { this.store.dispatch('security/getUiPluginById', {
pluginId: this.pluginDefineId pluginId: this.pluginDefineId
}).then(res => { }).then(res => {
this.rule = JSON.parse(res.pluginParams) this.rule = JSON.parse(res.pluginParams).map(item => {
this.rule.forEach(item => {
if (item.title.indexOf('$t') !== -1) { if (item.title.indexOf('$t') !== -1) {
item.title = this.$t(item.field) item.title = this.$t(item.field)
} }
// fix null pointer exception item.props = item.props || {}
if (!item.props) { return item
item.props = {}
}
}) })
}).catch(e => { }).catch(e => {
this.$message.error(e.msg || '') this.$message.error(e.msg || '')

2
dolphinscheduler-ui/src/js/module/i18n/locale/en_US.js

@ -722,6 +722,7 @@ export default {
'Recover serial wait': 'Recover serial wait', 'Recover serial wait': 'Recover serial wait',
IsEnableProxy: 'Enable Proxy', IsEnableProxy: 'Enable Proxy',
WebHook: 'WebHook', WebHook: 'WebHook',
webHook: 'WebHook',
Keyword: 'Keyword', Keyword: 'Keyword',
Proxy: 'Proxy', Proxy: 'Proxy',
receivers: 'Receivers', receivers: 'Receivers',
@ -747,6 +748,7 @@ export default {
agentId: 'AgentId', agentId: 'AgentId',
users: 'Users', users: 'Users',
Username: 'Username', Username: 'Username',
username: 'Username',
showType: 'Show Type', showType: 'Show Type',
'Please select a task type (required)': 'Please select a task type (required)', 'Please select a task type (required)': 'Please select a task type (required)',
layoutType: 'Layout Type', layoutType: 'Layout Type',

2
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js

@ -721,6 +721,7 @@ export default {
'Recover serial wait': '串行恢复', 'Recover serial wait': '串行恢复',
IsEnableProxy: '启用代理', IsEnableProxy: '启用代理',
WebHook: 'Web钩子', WebHook: 'Web钩子',
webHook: 'Web钩子',
Keyword: '密钥', Keyword: '密钥',
Proxy: '代理', Proxy: '代理',
receivers: '收件人', receivers: '收件人',
@ -747,6 +748,7 @@ export default {
agentId: '应用ID', agentId: '应用ID',
users: '群员', users: '群员',
Username: '用户名', Username: '用户名',
username: '用户名',
showType: '内容展示类型', showType: '内容展示类型',
'Please select a task type (required)': '请选择任务类型(必选)', 'Please select a task type (required)': '请选择任务类型(必选)',
layoutType: '布局类型', layoutType: '布局类型',

Loading…
Cancel
Save