fix(接口测试): 接口定义国际化
--bug=1008891 --user=王孝刚 【国际化】-API-Api Definition 未翻译为英文 https://www.tapd.cn/55049933/s/1081505
This commit is contained in:
parent
bcac804f74
commit
bd1107db05
|
@ -78,7 +78,7 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
options: [{name: "No Auth"}, {name: "Basic Auth"}],
|
||||
encryptOptions: [{id: false, name: "不加密"}],
|
||||
encryptOptions: [{id: false, name: this.$t('commons.encrypted')}],
|
||||
activeName: "verified",
|
||||
rule: {},
|
||||
authConfig: {},
|
||||
|
|
|
@ -289,7 +289,7 @@ export default {
|
|||
permissions: ['PROJECT_API_DEFINITION:READ+EDIT_API']
|
||||
},
|
||||
{
|
||||
name: this.$t('生成依赖关系'),
|
||||
name: this.$t('test_track.case.generate_dependencies'),
|
||||
isXPack: true,
|
||||
handleClick: this.generateGraph,
|
||||
permissions: ['PROJECT_API_DEFINITION:READ+EDIT_API']
|
||||
|
|
|
@ -151,7 +151,7 @@ export default {
|
|||
if (this.language !== 'beanshell' && this.language !== 'groovy') {
|
||||
if (obj.title === this.$t('api_test.request.processor.code_add_report_length') ||
|
||||
obj.title === this.$t('api_test.request.processor.code_hide_report_length')) {
|
||||
this.$warning("无对应的 "+ this.language +" 代码模版!");
|
||||
this.$warning(this.$t('commons.no_corresponding') + " " + this.language + " " + this.$t('commons.code_template') + "!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,22 +4,22 @@
|
|||
<slot name="header"></slot>
|
||||
|
||||
<ms-node-tree
|
||||
:is-display="getIsRelevance"
|
||||
v-loading="result.loading"
|
||||
:tree-nodes="data"
|
||||
:type="isReadOnly ? 'view' : 'edit'"
|
||||
:allLabel="$t('全部接口')"
|
||||
:default-label="'未规划接口'"
|
||||
@add="add"
|
||||
@edit="edit"
|
||||
@drag="drag"
|
||||
@remove="remove"
|
||||
@refresh="list"
|
||||
@filter="filter"
|
||||
:delete-permission="['PROJECT_API_DEFINITION:READ+DELETE_API']"
|
||||
:add-permission="['PROJECT_API_DEFINITION:READ+CREATE_API']"
|
||||
:update-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"
|
||||
@nodeSelectEvent="nodeChange"
|
||||
:is-display="getIsRelevance"
|
||||
v-loading="result.loading"
|
||||
:tree-nodes="data"
|
||||
:type="isReadOnly ? 'view' : 'edit'"
|
||||
:allLabel="$t('api_test.definition.api_all')"
|
||||
:default-label="$t('api_test.definition.unplanned_api')"
|
||||
@add="add"
|
||||
@edit="edit"
|
||||
@drag="drag"
|
||||
@remove="remove"
|
||||
@refresh="list"
|
||||
@filter="filter"
|
||||
:delete-permission="['PROJECT_API_DEFINITION:READ+DELETE_API']"
|
||||
:add-permission="['PROJECT_API_DEFINITION:READ+CREATE_API']"
|
||||
:update-permission="['PROJECT_API_DEFINITION:READ+EDIT_API']"
|
||||
@nodeSelectEvent="nodeChange"
|
||||
ref="nodeTree">
|
||||
|
||||
<template v-slot:header>
|
||||
|
|
|
@ -158,7 +158,7 @@ export default {
|
|||
if (this.language !== 'beanshell' && this.language !== 'groovy') {
|
||||
if (obj.title === this.$t('api_test.request.processor.code_add_report_length') ||
|
||||
obj.title === this.$t('api_test.request.processor.code_hide_report_length')) {
|
||||
this.$warning("无对应的 "+ this.language +" 代码模版!");
|
||||
this.$warning(this.$t('commons.no_corresponding') + " " + this.language + " " + this.$t('commons.code_template') + "!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -182,6 +182,9 @@ export default {
|
|||
node_name_tip: "The name cannot contain'\\'",
|
||||
more_operator: "More operator",
|
||||
mock: "Mock settings",
|
||||
encrypted: "Not encrypted",
|
||||
no_corresponding: "No corresponding",
|
||||
code_template: "code template",
|
||||
api_case: "Api Case",
|
||||
scenario_case: "Scenario Case",
|
||||
task_center: "Task center",
|
||||
|
@ -1037,6 +1040,8 @@ export default {
|
|||
},
|
||||
definition: {
|
||||
api_quick_button: 'Api definition shortcut add button',
|
||||
api_all: 'All interfaces',
|
||||
unplanned_api: 'Unplanned interface',
|
||||
id: 'Api Definition ID',
|
||||
api_title: "Api test",
|
||||
case_title: "Test Case",
|
||||
|
@ -1099,8 +1104,8 @@ export default {
|
|||
encryption: "encryption",
|
||||
req_param: "Request parameter",
|
||||
res_param: "Response content",
|
||||
batch_delete: "Batch deletion",
|
||||
delete_confirm: "Confirm deletion",
|
||||
batch_delete: "Batch delete",
|
||||
delete_confirm: "Confirm delete",
|
||||
batch_to_performance_confirm: "Confirm Batch Create Performance Test",
|
||||
batch_copy_confirm: "Confirm batch copy",
|
||||
batch_copy_end: "Batch Copy Over",
|
||||
|
@ -1355,6 +1360,7 @@ export default {
|
|||
connect_timeout: "Connect Timeout",
|
||||
response_timeout: "Response Timeout",
|
||||
follow_redirects: "Follow Redirects",
|
||||
cert_alias: "Certificate alias",
|
||||
do_multipart_post: "Use multipart/form-data for POST",
|
||||
body_upload_limit_size: "The file size does not exceed 500 MB",
|
||||
condition: "condition",
|
||||
|
@ -1365,6 +1371,7 @@ export default {
|
|||
text: "Text",
|
||||
regex: "Regex",
|
||||
response_time: "Response Time",
|
||||
jsr223: "Script",
|
||||
select_type: "Choose type",
|
||||
select_subject: "Subject",
|
||||
select_condition: "Condition",
|
||||
|
|
|
@ -183,6 +183,9 @@ export default {
|
|||
node_name_tip: "名称不能包含'\\'",
|
||||
more_operator: "更多操作",
|
||||
mock: "Mock 设置",
|
||||
encrypted: "不加密",
|
||||
no_corresponding: "无对应的",
|
||||
code_template: "代码模版",
|
||||
api_case: "接口用例",
|
||||
scenario_case: "场景用例",
|
||||
task_center: "任务中心",
|
||||
|
@ -1046,6 +1049,8 @@ export default {
|
|||
definition: {
|
||||
api_quick_button: '接口定义快捷添加按钮',
|
||||
id: '接口定义ID',
|
||||
api_all: '全部接口',
|
||||
unplanned_api: '未规划接口',
|
||||
api_title: "接口列表",
|
||||
case_title: "用例列表",
|
||||
doc_title: "文档",
|
||||
|
|
|
@ -183,6 +183,9 @@ export default {
|
|||
node_name_tip: "名稱不能包含'\\'",
|
||||
more_operator: "更多操作",
|
||||
mock: "Mock 設置",
|
||||
encrypted: "不加密",
|
||||
no_corresponding: "無對應的",
|
||||
code_template: "代码模版",
|
||||
api_case: "接口用例",
|
||||
scenario_case: "場景用例",
|
||||
task_center: "任務中心",
|
||||
|
@ -1042,6 +1045,8 @@ export default {
|
|||
},
|
||||
definition: {
|
||||
api_quick_button: '接口定義快捷添加按鈕',
|
||||
api_all: '全部接口',
|
||||
unplanned_api: '未規劃接口',
|
||||
id: '接口定義ID',
|
||||
api_title: "接口列表",
|
||||
case_title: "用例列表",
|
||||
|
|
Loading…
Reference in New Issue