Skip to content

Commit ed9e576

Browse files
authored
Merge pull request #87 from reactjs/features/challenge
Translate Challenge.tsx
2 parents f01feda + c82a5c5 commit ed9e576

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/components/MDX/Challenges/Challenge.tsx

+8-8
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 ? 'Primer' : 'Izazov'} {currentChallenge.order} od{' '}
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="me-2" onClick={toggleHint} active={showHint}>
6565
<IconHint className="me-1.5" />{' '}
66-
{showHint ? 'Hide hint' : 'Show hint'}
66+
{showHint ? 'Sakrij pomoć' : 'Prikaži pomoć'}
6767
</Button>
6868
<Button
6969
className="me-2"
7070
onClick={toggleSolution}
7171
active={showSolution}>
7272
<IconSolution className="me-1.5" />{' '}
73-
{showSolution ? 'Hide solution' : 'Show solution'}
73+
{showSolution ? 'Sakrij rešenje' : 'Prikaži rešenje'}
7474
</Button>
7575
</div>
7676
) : (
@@ -80,7 +80,7 @@ export function Challenge({
8080
onClick={toggleSolution}
8181
active={showSolution}>
8282
<IconSolution className="me-1.5" />{' '}
83-
{showSolution ? 'Hide solution' : 'Show solution'}
83+
{showSolution ? 'Sakrij rešenje' : 'Prikaži rešenje'}
8484
</Button>
8585
)
8686
)}
@@ -94,7 +94,7 @@ export function Challenge({
9494
)}
9595
onClick={handleClickNextChallenge}
9696
active>
97-
Next {isRecipes ? 'Example' : 'Challenge'}
97+
Sledeći {isRecipes ? 'primer' : 'izazov'}
9898
<IconArrowSmall displayDirection="end" className="block ms-1.5" />
9999
</Button>
100100
)}
@@ -104,12 +104,12 @@ 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+
Rešenje
108108
</h3>
109109
{currentChallenge.solution}
110110
<div className="flex justify-between items-center mt-4">
111111
<Button onClick={() => setShowSolution(false)}>
112-
Close solution
112+
Zatvori rešenje
113113
</Button>
114114
{hasNextChallenge && (
115115
<Button
@@ -118,7 +118,7 @@ export function Challenge({
118118
)}
119119
onClick={handleClickNextChallenge}
120120
active>
121-
Next Challenge
121+
Sledeći izazov
122122
<IconArrowSmall
123123
displayDirection="end"
124124
className="block ms-1.5"

src/components/MDX/ExpandableExample.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function ExpandableExample({children, excerpt, type}: ExpandableExampleProps) {
101101
<span className="me-1">
102102
<IconChevron displayDirection={isExpanded ? 'up' : 'down'} />
103103
</span>
104-
{isExpanded ? 'Sakrij Detaljnije' : 'Prikaži detaljnije'}
104+
{isExpanded ? 'Sakrij detaljnije' : 'Prikaži detaljnije'}
105105
</Button>
106106
</summary>
107107
<div

0 commit comments

Comments
 (0)