Skip to content

Commit c894c6a

Browse files
authored
Translate: component titles, descriptions, buttons, tags and more (#716)
1 parent c8d5fcd commit c894c6a

File tree

9 files changed

+26
-26
lines changed

9 files changed

+26
-26
lines changed

src/components/DocsFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function FooterLink({
8080
/>
8181
<span>
8282
<span className="block no-underline text-sm tracking-wide text-secondary dark:text-secondary-dark uppercase font-bold group-focus:text-link dark:group-focus:text-link-dark group-focus:text-opacity-100">
83-
{type}
83+
{type === 'Previous' ? '이전' : '다음'}
8484
</span>
8585
<span className="block text-lg group-hover:underline">{title}</span>
8686
</span>

src/components/Layout/Feedback.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ function SendFeedback({onSubmit}: {onSubmit: () => void}) {
6363
return (
6464
<div className="max-w-xs w-80 lg:w-auto py-3 shadow-lg rounded-lg m-4 bg-wash dark:bg-gray-95 px-4 flex">
6565
<p className="w-full font-bold text-primary dark:text-primary-dark text-lg mr-4">
66-
{isSubmitted ? 'Thank you for your feedback!' : 'Is this page useful?'}
66+
{isSubmitted
67+
? '피드백을 보내주셔서 감사합니다!'
68+
: '이 페이지가 도움이 되었나요?'}
6769
</p>
6870
{!isSubmitted && (
6971
<button

src/components/MDX/Challenges/Challenge.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function Challenge({
5050
className="text-xl text-primary dark:text-primary-dark mb-2 mt-0 font-medium"
5151
id={currentChallenge.id}>
5252
<div className="font-bold block md:inline">
53-
{isRecipes ? 'Example' : 'Challenge'} {currentChallenge.order} of{' '}
53+
{isRecipes ? '예제' : '챌린지'} {currentChallenge.order} of{' '}
5454
{totalChallenges}
5555
<span className="text-primary dark:text-primary-dark">: </span>
5656
</div>
@@ -63,14 +63,14 @@ export function Challenge({
6363
<div>
6464
<Button className="mr-2" onClick={toggleHint} active={showHint}>
6565
<IconHint className="mr-1.5" />{' '}
66-
{showHint ? 'Hide hint' : 'Show hint'}
66+
{showHint ? '힌트 숨기기' : '힌트 보기'}
6767
</Button>
6868
<Button
6969
className="mr-2"
7070
onClick={toggleSolution}
7171
active={showSolution}>
7272
<IconSolution className="mr-1.5" />{' '}
73-
{showSolution ? 'Hide solution' : 'Show solution'}
73+
{showSolution ? '정답 숨기기' : '정답 보기'}
7474
</Button>
7575
</div>
7676
) : (
@@ -80,7 +80,7 @@ export function Challenge({
8080
onClick={toggleSolution}
8181
active={showSolution}>
8282
<IconSolution className="mr-1.5" />{' '}
83-
{showSolution ? 'Hide solution' : 'Show solution'}
83+
{showSolution ? '정답 숨기기' : '정답 보기'}
8484
</Button>
8585
)
8686
)}
@@ -94,7 +94,7 @@ export function Challenge({
9494
)}
9595
onClick={handleClickNextChallenge}
9696
active>
97-
Next {isRecipes ? 'Example' : 'Challenge'}
97+
다음 {isRecipes ? '예제' : '챌린지'}
9898
<IconArrowSmall displayDirection="right" className="block ml-1.5" />
9999
</Button>
100100
)}
@@ -104,21 +104,19 @@ export function Challenge({
104104
{showSolution && (
105105
<div className="mt-6">
106106
<h3 className="text-2xl font-bold text-primary dark:text-primary-dark">
107-
Solution
107+
해설
108108
</h3>
109109
{currentChallenge.solution}
110110
<div className="flex justify-between items-center mt-4">
111-
<Button onClick={() => setShowSolution(false)}>
112-
Close solution
113-
</Button>
111+
<Button onClick={() => setShowSolution(false)}>정답 닫기</Button>
114112
{hasNextChallenge && (
115113
<Button
116114
className={cn(
117115
isRecipes ? 'bg-purple-50' : 'bg-link dark:bg-link-dark'
118116
)}
119117
onClick={handleClickNextChallenge}
120118
active>
121-
Next Challenge
119+
다음 챌린지
122120
<IconArrowSmall
123121
displayDirection="right"
124122
className="block ml-1.5"

src/components/MDX/Challenges/Challenges.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function Challenges({
7878
children,
7979
isRecipes,
8080
noTitle,
81-
titleText = isRecipes ? 'Try out some examples' : 'Try out some challenges',
81+
titleText = isRecipes ? '예제 살펴보기' : '챌린지 도전하기',
8282
titleId = isRecipes ? 'examples' : 'challenges',
8383
}: ChallengesProps) {
8484
const challenges = parseChallengeContents(children);

src/components/MDX/ExpandableCallout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ interface ExpandableCalloutProps {
1818

1919
const variantMap = {
2020
deprecated: {
21-
title: 'Deprecated',
21+
title: '더 이상 사용되지 않습니다',
2222
Icon: IconWarning,
2323
containerClasses: 'bg-red-5 dark:bg-red-60 dark:bg-opacity-20',
2424
textColor: 'text-red-50 dark:text-red-40',
2525
overlayGradient:
2626
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
2727
},
2828
note: {
29-
title: 'Note',
29+
title: '중요합니다!',
3030
Icon: IconNote,
3131
containerClasses:
3232
'bg-green-5 dark:bg-green-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',
@@ -43,7 +43,7 @@ const variantMap = {
4343
'linear-gradient(rgba(249, 247, 243, 0), rgba(249, 247, 243, 1)',
4444
},
4545
wip: {
46-
title: 'Under Construction',
46+
title: '개발중이에요',
4747
Icon: IconNote,
4848
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
4949
textColor: 'text-yellow-50 dark:text-yellow-40',

src/components/MDX/ExpandableExample.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
101101
<span className="mr-1">
102102
<IconChevron displayDirection={isExpanded ? 'up' : 'down'} />
103103
</span>
104-
{isExpanded ? 'Hide Details' : 'Show Details'}
104+
{isExpanded ? '숨기기' : '자세히 보기'}
105105
</Button>
106106
</summary>
107107
<div

src/components/MDX/MDXComponents.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function LearnMore({
113113
<section className="p-8 mt-16 mb-16 flex flex-row shadow-inner-border dark:shadow-inner-border-dark justify-between items-center bg-card dark:bg-card-dark rounded-2xl">
114114
<div className="flex-col">
115115
<h2 className="text-primary font-display dark:text-primary-dark font-bold text-2xl leading-tight">
116-
Ready to learn this topic?
116+
이 주제를 배울 준비가 되셨나요?
117117
</h2>
118118
{children}
119119
{path ? (
@@ -122,7 +122,7 @@ function LearnMore({
122122
label="Read More"
123123
href={path}
124124
type="primary">
125-
Read More
125+
더 보기
126126
<IconNavArrow displayDirection="right" className="inline ml-1" />
127127
</ButtonLink>
128128
) : null}
@@ -173,7 +173,7 @@ function YouWillLearn({
173173
children: any;
174174
isChapter?: boolean;
175175
}) {
176-
let title = isChapter ? 'In this chapter' : 'You will learn';
176+
let title = isChapter ? '이 장에서는' : '학습 내용';
177177
return <SimpleCallout title={title}>{children}</SimpleCallout>;
178178
}
179179

src/components/MDX/Recap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Recap({children}: RecapProps) {
1313
return (
1414
<section>
1515
<H2 isPageAnchor id="recap">
16-
Recap
16+
요약
1717
</H2>
1818
{children}
1919
</section>

src/components/Tag.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ import type {RouteTag} from './Layout/getRouteMeta';
77

88
const variantMap = {
99
foundation: {
10-
name: 'Foundation',
10+
name: '기초',
1111
classes: 'bg-yellow-50 text-white',
1212
},
1313
intermediate: {
14-
name: 'Intermediate',
14+
name: '중급',
1515
classes: 'bg-purple-40 text-white',
1616
},
1717
advanced: {
18-
name: 'Advanced',
18+
name: '심화',
1919
classes: 'bg-green-40 text-white',
2020
},
2121
experimental: {
22-
name: 'Experimental',
22+
name: '실험적',
2323
classes: 'bg-ui-orange text-white',
2424
},
2525
deprecated: {
26-
name: 'Deprecated',
26+
name: '더 이상 사용되지 않음',
2727
classes: 'bg-red-40 text-white',
2828
},
2929
};

0 commit comments

Comments
 (0)