Skip to content

Commit fe69277

Browse files
alstn2468gnujoow
andauthored
Translate component text to korean (#383)
* feat: YouWillLearn 컴포넌트 번역 추가 * feat: ExpandableExample 컴포넌트 번역 추가 * feat: CustomPreset 컴포넌트 번역 추가 * feat: LearnMore 컴포넌트 번역 추가 * feat: ExpandableCallout 컴포넌트 번역 추가 * feat: Challenges 컴포넌트 번역 추가 * feat: 오른쪽 목차 관련 번역 추가 * feat: Recap 컴포넌트 번역 추가 * fix: 자연스럽게 읽히도록 단어 수정 * feat: label도 번역 데이터로 변경 * feat: Tag 컴포넌트 name 속성 번역 추가 * feat: YouWillLearnCard 컴포넌트 번역 추가 * chore: lint:fix, prettier 명령어 실행 * chore: fix typo at Tag compoennt variantMap * chore: fix typo at Challenges component * Update beta/src/components/MDX/Sandpack/CustomPreset.tsx Co-authored-by: KIM, WOOJUNG <gnujoow@users.noreply.github.com>
1 parent a531f6c commit fe69277

File tree

10 files changed

+32
-30
lines changed

10 files changed

+32
-30
lines changed

beta/src/components/Layout/MarkdownPage.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,21 @@ export function MarkdownPage<
4444
return {
4545
url: '#challenges',
4646
depth: 0,
47-
text: 'Challenges',
47+
text: '도전',
4848
};
4949
}
5050
if (child.props.mdxType === 'Recipes') {
5151
return {
5252
url: '#recipes',
5353
depth: 0,
54-
text: 'Recipes',
54+
text: '레시피',
5555
};
5656
}
5757
if (child.props.mdxType === 'Recap') {
5858
return {
5959
url: '#recap',
6060
depth: 0,
61-
text: 'Recap',
61+
text: '요약',
6262
};
6363
}
6464
return {
@@ -73,7 +73,7 @@ export function MarkdownPage<
7373
if (anchors.length > 0) {
7474
anchors.unshift({
7575
depth: 1,
76-
text: 'Overview',
76+
text: '개요',
7777
url: '#',
7878
});
7979
}

beta/src/components/Layout/Toc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function Toc({
2626
maxWidth: 'inherit',
2727
}}>
2828
<h2 className="mb-3 lg:mb-3 uppercase tracking-wide font-bold text-sm text-secondary dark:text-secondary-dark px-4 w-full">
29-
On this page
29+
목차
3030
</h2>
3131
<div className="toc h-full overflow-y-auto pl-4">
3232
<ul className="space-y-2 pb-16">

beta/src/components/MDX/Challenges/Challenges.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export function Challenges({children, isRecipes}: ChallengesProps) {
117117
'text-3xl mb-2 leading-10 relative',
118118
isRecipes ? 'text-purple-50 dark:text-purple-30' : 'text-link'
119119
)}>
120-
{isRecipes ? 'Try out some recipes' : 'Try out some challenges'}
120+
{isRecipes
121+
? '몇 가지 레시피를 시도해 보세요.'
122+
: '몇 가지 도전을 시도해 보세요.'}
121123
</H2>
122124
{challenges.length > 1 && (
123125
<Navigation
@@ -145,14 +147,14 @@ export function Challenges({children, isRecipes}: ChallengesProps) {
145147
<div>
146148
<Button className="mr-2" onClick={toggleHint} active={showHint}>
147149
<IconHint className="mr-1.5" />{' '}
148-
{showHint ? 'Hide hint' : 'Show hint'}
150+
{showHint ? '힌트 숨기기' : '힌트 보기'}
149151
</Button>
150152
<Button
151153
className="mr-2"
152154
onClick={toggleSolution}
153155
active={showSolution}>
154156
<IconSolution className="mr-1.5" />{' '}
155-
{showSolution ? 'Hide solution' : 'Show solution'}
157+
{showSolution ? '해결책 숨기기' : '해결책 보기'}
156158
</Button>
157159
</div>
158160
) : (
@@ -162,7 +164,7 @@ export function Challenges({children, isRecipes}: ChallengesProps) {
162164
onClick={toggleSolution}
163165
active={showSolution}>
164166
<IconSolution className="mr-1.5" />{' '}
165-
{showSolution ? 'Hide solution' : 'Show solution'}
167+
{showSolution ? '해결책 숨기기' : '해결책 보기'}
166168
</Button>
167169
)
168170
)}
@@ -179,7 +181,7 @@ export function Challenges({children, isRecipes}: ChallengesProps) {
179181
setShowSolution(false);
180182
}}
181183
active>
182-
Next {isRecipes ? 'Recipe' : 'Challenge'}
184+
다음 {isRecipes ? '레시피' : '도전'}
183185
<IconArrowSmall
184186
displayDirection="right"
185187
className="block ml-1.5"
@@ -192,12 +194,12 @@ export function Challenges({children, isRecipes}: ChallengesProps) {
192194
{showSolution && (
193195
<div className="mt-6">
194196
<h3 className="text-2xl font-bold text-primary dark:text-primary-dark">
195-
Solution
197+
해결책
196198
</h3>
197199
{currentChallenge?.solution}
198200
<div className="flex justify-between items-center mt-4">
199201
<Button onClick={() => setShowSolution(false)}>
200-
Close solution
202+
해결책 닫기
201203
</Button>
202204
{nextChallenge && (
203205
<Button
@@ -215,7 +217,7 @@ export function Challenges({children, isRecipes}: ChallengesProps) {
215217
}
216218
}}
217219
active>
218-
Next Challenge
220+
다음 도전
219221
<IconArrowSmall
220222
displayDirection="right"
221223
className="block ml-1.5"

beta/src/components/MDX/ExpandableCallout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface ExpandableCalloutProps {
1616

1717
const variantMap = {
1818
note: {
19-
title: 'Note',
19+
title: '주의',
2020
Icon: IconNote,
2121
containerClasses:
2222
'bg-green-5 dark:bg-green-60 dark:bg-opacity-20 text-primary dark:text-primary-dark text-lg',
@@ -25,7 +25,7 @@ const variantMap = {
2525
'linear-gradient(rgba(245, 249, 248, 0), rgba(245, 249, 248, 1)',
2626
},
2727
gotcha: {
28-
title: 'Gotcha',
28+
title: '알겠다!',
2929
Icon: IconGotcha,
3030
containerClasses: 'bg-yellow-5 dark:bg-yellow-60 dark:bg-opacity-20',
3131
textColor: 'text-yellow-50 dark:text-yellow-40',

beta/src/components/MDX/ExpandableExample.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ function ExpandableExample({
4141
{isDeepDive && (
4242
<>
4343
<IconDeepDive className="inline mr-2 dark:text-purple-30 text-purple-40" />
44-
Deep Dive
44+
깊게 분석하기
4545
</>
4646
)}
4747
{isExample && (
4848
<>
4949
<IconCodeBlock className="inline mr-2 dark:text-yellow-30 text-yellow-50" />
50-
Example
50+
예시
5151
</>
5252
)}
5353
</h5>
@@ -69,7 +69,7 @@ function ExpandableExample({
6969
<span className="mr-1">
7070
<IconChevron displayDirection={isExpanded ? 'up' : 'down'} />
7171
</span>
72-
{isExpanded ? 'Hide Details' : 'Show Details'}
72+
{isExpanded ? '디테일 숨기기' : '디테일 보기'}
7373
</Button>
7474
</div>
7575
<div

beta/src/components/MDX/MDXComponents.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@ function LearnMore({
9191
<section className="p-8 mt-16 mb-16 flex flex-row shadow-inner justify-between items-center bg-card dark:bg-card-dark rounded-lg">
9292
<div className="flex-col">
9393
<h2 className="text-primary dark:text-primary-dark font-bold text-2xl leading-tight">
94-
Ready to learn this topic?
94+
이 주제를 배울 준비가 되었나요?
9595
</h2>
9696
{children}
9797
{path ? (
9898
<ButtonLink
9999
className="mt-1"
100-
label="Read More"
100+
label="더 읽어보기"
101101
href={path}
102102
type="primary">
103-
Read More
103+
더 읽어보기
104104
<IconNavArrow displayDirection="right" className="inline ml-1" />
105105
</ButtonLink>
106106
) : null}
@@ -136,7 +136,7 @@ function MathI({children}: {children: any}) {
136136
}
137137

138138
function YouWillLearn({children}: {children: any}) {
139-
return <SimpleCallout title="You will learn">{children}</SimpleCallout>;
139+
return <SimpleCallout title="배우게 될 것">{children}</SimpleCallout>;
140140
}
141141

142142
// TODO: typing.

beta/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>

beta/src/components/MDX/Sandpack/CustomPreset.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function CustomPreset({
9999
className="inline mr-1.5 text-xl"
100100
displayDirection={isExpanded ? 'up' : 'down'}
101101
/>
102-
{isExpanded ? 'Show less' : 'Show more'}
102+
{isExpanded ? '숨기기' : '더 보기'}
103103
</span>
104104
</button>
105105
)}

beta/src/components/MDX/YouWillLearnCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function YouWillLearnCard({title, path, children}: YouWillLearnCardProps) {
2828
type="primary"
2929
size="md"
3030
label={title}>
31-
Read More
31+
더 읽어보기
3232
<IconNavArrow displayDirection="right" className="inline ml-1" />
3333
</ButtonLink>
3434
</div>

beta/src/components/Tag.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ import {RouteTag} from './Layout/useRouteMeta';
88

99
const variantMap = {
1010
foundation: {
11-
name: 'Foundation',
11+
name: '기초',
1212
classes: 'bg-yellow-50 text-white',
1313
},
1414
intermediate: {
15-
name: 'Intermediate',
15+
name: '중급',
1616
classes: 'bg-purple-40 text-white',
1717
},
1818
advanced: {
19-
name: 'Advanced',
19+
name: '고급',
2020
classes: 'bg-green-40 text-white',
2121
},
2222
experimental: {
23-
name: 'Experimental',
23+
name: '실험적인',
2424
classes: 'bg-ui-orange text-white',
2525
},
2626
deprecated: {
27-
name: 'Deprecated',
27+
name: '사용되지 않는',
2828
classes: 'bg-red-40 text-white',
2929
},
3030
};

0 commit comments

Comments
 (0)