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

This commit is contained in:
dela
2026-10-09 14:08:31 +08:00
parent 8af63417c8
commit 97668dab7e
148 changed files with 1671 additions and 1672 deletions
+5 -5
View File
@@ -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()))
}