未验证 提交 52f610ad 编写于 作者: S songjianet 提交者: GitHub

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

上级 2bff58e5
......@@ -122,15 +122,12 @@
this.store.dispatch('security/getUiPluginById', {
pluginId: this.pluginDefineId
}).then(res => {
this.rule = JSON.parse(res.pluginParams)
this.rule.forEach(item => {
this.rule = JSON.parse(res.pluginParams).map(item => {
if (item.title.indexOf('$t') !== -1) {
item.title = this.$t(item.field)
}
// fix null pointer exception
if (!item.props) {
item.props = {}
}
item.props = item.props || {}
return item
})
}).catch(e => {
this.$message.error(e.msg || '')
......
......@@ -722,6 +722,7 @@ export default {
'Recover serial wait': 'Recover serial wait',
IsEnableProxy: 'Enable Proxy',
WebHook: 'WebHook',
webHook: 'WebHook',
Keyword: 'Keyword',
Proxy: 'Proxy',
receivers: 'Receivers',
......@@ -747,6 +748,7 @@ export default {
agentId: 'AgentId',
users: 'Users',
Username: 'Username',
username: 'Username',
showType: 'Show Type',
'Please select a task type (required)': 'Please select a task type (required)',
layoutType: 'Layout Type',
......
......@@ -721,6 +721,7 @@ export default {
'Recover serial wait': '串行恢复',
IsEnableProxy: '启用代理',
WebHook: 'Web钩子',
webHook: 'Web钩子',
Keyword: '密钥',
Proxy: '代理',
receivers: '收件人',
......@@ -747,6 +748,7 @@ export default {
agentId: '应用ID',
users: '群员',
Username: '用户名',
username: '用户名',
showType: '内容展示类型',
'Please select a task type (required)': '请选择任务类型(必选)',
layoutType: '布局类型',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册