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
+6 -6
View File
@@ -22,14 +22,14 @@ func TestChatMentionErrorsLocalized(t *testing.T) {
"dataUnavail": errChatMentionDataUnavail,
"tooLarge": errChatMentionTooLarge,
} {
assertKoreanError(t, label, msg)
assertChineseError(t, label, msg)
}
// parseChatMentions — a non-positive id inside a valid wire token.
if _, err := parseChatMentions("@[漏洞#0]"); err == nil {
t.Fatal("잘못된 인용 ID 가 통과해서는 안 됩니다")
} else {
assertKoreanError(t, "parse.badID", err.Error())
assertChineseError(t, "parse.badID", err.Error())
}
// parseChatMentions — exceeding the per-message mention cap (11 distinct ids).
@@ -40,14 +40,14 @@ func TestChatMentionErrorsLocalized(t *testing.T) {
if _, err := parseChatMentions(b.String()); err == nil {
t.Fatal("인용 상한 초과가 통과해서는 안 됩니다")
} else {
assertKoreanError(t, "parse.tooMany", err.Error())
assertChineseError(t, "parse.tooMany", err.Error())
}
// composeChatMentionMessage — a mention is present but the database is nil.
if _, err := composeChatMentionMessage(nil, "@[漏洞#1]"); err == nil {
t.Fatal("DB 없이 인용 해석이 통과해서는 안 됩니다")
} else {
assertKoreanError(t, "compose.dataUnavail", err.Error())
assertChineseError(t, "compose.dataUnavail", err.Error())
}
// searchChatMentions — invalid kind and over-long query are rejected before
@@ -58,7 +58,7 @@ func TestChatMentionErrorsLocalized(t *testing.T) {
if w.Code != 400 {
t.Fatalf("검증 실패(400)를 기대했으나 %d 가 반환되었습니다 (%s)", w.Code, q)
}
assertKoreanError(t, "search."+q, decodeErrorField(t, w.Body.Bytes()))
assertChineseError(t, "search."+q, decodeErrorField(t, w.Body.Bytes()))
}
// The display label map mirrors the UI mention kinds, and the not-found
@@ -68,5 +68,5 @@ func TestChatMentionErrorsLocalized(t *testing.T) {
t.Fatalf("종류 라벨이 누락되었습니다: %s", kind)
}
}
assertKoreanError(t, "notFound", fmt.Sprintf(errChatMentionNotFoundFmt, chatMentionKindLabel["finding"], 7))
assertChineseError(t, "notFound", fmt.Sprintf(errChatMentionNotFoundFmt, chatMentionKindLabel["finding"], 7))
}