feat: 添加翻译

This commit is contained in:
ibuler
2020-06-05 19:31:48 +08:00
parent b7eaa48398
commit 55be5c2520
3 changed files with 100 additions and 98 deletions

View File

@@ -457,6 +457,7 @@
"WebFTP": "文件管理", "WebFTP": "文件管理",
"WebTerminal": "Web终端", "WebTerminal": "Web终端",
"BatchCommandLog": "批量命令", "BatchCommandLog": "批量命令",
"TaskMonitor": "任务监控",
"": "" "": ""
}, },
"sessions": { "sessions": {

View File

@@ -314,7 +314,8 @@
"totalVersions": "Total versions", "totalVersions": "Total versions",
"version": "Version", "version": "Version",
"versionDetail": "Version detail", "versionDetail": "Version detail",
"versionRunExecution": "Version run execution" "versionRunExecution": "Version run execution",
"TaskMonitor": "Task monitor"
}, },
"perms": { "perms": {
"Actions": "Actions", "Actions": "Actions",

View File

@@ -10,6 +10,103 @@ export default {
name: 'Xpack', name: 'Xpack',
meta: { title: 'Xpack', icon: 'sitemap', licenseRequired: true }, meta: { title: 'Xpack', icon: 'sitemap', licenseRequired: true },
children: [ children: [
{
path: 'change-auth-plan',
component: empty,
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' },
children: [
{
path: 'plan',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanList.vue'),
name: 'ChangeAuthPlanList',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' }
},
{
path: 'plan/create',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'),
name: 'ChangeAuthPlanCreate',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanCreate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'create' },
hidden: true
},
{
path: 'plan/:id/update',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'),
name: 'ChangeAuthPlanUpdate',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanUpdate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'update' },
hidden: true
},
{
path: 'plan/:id',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/index.vue'),
name: 'ChangeAuthPlanDetail',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' },
hidden: true
},
{
path: 'plan-execution/:id',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionDetail/index.vue'),
name: 'ChangeAuthPlanExecutionDetail',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ExecutionDetail'), activeMenu: '/xpack/change-auth-plan/plan' },
hidden: true
}
]
},
{
path: 'cloud',
component: empty,
redirect: '',
meta: { title: i18n.t('xpack.Cloud.Cloud') },
children: [
{
path: '',
component: () => import('@/views/xpack/Cloud/index.vue'),
name: 'CloudCenter',
meta: { title: i18n.t('xpack.Cloud.CloudCenter') }
},
{
path: 'account',
component: () => import('@/views/xpack/Cloud/Account/AccountList'),
name: 'AccountList',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.AccountList') }
},
{
path: 'account/create',
component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'),
name: 'AccountCreate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.AccountCreate'), action: 'create' }
},
{
path: 'account/:id/update',
component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'),
name: 'AccountUpdate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.AccountUpdate'), action: 'update', activeMenu: '/xpack/cloud' }
},
{
path: 'sync-instance-tasks',
component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskList'),
name: 'SyncInstanceTaskList',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskList') }
},
{
path: 'sync-instance-tasks/create',
component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'),
name: 'SyncInstanceTaskCreate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskCreate') }
},
{
path: 'sync-instance-tasks/:id/update',
component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'),
name: 'SyncInstanceTaskUpdate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskUpdate') }
}
]
},
{ {
path: 'interface-setting', path: 'interface-setting',
component: () => import('@/views/xpack/InterfaceSettings.vue'), component: () => import('@/views/xpack/InterfaceSettings.vue'),
@@ -93,47 +190,6 @@ export default {
} }
] ]
}, },
{
path: 'change-auth-plan',
component: empty,
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' },
children: [
{
path: 'plan',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanList.vue'),
name: 'ChangeAuthPlanList',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' }
},
{
path: 'plan/create',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'),
name: 'ChangeAuthPlanCreate',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanCreate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'create' },
hidden: true
},
{
path: 'plan/:id/update',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanCreateUpdate.vue'),
name: 'ChangeAuthPlanUpdate',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlanUpdate'), activeMenu: '/xpack/change-auth-plan/plan', action: 'update' },
hidden: true
},
{
path: 'plan/:id',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/index.vue'),
name: 'ChangeAuthPlanDetail',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ChangeAuthPlan'), activeMenu: '/xpack/change-auth-plan/plan' },
hidden: true
},
{
path: 'plan-execution/:id',
component: () => import('@/views/xpack/ChangeAuthPlan/ChangeAuthPlanDetail/ChangeAuthPlanExecution/ChangeAuthPlanExecutionDetail/index.vue'),
name: 'ChangeAuthPlanExecutionDetail',
meta: { title: i18n.t('xpack.ChangeAuthPlan.ExecutionDetail'), activeMenu: '/xpack/change-auth-plan/plan' },
hidden: true
}
]
},
{ {
path: 'vault', path: 'vault',
component: empty, component: empty,
@@ -153,62 +209,6 @@ export default {
hidden: true hidden: true
} }
] ]
},
{
path: 'cloud',
component: empty,
redirect: '',
meta: { title: i18n.t('xpack.Cloud.Cloud') },
children: [
{
path: '',
component: () => import('@/views/xpack/Cloud/index.vue'),
name: 'CloudCenter',
meta: { title: i18n.t('xpack.Cloud.CloudCenter') }
},
{
path: 'account',
component: () => import('@/views/xpack/Cloud/Account/AccountList'),
name: 'AccountList',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.AccountList') }
},
{
path: 'account/create',
component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'),
name: 'AccountCreate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.AccountCreate'), action: 'create' }
},
{
path: 'account/:id/update',
component: () => import('@/views/xpack/Cloud/Account/AccountCreateUpdate'),
name: 'AccountUpdate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.AccountUpdate'), action: 'update', activeMenu: '/xpack/cloud' }
},
{
path: 'sync-instance-tasks',
component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskList'),
name: 'SyncInstanceTaskList',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskList') }
},
{
path: 'sync-instance-tasks/create',
component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'),
name: 'SyncInstanceTaskCreate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskCreate') }
},
{
path: 'sync-instance-tasks/:id/update',
component: () => import('@/views/xpack/Cloud/SyncInstanceTask/SyncInstanceTaskCreateUpdate'),
name: 'SyncInstanceTaskUpdate',
hidden: true,
meta: { title: i18n.t('xpack.Cloud.SyncInstanceTaskUpdate') }
}
]
} }
] ]
} }