feat(i18n): add English and Simplified Chinese
This commit is contained in:
1 parent
38c4c8b781
commit
1e9e0678ee
149 files changed
+5356
-1144
No files matched your search
@@ -307,7 +307,7 @@ func TestMaintenanceErrorsPreserveHTTPStatus(t *testing.T) {
|
||||
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if res.StatusCode != 400 || body.Code != 40000 || !strings.Contains(body.Message, "备份内容无效") {
|
||||
if res.StatusCode != 400 || body.Code != 40000 || !strings.Contains(body.Message, "Invalid backup contents") {
|
||||
t.Fatalf("无效备份响应错误: %d %+v", res.StatusCode, body)
|
||||
}
|
||||
})
|
||||
@@ -348,7 +348,7 @@ func TestMaintenanceErrorsPreserveHTTPStatus(t *testing.T) {
|
||||
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if res.StatusCode != 500 || body.Code != 50000 || body.Message != "服务器内部错误" {
|
||||
if res.StatusCode != 500 || body.Code != 50000 || body.Message != "Internal server error" {
|
||||
t.Fatalf("磁盘故障被当作输入错误: %d %+v", res.StatusCode, body)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user