Localize user-facing UI, agent output, and backend messages to Simplified Chinese
ci / go (push) Waiting to run
ci / go-db (agent) (push) Waiting to run
ci / go-db (config) (push) Waiting to run
ci / go-db (db) (push) Waiting to run
ci / go-db (evidence) (push) Waiting to run
ci / go-db (llmrec) (push) Waiting to run
ci / go-db (server) (push) Waiting to run
detections / detections (push) Waiting to run
docs / links (push) Waiting to run
web / web (push) Waiting to run
ci / go (push) Waiting to run
ci / go-db (agent) (push) Waiting to run
ci / go-db (config) (push) Waiting to run
ci / go-db (db) (push) Waiting to run
ci / go-db (evidence) (push) Waiting to run
ci / go-db (llmrec) (push) Waiting to run
ci / go-db (server) (push) Waiting to run
detections / detections (push) Waiting to run
docs / links (push) Waiting to run
web / web (push) Waiting to run
This commit is contained in:
@@ -18,7 +18,7 @@ func TestAssetErrorConstantsLocalized(t *testing.T) {
|
||||
"errCompanyNameConflict": errCompanyNameConflict,
|
||||
}
|
||||
for label, msg := range cases {
|
||||
assertKoreanError(t, label, msg)
|
||||
assertChineseError(t, label, msg)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ func TestTaskAssetProvenanceLocalized(t *testing.T) {
|
||||
"taskAssetSourceTaskSummary": taskAssetSourceTaskSummary,
|
||||
}
|
||||
for label, msg := range cases {
|
||||
assertKoreanError(t, label, msg)
|
||||
assertChineseError(t, label, msg)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ func TestAssetResponsesLocalized(t *testing.T) {
|
||||
if rec.Code != http.StatusBadRequest {
|
||||
t.Fatalf("scope+asset_ids status=%d, want 400 (body %s)", rec.Code, rec.Body.String())
|
||||
}
|
||||
assertKoreanError(t, "scope-conflict", decodeErrorField(t, rec.Body.Bytes()))
|
||||
assertChineseError(t, "scope-conflict", decodeErrorField(t, rec.Body.Bytes()))
|
||||
|
||||
// attachTaskAssets — an oversized body trips MaxBytesReader during decode.
|
||||
bigReq := httptest.NewRequest(http.MethodPost, "/api/tasks/1/assets",
|
||||
@@ -64,7 +64,7 @@ func TestAssetResponsesLocalized(t *testing.T) {
|
||||
if rec.Code != http.StatusRequestEntityTooLarge {
|
||||
t.Fatalf("task asset too-large status=%d, want 413 (body %s)", rec.Code, rec.Body.String())
|
||||
}
|
||||
assertKoreanError(t, "task-asset-too-large", decodeErrorField(t, rec.Body.Bytes()))
|
||||
assertChineseError(t, "task-asset-too-large", decodeErrorField(t, rec.Body.Bytes()))
|
||||
|
||||
// decodeCompanyMutationRequest — a body-only helper, no DB or Server state.
|
||||
compReq := httptest.NewRequest(http.MethodPost, "/api/companies",
|
||||
@@ -77,5 +77,5 @@ func TestAssetResponsesLocalized(t *testing.T) {
|
||||
if rec.Code != http.StatusRequestEntityTooLarge {
|
||||
t.Fatalf("company too-large status=%d, want 413 (body %s)", rec.Code, rec.Body.String())
|
||||
}
|
||||
assertKoreanError(t, "company-too-large", decodeErrorField(t, rec.Body.Bytes()))
|
||||
assertChineseError(t, "company-too-large", decodeErrorField(t, rec.Body.Bytes()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user