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:
@@ -10,7 +10,7 @@ import (
|
||||
// 인증 응답 문구의 한국어화(백로그 F3b)를 지키는 회귀 방어 테스트다. DB 가 없어도
|
||||
// 도는 두 경로로 확인한다: ① requireAuth 미들웨어는 pg 를 거치지 않으므로 실제 HTTP
|
||||
// 응답 본문까지 검사하고, ② 나머지 핸들러 문구는 명명 상수라 상수 자체를 검사한다.
|
||||
// 한국어 판정은 F3a 가 만든 assertKoreanError 헬퍼(한글 포함·중국어 한자 0)를 재사용한다.
|
||||
// 한국어 판정은 F3a 가 만든 assertChineseError 헬퍼(한글 포함·중국어 한자 0)를 재사용한다.
|
||||
|
||||
// TestRequireAuthMessagesLocalized 는 토큰이 없거나 잘못됐을 때 requireAuth 가 돌려주는
|
||||
// 401 응답 본문이 한국어이고 중국어 한자가 없음을 실제 HTTP 핸들러로 확인한다. 이
|
||||
@@ -46,7 +46,7 @@ func TestRequireAuthMessagesLocalized(t *testing.T) {
|
||||
if !strings.Contains(body, c.want) {
|
||||
t.Errorf("응답 본문에 %q 가 없습니다: %s", c.want, body)
|
||||
}
|
||||
assertKoreanError(t, c.name, body)
|
||||
assertChineseError(t, c.name, body)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -70,6 +70,6 @@ func TestAuthErrorConstantsLocalized(t *testing.T) {
|
||||
"authErrBadCredential": authErrBadCredential,
|
||||
}
|
||||
for name, msg := range consts {
|
||||
assertKoreanError(t, name, msg)
|
||||
assertChineseError(t, name, msg)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user