refactor: i18n

--bug=1008911 --user=lyh 【国际化】测试跟踪 模块,未进行国际化的问题汇总
https://www.tapd.cn/55049933/s/1081982
This commit is contained in:
shiziyuan9527 2021-12-16 19:12:33 +08:00 committed by shiziyuan9527
parent 22094ed429
commit 9b94963669
5 changed files with 10 additions and 4 deletions

View File

@ -32,7 +32,7 @@
</el-col>
<el-col :span="18">
<div>
<el-checkbox v-model="runConfig.onSampleError">失败停止</el-checkbox>
<el-checkbox v-model="runConfig.onSampleError">{{ $t("api_test.fail_to_stop") }}</el-checkbox>
</div>
<div v-if="testType === 'API'" style="padding-top: 10px">
<el-checkbox v-model="runConfig.runWithinResourcePool" style="padding-right: 10px;">

View File

@ -111,14 +111,14 @@
let envType = this.$refs.apiScenarioList.environmentType;
let envGroupId = this.$refs.apiScenarioList.envGroupId;
if (!map || map.size < 1) {
this.$warning("请选择用例!");
this.$warning(this.$t("api_test.please_select_case"));
return false;
}
if (envType === ENV_TYPE.JSON && (!envMap || envMap.size < 1)) {
this.$warning("请选择环境!");
this.$warning(this.$t("api_test.environment.select_environment"));
return false;
} else if (envType === ENV_TYPE.GROUP && !envGroupId) {
this.$warning("请选择环境!");
this.$warning(this.$t("api_test.environment.select_environment"));
return false;
}
param.planId = this.planId;

View File

@ -994,6 +994,8 @@ export default {
export_config: "Export",
enable_validate_tip: "No request available",
copy: "Copy Test",
please_select_case: "Please select case",
fail_to_stop: "Fail to stop",
jar_config: {
title: "Upload jar package",
jar_file: "Jar package",

View File

@ -1002,6 +1002,8 @@ export default {
export_config: "导出",
enable_validate_tip: "没有可用请求",
copy: "复制测试",
please_select_case: "请选择用例",
fail_to_stop: "失败停止",
batch_add_parameter: "格式:参数名:参数值 <br/> 如Accept-Encoding:utf-8",
jar_config: {
title: "上传jar包",

View File

@ -999,6 +999,8 @@ export default {
export_config: "導出",
enable_validate_tip: "沒有可用請求",
copy: "復製測試",
please_select_case: "請選擇用例",
fail_to_stop: "失敗停止",
batch_add_parameter: "格式:參數名:參數值 <br/> 如Accept-Encoding:utf-8",
jar_config: {
title: "上傳jar包",