Repository navigation
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
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>
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
Translates the components overview and all 26 component reference pages into Korean (
/ko/components/*). Stacked on #1059.index.ko.mdx,Api.ko.mdxandpage.ko.tsxbeside the English files incomponents/[component]/<name>/, each registered insrc/i18n/pages.tswith the existing components layout. Demos are reused, not copied.[component]/page.tsxand the Korean pages both renderComponentDoc, so the composition,getDemos,MdxCardand the MDX component overrides are the same.getComponentMetadatabuilds both locales' metadata (canonical/ko/components/<name>,en/ko/x-defaultalternates). ThroughcreateTranslatorit reads the same catalogs as the pages (moved tosrc/i18n/messages.ts).Description.ko.mdxandpage.ko.tsx. Both overview pages renderComponentsOverview, which takes its group headings from theComponentsMenunamespace.magnifier icondefault in Search), code, links and numbers are unchanged. The JSDoc comments in the demo files are not translated, because the demos are shared.confirmButtonTextdefault 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'sindex.ko.mdxandApi.ko.mdxinto one entry, as the English index does./ko/components/buttonto 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
tsc --noEmit, ESLintbun run buildinapps/landing(140 routes)components-benchmark-section-mobilebaseline also noted in feat(landing): translate the home page and showcase into Korean #1059; CI uses the Linux baselines.playwright.landing-dev.config.ts: 13 passed요약
컴포넌트 개요와 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네임스페이스에서 가져옵니다.magnifier icon제외), 코드, 링크, 수치는 그대로입니다. 데모 파일의 JSDoc 주석은 데모를 공유하므로 번역하지 않았습니다.confirmButtonText기본값을 바로잡습니다. 실제 기본값'완료'(packages/components/src/components/Select/index.tsx)가 깨진 문자('D�')로 들어가 있었습니다.script.js: 영어 인덱스처럼 한국어 검색 인덱스도 컴포넌트의index.ko.mdx와Api.ko.mdx를 한 항목으로 합칩니다./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, ESLintapps/landing에서bun run build(140개 라우트)components-benchmark-section-mobile기준 이미지 때문이며, CI는 Linux 기준 이미지를 사용합니다.playwright.landing-dev.config.ts: 13개 통과🤖 Generated with Claude Code