i18n
This commit is contained in:
parent
2cf70f9484
commit
d183914eff
|
@ -33,8 +33,8 @@
|
|||
</span>
|
||||
<template v-slot:dropdown>
|
||||
<el-dropdown-menu>
|
||||
<el-dropdown-item command="personal">个人信息</el-dropdown-item>
|
||||
<el-dropdown-item command="logout">退出系统</el-dropdown-item>
|
||||
<el-dropdown-item command="personal">{{$t('commons.personal_information')}}</el-dropdown-item>
|
||||
<el-dropdown-item command="logout">{{$t('commons.exit_system')}}</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</template>
|
||||
</el-dropdown>
|
||||
|
@ -62,16 +62,16 @@
|
|||
data() {
|
||||
return {
|
||||
organizationList: [
|
||||
{index: '7-1', name: '无组织'},
|
||||
{index: '7-1', name: this.$t('organization.none')},
|
||||
],
|
||||
workspaceList: [
|
||||
{index: '2-1', name: '无工作空间'},
|
||||
{index: '2-1', name: this.$t('workspace.none')},
|
||||
],
|
||||
currentUserInfo: {},
|
||||
currentUserId: getCurrentUser().id,
|
||||
workspaceIds: [],
|
||||
currentOrganizationName: '选择组织',
|
||||
currentWorkspaceName: '选择工作空间'
|
||||
currentOrganizationName: this.$t('organization.select'),
|
||||
currentWorkspaceName: this.$t('workspace.select')
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -113,7 +113,7 @@
|
|||
this.$get("/workspace/list/orgworkspace/", response => {
|
||||
let data = response.data;
|
||||
if (data.length === 0) {
|
||||
this.workspaceList = [{index: '1-1', name: '无工作区间'}]
|
||||
this.workspaceList = [{index: '1-1', name: this.$t('workspace.none')}]
|
||||
} else {
|
||||
this.workspaceList = data;
|
||||
let workspace = data.filter(r => r.id === this.currentUser.lastWorkspaceId);
|
||||
|
@ -122,7 +122,6 @@
|
|||
localStorage.setItem(WORKSPACE_ID, workspace[0].id);
|
||||
}
|
||||
}
|
||||
// this.workspaceIds = response.data.map(r = r.id);
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
@ -51,6 +51,8 @@ export default {
|
|||
'delete': 'Delete',
|
||||
'not_filled': 'Not filled',
|
||||
'search_by_name': 'Search by name',
|
||||
'personal_information': 'Personal Information',
|
||||
'exit_system': 'Exit System',
|
||||
},
|
||||
workspace: {
|
||||
'create': 'Create Workspace',
|
||||
|
@ -62,6 +64,8 @@ export default {
|
|||
'organization_name': 'Organization Name',
|
||||
'please_choose_organization': 'Please Choose Organization',
|
||||
'please_select_a_workspace_first': 'Please select a workspace first!',
|
||||
'none': 'None Workspace',
|
||||
'select': 'Select Workspace',
|
||||
},
|
||||
organization: {
|
||||
'create': 'Create',
|
||||
|
@ -71,6 +75,8 @@ export default {
|
|||
'select_organization': 'Please select organization',
|
||||
'search_by_name': 'Search by name',
|
||||
'special_characters_are_not_supported': 'Special characters are not supported',
|
||||
'none': 'None Organization',
|
||||
'select': 'Select Organization',
|
||||
},
|
||||
project: {
|
||||
'recent': 'Recent Projects',
|
||||
|
|
|
@ -53,6 +53,8 @@ export default {
|
|||
'not_filled': '未填写',
|
||||
'please_select': '请选择',
|
||||
'search_by_name': '根据名称搜索',
|
||||
'personal_information': '个人信息',
|
||||
'exit_system': '退出系统',
|
||||
},
|
||||
workspace: {
|
||||
'create': '创建工作空间',
|
||||
|
@ -64,6 +66,8 @@ export default {
|
|||
'organization_name': '所属组织',
|
||||
'please_choose_organization': '请选择组织',
|
||||
'please_select_a_workspace_first': '请先选择工作空间!',
|
||||
'none': '无工作空间',
|
||||
'select': '选择工作区间',
|
||||
},
|
||||
organization: {
|
||||
'create': '创建组织',
|
||||
|
@ -73,6 +77,8 @@ export default {
|
|||
'select_organization': '请选择组织',
|
||||
'search_by_name': '根据名称搜索',
|
||||
'special_characters_are_not_supported': '不支持特殊字符',
|
||||
'none': '无组织',
|
||||
'select': '选择组织',
|
||||
},
|
||||
project: {
|
||||
'recent': '最近的项目',
|
||||
|
|
Loading…
Reference in New Issue