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
+3 -3
View File
@@ -189,7 +189,7 @@ func TestUploadSkillUnsupportedMethod(t *testing.T) {
t.Fatalf("status = %d, want 400 (body %s)", rr.Code, rr.Body)
}
msg, _ := out["error"].(string)
if !strings.Contains(msg, "Deflate64") || !strings.Contains(msg, "지원하지 않는 압축 방식") {
if !strings.Contains(msg, "Deflate64") || !strings.Contains(msg, "不支持的压缩方式") {
t.Fatalf("error = %q, want a Korean message naming Deflate64", msg)
}
}
@@ -210,7 +210,7 @@ func TestUploadSkillEncrypted(t *testing.T) {
if rr.Code != 400 {
t.Fatalf("status = %d, want 400 (body %s)", rr.Code, rr.Body)
}
if msg, _ := out["error"].(string); !strings.Contains(msg, "암호화") {
if msg, _ := out["error"].(string); !strings.Contains(msg, "加密") {
t.Fatalf("error = %q, want 암호화 hint", msg)
}
}
@@ -226,7 +226,7 @@ func TestUploadSkillRejectsTraversal(t *testing.T) {
if rr.Code != 400 {
t.Fatalf("status = %d, want 400 (body %s)", rr.Code, rr.Body)
}
if msg, _ := out["error"].(string); !strings.Contains(msg, "잘못된 경로") {
if msg, _ := out["error"].(string); !strings.Contains(msg, "路径") {
t.Fatalf("error = %q, want 잘못된 경로", msg)
}
if entries, _ := os.ReadDir(dir); len(entries) != 0 {