fix(项目设置): 模版管理英文页面i18n问题
--bug=1024762 --user=李玉号 【项目设置】github #23034,英语环境,Project Settings>Template,中文模板名称没有翻译 https://www.tapd.cn/55049933/s/1355558 Closes #23034
This commit is contained in:
parent
14cbee5531
commit
0f56f88649
|
@ -27,7 +27,10 @@
|
||||||
:fields="fields"
|
:fields="fields"
|
||||||
prop="name">
|
prop="name">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<span v-if="scope.row.system">{{ scope.row.name }}(默认模板)</span>
|
<span v-if="scope.row.system && scope.row.platform === 'Local'">{{ scope.row.name }}-{{ $t('custom_field.default_template') }}</span>
|
||||||
|
<span v-else-if="scope.row.system && scope.row.platform === 'Jira'">{{$t('custom_template.jira_default_name')}}</span>
|
||||||
|
<span v-else-if="scope.row.system && scope.row.platform === 'Zentao'">{{$t('custom_template.zentao_default_name')}}</span>
|
||||||
|
<span v-else-if="scope.row.system && scope.row.platform === 'Tapd'">{{$t('custom_template.tapd_default_name')}}</span>
|
||||||
<span v-else>{{ scope.row.name }}</span>
|
<span v-else>{{ scope.row.name }}</span>
|
||||||
</template>
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
@ -46,6 +49,12 @@
|
||||||
:label="$t('commons.description')"
|
:label="$t('commons.description')"
|
||||||
:fields="fields"
|
:fields="fields"
|
||||||
prop="description">
|
prop="description">
|
||||||
|
<template v-slot="scope">
|
||||||
|
<span v-if="scope.row.system && scope.row.platform === 'Jira'">{{$t('custom_template.jira_default_description')}}</span>
|
||||||
|
<span v-else-if="scope.row.system && scope.row.platform === 'Zentao'">{{$t('custom_template.zentao_default_description')}}</span>
|
||||||
|
<span v-else-if="scope.row.system && scope.row.platform === 'Tapd'">{{$t('custom_template.tapd_default_description')}}</span>
|
||||||
|
<span v-else>{{ scope.row.description }}</span>
|
||||||
|
</template>
|
||||||
</ms-table-column>
|
</ms-table-column>
|
||||||
|
|
||||||
<ms-table-column
|
<ms-table-column
|
||||||
|
@ -118,8 +127,9 @@ export default {
|
||||||
issuePlatformMap: {
|
issuePlatformMap: {
|
||||||
Local: 'Metersphere',
|
Local: 'Metersphere',
|
||||||
Tapd: 'Tapd',
|
Tapd: 'Tapd',
|
||||||
Zentao: '禅道',
|
Zentao: this.$t('custom_template.zentao'),
|
||||||
AzureDevops: 'Azure Devops',
|
AzureDevops: 'Azure Devops',
|
||||||
|
Jira: 'Jira'
|
||||||
},
|
},
|
||||||
operators: [
|
operators: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,14 @@ const message = {
|
||||||
api_template: "Api Template",
|
api_template: "Api Template",
|
||||||
base_fields: 'Base fields',
|
base_fields: 'Base fields',
|
||||||
template_name: 'Template name',
|
template_name: 'Template name',
|
||||||
selected_custom_fields: 'Custom fields to be selected'
|
selected_custom_fields: 'Custom fields to be selected',
|
||||||
|
zentao: "Zentao",
|
||||||
|
zentao_default_name: "Zentao-Default Template",
|
||||||
|
tapd_default_name: "TAPD-Default Template",
|
||||||
|
jira_default_name: "JIRA-Default Template",
|
||||||
|
zentao_default_description: "zentao default template",
|
||||||
|
tapd_default_description: "tapd default template",
|
||||||
|
jira_default_description: "jira default template"
|
||||||
},
|
},
|
||||||
pj_batch_delete: {
|
pj_batch_delete: {
|
||||||
error_library: "Confirm batch delete error library"
|
error_library: "Confirm batch delete error library"
|
||||||
|
|
|
@ -28,7 +28,14 @@ const message = {
|
||||||
api_template: "接口模版",
|
api_template: "接口模版",
|
||||||
base_fields: '基础字段',
|
base_fields: '基础字段',
|
||||||
template_name: '模版名称',
|
template_name: '模版名称',
|
||||||
selected_custom_fields: '已选自定义字段'
|
selected_custom_fields: '已选自定义字段',
|
||||||
|
zentao: "禅道",
|
||||||
|
zentao_default_name: "禅道-默认模版",
|
||||||
|
tapd_default_name: "TAPD-默认模版",
|
||||||
|
jira_default_name: "JIRA-默认模版",
|
||||||
|
zentao_default_description: "禅道默认模版",
|
||||||
|
tapd_default_description: "TAPD默认模版",
|
||||||
|
jira_default_description: "JIRA默认模版"
|
||||||
},
|
},
|
||||||
pj_batch_delete: {
|
pj_batch_delete: {
|
||||||
error_library: "确定批量删除误报库"
|
error_library: "确定批量删除误报库"
|
||||||
|
|
|
@ -28,7 +28,14 @@ const message = {
|
||||||
api_template: "接口模版",
|
api_template: "接口模版",
|
||||||
base_fields: '基礎字段',
|
base_fields: '基礎字段',
|
||||||
template_name: '模版名稱',
|
template_name: '模版名稱',
|
||||||
selected_custom_fields: '已選自定義字段'
|
selected_custom_fields: '已選自定義字段',
|
||||||
|
zentao: "禪道",
|
||||||
|
zentao_default_name: "禪道-默認模版",
|
||||||
|
tapd_default_name: "TAPD-默認模版",
|
||||||
|
jira_default_name: "JIRA-默認模版",
|
||||||
|
zentao_default_description: "禪道默認模版",
|
||||||
|
tapd_default_description: "TAPD默認模版",
|
||||||
|
jira_default_description: "JIRA默認模版"
|
||||||
},
|
},
|
||||||
pj_batch_delete: {
|
pj_batch_delete: {
|
||||||
error_library: "確定刪除誤報庫"
|
error_library: "確定刪除誤報庫"
|
||||||
|
|
Loading…
Reference in New Issue