refactor: i18n
This commit is contained in:
parent
3db39fb276
commit
4ec766605c
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div v-loading="result.loading">
|
||||
<el-input placeholder="搜索项目"
|
||||
<el-input :placeholder="$t('project.search_by_name')"
|
||||
prefix-icon="el-icon-search"
|
||||
v-model="searchString"
|
||||
clearable
|
||||
|
@ -8,7 +8,7 @@
|
|||
size="small"/>
|
||||
<div v-if="items.length === 0" style="text-align: center; margin: 15px 0">
|
||||
<span style="font-size: 15px; color: #8a8b8d;">
|
||||
无数据
|
||||
{{ $t('project.no_data') }}
|
||||
</span>
|
||||
</div>
|
||||
<div v-else style="height: 150px;overflow: auto">
|
||||
|
@ -114,7 +114,7 @@ export default {
|
|||
this.$emit("update:currentProject", project[0].name);
|
||||
}
|
||||
} else {
|
||||
this.$emit("update:currentProject", '选择项目');
|
||||
this.$emit("update:currentProject", this.$t('project.select'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -304,6 +304,8 @@ export default {
|
|||
jira_key: 'JIRA Project key',
|
||||
zentao_id: 'Zentao Project ID',
|
||||
manager: 'Manager',
|
||||
no_data: 'No Data',
|
||||
select: 'Select'
|
||||
},
|
||||
member: {
|
||||
create: 'Create',
|
||||
|
|
|
@ -301,6 +301,8 @@ export default {
|
|||
jira_key: 'JIRA项目key',
|
||||
zentao_id: 'Zentao项目ID',
|
||||
manager: '项目管理',
|
||||
no_data: '无数据',
|
||||
select: '选择项目'
|
||||
},
|
||||
member: {
|
||||
create: '添加成员',
|
||||
|
|
|
@ -301,6 +301,8 @@ export default {
|
|||
jira_key: 'JIRA項目key',
|
||||
zentao_id: 'Zentao項目ID',
|
||||
manager: '項目管理',
|
||||
no_data: '無數據',
|
||||
select: '選擇項目'
|
||||
},
|
||||
member: {
|
||||
create: '添加成員',
|
||||
|
|
Loading…
Reference in New Issue