feat(blog): sprint-157 [P9] — ADR UI i18n (KR/EN) — 사용자 지적 즉시 보강#255
Merged
Conversation
기존 (adr) 라우팅 한국어 전용 → KR/EN 양면 보유 정책 준수. - lib/i18n.ts: ADR 전용 사전 키 ~50개 추가 + tf() placeholder helper - (adr)/en/adr/* 6 라우팅 신규 (한국어 경로 유지 + 영문 미러) - 12+ ADR 컴포넌트 locale prop 전파 + t() 적용 - 영문 페이지 본문 상단 'Content in Korean' 배너 + 원문 링크 - buildUrl() locale prefix 지원 (옵셔널 + 기본값 'ko') - AdrHeader 신규 — pathname 기반 locale 판별 + LocaleToggle 통합 - AdrGraphView 신규 — KR/EN 그래프 페이지 공유 뷰 - check-adr-links.mjs: /en/adr/ 경로 검사 + outRoot 추론 + EN search-index skip 콘텐츠 영문판(md 105개)은 별도 sprint 이월. Sprint 152 시드 #19 KR/EN 양면 plan 의무 본 sprint 즉시 적용. 검증: - npx tsc --noEmit: 0 에러 - npm run build: 239 페이지 생성 (KR/EN 각 119개) - check-adr-links.mjs blog/out/adr: 1109 links, 0 broken - check-adr-links.mjs blog/out/en/adr: 1213 links, 0 broken - check-doc-refs.mjs --include-untracked: 171 files, 0 broken refs
Coverage ReportCoverage directory not found at /home/runner/work/AlgoSu/AlgoSu/coverage — no services changed, skipping coverage gate. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lib/i18n.tsADR 사전 키 ~50개 추가 +tf()placeholder helper 신규/en/adr/*6 라우팅 신규 (한국어 경로 유지 + 영문 미러)localeprop 전파 +t(locale, key)적용View Korean version ↗링크/adr/↔/en/adr/)Test plan
npx tsc --noEmit0 에러npm run buildexit 0, 239 정적 페이지 (KR ADR 119 + EN ADR 119 + 블로그 23, 기존 132 → 239)check-adr-links.mjs blog/out/adr1109 links, 0 brokencheck-adr-links.mjs blog/out/en/adr1213 links, 0 brokencheck-doc-refs.mjs --include-untracked171 files, 0 broken refs/en/adr/인덱스 +/en/adr/sprints/156/상세 — 헤더/메타사이드바/뱃지/TOC 라벨 모두 영문화, KoreanOnlyBanner 정상 표시KO/EN양방향 정상 동작검증된 패턴
/adr/search-index.json만 생성, 클라이언트가 locale에 따라 URL prefix만 재작성usePathname기반 토글이/adr/...↔/en/adr/...변환에도 그대로 작동🤖 Generated with Claude Code