Repository navigation
Conversation
Add page.ko.tsx beside the home and showcase pages and register / and
/showcase in src/i18n/pages.ts. The home sections take an optional locale
and read their copy with getTranslations({ locale }); English renders the
same text as before. The showcase list moves to a shared module so both
pages render it, and the segment labels translate while the filter values
stay unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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:
|
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 home page (
/ko) and the showcase (/ko/showcase) into Korean. Stacked on #1055, which adds the message catalogs.src/app/(detail)/page.ko.tsxsits besidepage.tsxand is registered as/insrc/i18n/pages.ts.TopBanner,GetStartedButton,Bench,DevupUICard,OtherCard,FeatureandDiscordtake an optionallocale(defaulten) and read their copy withgetTranslations({ locale })from the newHomenamespace. The benchmark caption uses rich text so its run and commit links, versions and numbers stay the same. Product names, the "Zero Config / Zero FOUC / Zero Runtime" slogan, Star/Sponsor and external links are unchanged.showcase/page.ko.tsxregistered as/showcase. The project list moves tocomponents/showcase/showcase-list.tsso both pages share it. The segment labels and "Visit Site" translate through theShowcasenamespace; theAll/Website/Mobilefilter values stay as they are./kocanonical URLs. The English home and showcase metadata gain theen/ko/x-defaultlanguage alternates, as the translated docs pages already have.getTranslatedRoutesalso picks uppage.ko.tsxand skips the dynamic[component]segment. The checks that/koredirects to English now expect the Korean home, and a new test covers the Korean home and showcase.feat/ko-shellandfeat/ko-hometo thepull_requestbranches inpublish.ymlso the stacked PRs get checks. Remove them once the stack merges.Closes #811
Closes #878
Verification
tsc --noEmit, ESLintbun run buildinapps/landingcomponents-benchmark-section-mobile, is a stale win32 baseline that still shows the older benchmark caption and numbers. CI compares against the Linux baselines.요약
홈(
/ko)과 쇼케이스(/ko/showcase)를 한국어로 번역합니다. 메시지 카탈로그를 추가하는 #1055 위에 쌓인 PR입니다.src/app/(detail)/page.ko.tsx를page.tsx옆에 두고src/i18n/pages.ts에/로 등록합니다.TopBanner,GetStartedButton,Bench,DevupUICard,OtherCard,Feature,Discord는 선택적locale(기본값en)을 받아 새Home네임스페이스에서getTranslations({ locale })로 문구를 읽습니다. 벤치마크 설명은 리치 텍스트를 사용해 실행·커밋 링크, 버전, 수치를 그대로 유지합니다. 제품 이름, "Zero Config / Zero FOUC / Zero Runtime" 슬로건, Star/Sponsor, 외부 링크는 바꾸지 않습니다.showcase/page.ko.tsx를/showcase로 등록합니다. 두 페이지가 함께 쓰도록 프로젝트 목록을components/showcase/showcase-list.ts로 옮깁니다. 구분 탭 라벨과 "사이트 방문"은Showcase네임스페이스로 번역하고,All/Website/Mobile필터 값은 그대로 둡니다./kocanonical URL을 포함한 번역된 메타데이터를 추가합니다. 영어 홈과 쇼케이스 메타데이터에는 번역된 문서 페이지처럼en/ko/x-default언어 대체 링크를 추가합니다.getTranslatedRoutes가page.ko.tsx도 인식하고 동적[component]세그먼트는 건너뜁니다./ko가 영어로 리디렉션된다고 보던 검사는 이제 한국어 홈을 기대하고, 한국어 홈과 쇼케이스를 확인하는 테스트를 추가합니다.publish.yml의pull_request브랜치에feat/ko-shell,feat/ko-home을 추가합니다. 스택이 병합되면 제거해야 합니다.Closes #811
Closes #878
검증
tsc --noEmit, ESLintapps/landing에서bun run buildcomponents-benchmark-section-mobile1건은 예전 벤치마크 설명과 수치가 남아 있는 오래된 win32 기준 이미지 때문입니다. CI는 Linux 기준 이미지와 비교합니다.🤖 Generated with Claude Code