Skip to content

Commit c8df84c

Browse files
authored
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 <[email protected]>
1 parent cc5a463 commit c8df84c

File tree

2 files changed

+56
-7
lines changed

2 files changed

+56
-7
lines changed

console/atest-ui/src/locales/en.json

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,27 +78,43 @@
7878
"proxy": "Proxy",
7979
"insecure": "Insecure"
8080
},
81+
"proxy": {
82+
"http": "HTTP Proxy",
83+
"https": "HTTPS Proxy",
84+
"no": "No Proxy"
85+
},
8186
"//see http spec": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403",
8287
"httpCode": {
8388
"200": "200 OK",
8489
"201": "201 Created",
8590
"204": "204 No Content",
8691
"400": "400 Bad Request",
8792
"401": "401 Unauthorized",
93+
"402": "402 Payment Required",
8894
"403": "403 Forbidden",
8995
"404": "404 Not Found",
9096
"405": "405 Method Not Allowed",
9197
"409": "409 Conflict",
92-
"413": "Content Too Large",
98+
"413": "413 Content Too Large",
9399
"415": "415 Unsupported Media Type",
94100
"422": "422 Unprocessable Content",
95101
"500": "500 Internal Server Error",
96102
"502": "502 Bad Gateway",
97-
"503": "503 Service Unavailable"
98-
},
99-
"proxy": {
100-
"http": "HTTP Proxy",
101-
"https": "HTTPS Proxy",
102-
"no": "No Proxy"
103+
"503": "503 Service Unavailable",
104+
"301": "301 Moved Permanently",
105+
"302": "302 Found",
106+
"304": "304 Not Modified",
107+
"406": "406 Not Acceptable",
108+
"407": "407 Proxy Authentication Required",
109+
"408": "408 Request Timeout",
110+
"410": "410 Gone",
111+
"411": "411 Length Required",
112+
"412": "412 Precondition Failed",
113+
"414": "414 URI Too Long",
114+
"416": "416 Range Not Satisfiable",
115+
"417": "417 Expectation Failed",
116+
"429": "429 Too Many Requests",
117+
"501": "501 Not Implemented",
118+
"504": "504 Gateway Timeout"
103119
}
104120
}

console/atest-ui/src/locales/zh.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,38 @@
7676
"http": "HTTP 代理",
7777
"https": "HTTPS 代理",
7878
"no": "跳过代理"
79+
},
80+
"httpCode": {
81+
"200": "200 成功",
82+
"201": "201 已创建",
83+
"204": "204 无内容",
84+
"400": "400 错误的请求",
85+
"401": "401 未授权",
86+
"402": "402 需要支付",
87+
"403": "403 禁止访问",
88+
"404": "404 未找到",
89+
"405": "405 方法不被允许",
90+
"409": "409 冲突",
91+
"413": "413 请求实体过大",
92+
"415": "415 不支持的媒体类型",
93+
"422": "422 处理不了的实体",
94+
"500": "500 内部服务器错误",
95+
"502": "502 错误的网关",
96+
"503": "503 服务不可用",
97+
"301": "301 永久移动",
98+
"302": "302 临时移动",
99+
"304": "304 未修改",
100+
"406": "406 不接受",
101+
"407": "407 需要代理身份验证",
102+
"408": "408 请求超时",
103+
"410": "410 已删除",
104+
"411": "411 需要内容长度",
105+
"412": "412 前提条件失败",
106+
"414": "414 请求 URI 过长",
107+
"416": "416 范围不可满足",
108+
"417": "417 期望失败",
109+
"429": "429 请求过多",
110+
"501": "501 未实现",
111+
"504": "504 网关超时"
79112
}
80113
}

0 commit comments

Comments
 (0)