From c8df84cbebd099e3c732dcb174e4aff8c5420f43 Mon Sep 17 00:00:00 2001 From: Rick <1450685+LinuxSuRen@users.noreply.github.com> Date: Mon, 24 Feb 2025 21:28:14 +0800 Subject: [PATCH] refactor(console): add more HTTP status codes and proxy settings to localization files- Added new HTTP status codes to both English and Chinese localization files (#625) - Updated proxy settings in English localization file - Expanded HTTP status code list in Chinese localization file Co-authored-by: rick --- console/atest-ui/src/locales/en.json | 30 +++++++++++++++++++------ console/atest-ui/src/locales/zh.json | 33 ++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 7 deletions(-) diff --git a/console/atest-ui/src/locales/en.json b/console/atest-ui/src/locales/en.json index 002dfe7..d254378 100644 --- a/console/atest-ui/src/locales/en.json +++ b/console/atest-ui/src/locales/en.json @@ -78,6 +78,11 @@ "proxy": "Proxy", "insecure": "Insecure" }, + "proxy": { + "http": "HTTP Proxy", + "https": "HTTPS Proxy", + "no": "No Proxy" + }, "//see http spec": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403", "httpCode": { "200": "200 OK", @@ -85,20 +90,31 @@ "204": "204 No Content", "400": "400 Bad Request", "401": "401 Unauthorized", + "402": "402 Payment Required", "403": "403 Forbidden", "404": "404 Not Found", "405": "405 Method Not Allowed", "409": "409 Conflict", - "413": "Content Too Large", + "413": "413 Content Too Large", "415": "415 Unsupported Media Type", "422": "422 Unprocessable Content", "500": "500 Internal Server Error", "502": "502 Bad Gateway", - "503": "503 Service Unavailable" - }, - "proxy": { - "http": "HTTP Proxy", - "https": "HTTPS Proxy", - "no": "No Proxy" + "503": "503 Service Unavailable", + "301": "301 Moved Permanently", + "302": "302 Found", + "304": "304 Not Modified", + "406": "406 Not Acceptable", + "407": "407 Proxy Authentication Required", + "408": "408 Request Timeout", + "410": "410 Gone", + "411": "411 Length Required", + "412": "412 Precondition Failed", + "414": "414 URI Too Long", + "416": "416 Range Not Satisfiable", + "417": "417 Expectation Failed", + "429": "429 Too Many Requests", + "501": "501 Not Implemented", + "504": "504 Gateway Timeout" } } diff --git a/console/atest-ui/src/locales/zh.json b/console/atest-ui/src/locales/zh.json index 577a668..093aa17 100644 --- a/console/atest-ui/src/locales/zh.json +++ b/console/atest-ui/src/locales/zh.json @@ -76,5 +76,38 @@ "http": "HTTP 代理", "https": "HTTPS 代理", "no": "跳过代理" + }, + "httpCode": { + "200": "200 成功", + "201": "201 已创建", + "204": "204 无内容", + "400": "400 错误的请求", + "401": "401 未授权", + "402": "402 需要支付", + "403": "403 禁止访问", + "404": "404 未找到", + "405": "405 方法不被允许", + "409": "409 冲突", + "413": "413 请求实体过大", + "415": "415 不支持的媒体类型", + "422": "422 处理不了的实体", + "500": "500 内部服务器错误", + "502": "502 错误的网关", + "503": "503 服务不可用", + "301": "301 永久移动", + "302": "302 临时移动", + "304": "304 未修改", + "406": "406 不接受", + "407": "407 需要代理身份验证", + "408": "408 请求超时", + "410": "410 已删除", + "411": "411 需要内容长度", + "412": "412 前提条件失败", + "414": "414 请求 URI 过长", + "416": "416 范围不可满足", + "417": "417 期望失败", + "429": "429 请求过多", + "501": "501 未实现", + "504": "504 网关超时" } }