@@ -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 } из { ' ' }
5454 { totalChallenges }
5555 < span className = "text-primary dark:text-primary-dark" > : </ span >
5656 </ div >
@@ -61,16 +61,17 @@ export function Challenge({
6161 < div className = "flex justify-between items-center mt-4" >
6262 { currentChallenge . hint ? (
6363 < div >
64- < Button className = "me-2" onClick = { toggleHint } active = { showHint } >
65- < IconHint className = "me-1.5" /> { ' ' }
66- { showHint ? 'Hide hint' : 'Show hint' }
64+
65+ < Button className = "mr-2" onClick = { toggleHint } active = { showHint } >
66+ < IconHint className = "mr-1.5" /> { ' ' }
67+ { showHint ? 'Скрыть подсказку' : 'Показать подсказку' }
6768 </ Button >
6869 < Button
6970 className = "me-2"
7071 onClick = { toggleSolution }
7172 active = { showSolution } >
72- < IconSolution className = "me -1.5" /> { ' ' }
73- { showSolution ? 'Hide solution ' : 'Show solution ' }
73+ < IconSolution className = "mr -1.5" /> { ' ' }
74+ { showSolution ? 'Скрыть решение ' : 'Показать решение ' }
7475 </ Button >
7576 </ div >
7677 ) : (
@@ -79,12 +80,12 @@ export function Challenge({
7980 className = "me-2"
8081 onClick = { toggleSolution }
8182 active = { showSolution } >
82- < IconSolution className = "me-1.5" /> { ' ' }
83- { showSolution ? 'Hide solution' : 'Show solution' }
83+
84+ < IconSolution className = "mr-1.5" /> { ' ' }
85+ { showSolution ? 'Скрыть решение' : 'Показать решение' }
8486 </ Button >
8587 )
8688 ) }
87-
8889 { hasNextChallenge && (
8990 < Button
9091 className = { cn (
@@ -94,22 +95,22 @@ export function Challenge({
9495 ) }
9596 onClick = { handleClickNextChallenge }
9697 active >
97- Next { isRecipes ? 'Example' : 'Challenge' }
98- < IconArrowSmall displayDirection = "end" className = "block ms-1.5" />
98+ { isRecipes ? 'Следующий' : 'Следующее' } { ' ' }
99+ { isRecipes ? 'Пример' : 'Испытание' }
100+ < IconArrowSmall displayDirection = "right" className = "block ml-1.5" />
99101 </ Button >
100102 ) }
101103 </ div >
102104 { showHint && currentChallenge . hint }
103-
104105 { showSolution && (
105106 < div className = "mt-6" >
106107 < h3 className = "text-2xl font-bold text-primary dark:text-primary-dark" >
107- Solution
108+ Решение
108109 </ h3 >
109110 { currentChallenge . solution }
110111 < div className = "flex justify-between items-center mt-4" >
111112 < Button onClick = { ( ) => setShowSolution ( false ) } >
112- Close solution
113+ Скрыть решение
113114 </ Button >
114115 { hasNextChallenge && (
115116 < Button
@@ -118,7 +119,7 @@ export function Challenge({
118119 ) }
119120 onClick = { handleClickNextChallenge }
120121 active >
121- Next Challenge
122+ Следующее Испытание
122123 < IconArrowSmall
123124 displayDirection = "end"
124125 className = "block ms-1.5"
0 commit comments