From fe1f03a94c6d961e03a1857ea28240bbd7502dc6 Mon Sep 17 00:00:00 2001 From: Ayush Date: Sat, 11 Apr 2026 23:29:55 +0530 Subject: [PATCH] feat: chinese version has been fully localized Signed-off-by: Ayush --- console/atest-ui/src/locales/en.json | 26 +++++++++++++-- console/atest-ui/src/locales/zh.json | 26 +++++++++++++-- console/atest-ui/src/views/TestCase.vue | 44 ++++++++++++------------- 3 files changed, 68 insertions(+), 28 deletions(-) diff --git a/console/atest-ui/src/locales/en.json b/console/atest-ui/src/locales/en.json index f7e8736f..3a98965a 100644 --- a/console/atest-ui/src/locales/en.json +++ b/console/atest-ui/src/locales/en.json @@ -9,6 +9,10 @@ "save": "Save", "delete": "Delete", "send": "Send", + "beautify": "Beautify", + "minify": "Minify", + "download": "Download", + "batchSend": "Batch Send", "copy": "Copy", "ok": "OK", "next-page": "Next", @@ -59,14 +63,18 @@ "data": "Data", "setting": "Setting", "keyBindings": "Key Bindings", - "theme":"Theme" + "theme":"Theme", + "newTestCaseName": "New Test Case Name" }, "tip": { "filter": "Filter Keyword", "noParameter": "No Parameter", "testsuite": "Test Suite:", "apiAddress": "API Address:", - "runningAt": "Running At:" + "runningAt": "Running At:", + "chooseBodyFormat": "Choose the body format", + "responseBodyTooLarge": "Response body is too large, please download to view.", + "bodySize": "Body Size" }, "field": { "name": "Name", @@ -86,7 +94,19 @@ "proxy": "Proxy", "shortcut": "Shortcut", "description": "Description", - "insecure": "Insecure" + "insecure": "Insecure", + "query": "Query", + "header": "Header", + "cookie": "Cookie", + "body": "Body", + "expected": "Expected", + "statusCode": "Status Code", + "expectedHeaders": "Expected Headers", + "bodyFieldExpect": "Body Field Expect", + "verify": "Verify", + "schema": "Schema", + "method": "Method", + "filename": "Filename" }, "proxy": { "http": "HTTP Proxy", diff --git a/console/atest-ui/src/locales/zh.json b/console/atest-ui/src/locales/zh.json index 5d0185f2..9e07afe4 100644 --- a/console/atest-ui/src/locales/zh.json +++ b/console/atest-ui/src/locales/zh.json @@ -9,6 +9,10 @@ "save": "保存", "delete": "删除", "send": "发送", + "beautify": "格式化", + "minify": "压缩", + "download": "下载", + "batchSend": "批量发送", "copy": "拷贝", "ok": "确定", "next-page": "下一页", @@ -55,14 +59,18 @@ "data": "数据", "setting": "设置", "keyBindings": "按键绑定", - "theme": "主题" + "theme": "主题", + "newTestCaseName": "新测试用例名称" }, "tip": { "filter": "过滤", "noParameter": "无参数", "testsuite": "测试集:", "apiAddress": "API 地址:", - "runningAt": "运行于:" + "runningAt": "运行于:", + "chooseBodyFormat": "选择请求体格式", + "responseBodyTooLarge": "响应体过大,请下载后查看。", + "bodySize": "请求体大小" }, "field": { "name": "名称", @@ -82,7 +90,19 @@ "proxy": "代理", "shortcut": "快捷键", "description": "描述", - "insecure": "忽略证书验证" + "insecure": "忽略证书验证", + "query": "查询参数", + "header": "请求头", + "cookie": "Cookie", + "body": "请求体", + "expected": "预期结果", + "statusCode": "状态码", + "expectedHeaders": "预期响应头", + "bodyFieldExpect": "请求体字段预期", + "verify": "验证", + "schema": "Schema", + "method": "方法", + "filename": "文件名" }, "proxy": { "http": "HTTP 代理", diff --git a/console/atest-ui/src/views/TestCase.vue b/console/atest-ui/src/views/TestCase.vue index 72be868c..2a5a7edd 100644 --- a/console/atest-ui/src/views/TestCase.vue +++ b/console/atest-ui/src/views/TestCase.vue @@ -969,7 +969,7 @@ Magic.LoadMagicKeys('TestCase', new Map([ v-if="props.kindName !== 'tRPC' && props.kindName !== 'gRPC'" v-model="testCaseWithSuite.data.request.method" class="m-2" - placeholder="Method" + :placeholder="t('field.method')" size="default" test-id="case-editor-method" :disabled="isHistoryTestCase" @@ -1008,7 +1008,7 @@ Magic.LoadMagicKeys('TestCase', new Map([ @@ -1022,7 +1022,7 @@ Magic.LoadMagicKeys('TestCase', new Map([ @@ -1048,7 +1048,7 @@ Magic.LoadMagicKeys('TestCase', new Map([ @@ -1081,7 +1081,7 @@ Magic.LoadMagicKeys('TestCase', new Map([ @@ -1104,12 +1104,12 @@ Magic.LoadMagicKeys('TestCase', new Map([ - - - Choose the body format + + + {{ t('tip.chooseBodyFormat') }} none @@ -1123,7 +1123,7 @@ Magic.LoadMagicKeys('TestCase', new Map([
- Filename: + {{ t('field.filename') }}: @@ -1155,10 +1155,10 @@ Magic.LoadMagicKeys('TestCase', new Map([
- + - Status Code: + {{ t('field.statusCode') }}: - +