Skip to content

feat(landing): translate the component pages into Korean - #1060

Open
owjs3901 wants to merge 6 commits into
feat/ko-homefrom
feat/ko-components
Open

owjs3901 wants to merge 6 commits into
feat/ko-homefrom
feat/ko-components

Conversation

@owjs3901

@owjs3901 owjs3901 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Translates the components overview and all 26 component reference pages into Korean (/ko/components/*). Stacked on #1059.

  • Per component: index.ko.mdx, Api.ko.mdx and page.ko.tsx beside the English files in components/[component]/<name>/, each registered in src/i18n/pages.ts with the existing components layout. Demos are reused, not copied.
  • Shared renderer: the English [component]/page.tsx and the Korean pages both render ComponentDoc, so the composition, getDemos, MdxCard and the MDX component overrides are the same. getComponentMetadata builds both locales' metadata (canonical /ko/components/<name>, en/ko/x-default alternates). Through createTranslator it reads the same catalogs as the pages (moved to src/i18n/messages.ts).
  • Overview: Description.ko.mdx and page.ko.tsx. Both overview pages render ComponentsOverview, which takes its group headings from the ComponentsMenu namespace.
  • Shared UI: the PropsTable headers and empty state, "Show Code"/"Copy" on the demo cards, and the "Coming Soon" notice read the catalogs. English text is unchanged.
  • Translated prose and prop descriptions. Component names, prop names, types, defaults (apart from the prose magnifier icon default in Search), code, links and numbers are unchanged. The JSDoc comments in the demo files are not translated, because the demos are shared.
  • Fixes the documented confirmButtonText default on the Select page (English and Korean): it was mojibake ('D�') of the real default '완료' (packages/components/src/components/Select/index.tsx).
  • script.js: the Korean search index merges a component's index.ko.mdx and Api.ko.mdx into one entry, as the English index does.
  • e2e: the no-JavaScript check now expects /ko/components/button to stay Korean, and a new test covers the Korean overview, the button page and Coming Soon pages. The English-fallback checks no longer hard-code a page: getUntranslatedRoutes() (e2e/exported-routes.ts) feeds the no-JavaScript fallback test and the dev route list, so they keep passing as the docs translations (docs(landing): translate the API reference and build errors into Korean #1056–docs(landing): translate theme, Figma integration and migration docs into Korean #1058) land. The fallback test skips once every page is translated.

Closes #812
Closes #813
Closes #814
Closes #815
Closes #816
Closes #817
Closes #818
Closes #819
Closes #820
Closes #821
Closes #822
Closes #823
Closes #824
Closes #825
Closes #826
Closes #827
Closes #828
Closes #829
Closes #830
Closes #831
Closes #832
Closes #833
Closes #834
Closes #835
Closes #836
Closes #837
Closes #838

Verification


요약

컴포넌트 개요와 26개 컴포넌트 레퍼런스 페이지 전체를 한국어로 번역합니다(/ko/components/*). #1059 위에 쌓인 PR입니다.

  • 컴포넌트별: components/[component]/<name>/의 영어 파일 옆에 index.ko.mdx, Api.ko.mdx, page.ko.tsx를 두고, 각각 기존 컴포넌트 레이아웃으로 src/i18n/pages.ts에 등록합니다. 데모는 복사하지 않고 그대로 재사용합니다.
  • 공통 렌더러: 영어 [component]/page.tsx와 한국어 페이지 모두 ComponentDoc을 렌더링하므로 구성, getDemos, MdxCard, MDX 컴포넌트 오버라이드가 같습니다. getComponentMetadata가 두 로케일의 메타데이터(canonical /ko/components/<name>, en/ko/x-default 대체 링크)를 만듭니다. createTranslator로 페이지와 같은 카탈로그를 읽으며, 카탈로그는 src/i18n/messages.ts로 옮겼습니다.
  • 개요: Description.ko.mdx와 page.ko.tsx를 추가합니다. 두 개요 페이지는 모두 ComponentsOverview를 렌더링하고, 그룹 제목은 ComponentsMenu 네임스페이스에서 가져옵니다.
  • 공통 UI: PropsTable 헤더와 빈 상태, 데모 카드의 "코드 보기"/"복사", "준비 중" 안내가 카탈로그를 읽습니다. 영어 문구는 바뀌지 않습니다.
  • 설명 문장과 prop 설명을 번역했습니다. 컴포넌트 이름, prop 이름, 타입, 기본값(Search의 산문형 기본값 magnifier icon 제외), 코드, 링크, 수치는 그대로입니다. 데모 파일의 JSDoc 주석은 데모를 공유하므로 번역하지 않았습니다.
  • Select 페이지(영어·한국어)에 적힌 confirmButtonText 기본값을 바로잡습니다. 실제 기본값 '완료'(packages/components/src/components/Select/index.tsx)가 깨진 문자('D�')로 들어가 있었습니다.
  • script.js: 영어 인덱스처럼 한국어 검색 인덱스도 컴포넌트의 index.ko.mdx와 Api.ko.mdx를 한 항목으로 합칩니다.
  • e2e: JavaScript 없이 /ko/components/button에 접속하면 이제 한국어 페이지에 머무는 것을 확인하고, 한국어 개요·버튼 페이지·준비 중 페이지를 확인하는 테스트를 추가합니다. 영어 대체 검사는 더 이상 특정 페이지를 하드코딩하지 않습니다. getUntranslatedRoutes()(e2e/exported-routes.ts)가 JavaScript 없는 대체 테스트와 dev 라우트 목록에 미번역 라우트를 공급하므로, 문서 번역(docs(landing): translate the API reference and build errors into Korean #1056–docs(landing): translate theme, Figma integration and migration docs into Korean #1058)이 병합돼도 계속 통과합니다. 모든 페이지가 번역되면 대체 테스트는 건너뜁니다.

검증

  • tsc --noEmit, ESLint
  • apps/landing에서 bun run build (140개 라우트)
  • Playwright 정적 테스트: 200개 통과. 실패 1건은 #1059에서도 언급한 오래된 win32 components-benchmark-section-mobile 기준 이미지 때문이며, CI는 Linux 기준 이미지를 사용합니다.
  • playwright.landing-dev.config.ts: 13개 통과

🤖 Generated with Claude Code

owjs3901 and others added 4 commits November 22, 2026 21:42
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add index.ko.mdx, Api.ko.mdx and page.ko.tsx for every component page,
plus Description.ko.mdx and page.ko.tsx for the components overview, and
register them in src/i18n/pages.ts with the components layout. English and
Korean component pages share ComponentDoc and ComponentsOverview; the
PropsTable headers, code-card buttons and Coming Soon notice read the
catalogs. Component names, props, types and defaults stay unchanged, and
the Korean search index merges each component's two MDX files like the
English one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

owjs3901 and others added 2 commits November 22, 2026 22:29
The documented default was mojibake of the real default in packages/components/src/components/Select/index.tsx.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed pages

Hard-coded fallback examples break as each page gains a Korean translation. The no-JavaScript fallback test and the dev route list now pick the remaining untranslated routes, and the fallback test skips once every page is translated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant