@@ -72,7 +72,7 @@ const parseChallengeContents = (
7272export function Challenges ( {
7373 children,
7474 isRecipes,
75- titleText = isRecipes ? 'Try out some examples ' : 'Try out some challenges ' ,
75+ titleText = isRecipes ? 'Prueba algunos ejemplos ' : 'Prueba algunos desafíos ' ,
7676 titleId = isRecipes ? 'examples' : 'challenges' ,
7777} : ChallengesProps ) {
7878 const challenges = parseChallengeContents ( children ) ;
@@ -143,8 +143,8 @@ export function Challenges({
143143 < div key = { activeChallenge } >
144144 < h3 className = "text-xl text-primary dark:text-primary-dark mb-2" >
145145 < div className = "font-bold block md:inline" >
146- { isRecipes ? 'Example ' : 'Challenge ' } { currentChallenge . order } { ' ' }
147- of { challenges . length }
146+ { isRecipes ? 'Ejemplo ' : 'Desafío ' } { currentChallenge . order } of { ' ' }
147+ { challenges . length }
148148 < span className = "text-primary dark:text-primary-dark" > : </ span >
149149 </ div >
150150 { currentChallenge . name }
@@ -156,14 +156,14 @@ export function Challenges({
156156 < div >
157157 < Button className = "mr-2" onClick = { toggleHint } active = { showHint } >
158158 < IconHint className = "mr-1.5" /> { ' ' }
159- { showHint ? 'Hide hint ' : 'Show hint ' }
159+ { showHint ? 'Ocultar pista ' : 'Mostrar pista ' }
160160 </ Button >
161161 < Button
162162 className = "mr-2"
163163 onClick = { toggleSolution }
164164 active = { showSolution } >
165165 < IconSolution className = "mr-1.5" /> { ' ' }
166- { showSolution ? 'Hide solution ' : 'Show solution ' }
166+ { showSolution ? 'Ocultar solución ' : 'Mostrar solución ' }
167167 </ Button >
168168 </ div >
169169 ) : (
@@ -173,7 +173,7 @@ export function Challenges({
173173 onClick = { toggleSolution }
174174 active = { showSolution } >
175175 < IconSolution className = "mr-1.5" /> { ' ' }
176- { showSolution ? 'Hide solution ' : 'Show solution ' }
176+ { showSolution ? 'Ocultar solución ' : 'Mostrar solución ' }
177177 </ Button >
178178 )
179179 ) }
@@ -190,7 +190,7 @@ export function Challenges({
190190 setShowSolution ( false ) ;
191191 } }
192192 active >
193- Next { isRecipes ? 'Example ' : 'Challenge ' }
193+ Próximo { isRecipes ? 'ejemplo ' : 'desafío ' }
194194 < IconArrowSmall
195195 displayDirection = "right"
196196 className = "block ml-1.5"
@@ -203,12 +203,12 @@ export function Challenges({
203203 { showSolution && (
204204 < div className = "mt-6" >
205205 < h3 className = "text-2xl font-bold text-primary dark:text-primary-dark" >
206- Solution
206+ Solución
207207 </ h3 >
208208 { currentChallenge . solution }
209209 < div className = "flex justify-between items-center mt-4" >
210210 < Button onClick = { ( ) => setShowSolution ( false ) } >
211- Close solution
211+ Cerrar solución
212212 </ Button >
213213 { nextChallenge && (
214214 < Button
@@ -226,7 +226,7 @@ export function Challenges({
226226 }
227227 } }
228228 active >
229- Next Challenge
229+ Próximo desafío
230230 < IconArrowSmall
231231 displayDirection = "right"
232232 className = "block ml-1.5"
0 commit comments