Skip to content

Commit

Permalink
Translated: Components (CodeEditor, CodeExample, ErrorDecoder, Markdo…
Browse files Browse the repository at this point in the history
…wnPage) (#164)
  • Loading branch information
icarlossz authored and carburo committed Feb 17, 2019
1 parent 5c5ccaa commit 5df422f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
12 changes: 6 additions & 6 deletions src/components/CodeEditor/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ class CodeEditor extends Component {
if (showBabelErrorMessage) {
errorMessage = (
<span>
Babel could not be loaded.
Babel no pudo ser cargado.
<br />
<br />
This can be caused by an ad blocker. If you're using one, consider
adding reactjs.org to the whitelist so the live code examples will
work.
Esto puede ser causado por un bloqueador de anuncios. Si estás usando
uno, considera añadir reactjs.org a la lista blanca y así los ejemplos
con código en vivo funcionarán.
</span>
);
} else if (error != null) {
Expand Down Expand Up @@ -99,7 +99,7 @@ class CodeEditor extends Component {
color: colors.white,
}}>
<MetaTitle onDark={true}>
Live JSX Editor
Editor en vivo de JSX
<label
css={{
fontSize: 14,
Expand Down Expand Up @@ -200,7 +200,7 @@ class CodeEditor extends Component {
padding: '0 10px',
backgroundColor: colors.divider,
}}>
<MetaTitle>Result</MetaTitle>
<MetaTitle>Resultado</MetaTitle>
</div>
<div
id={containerNodeID}
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeExample/CodeExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CodeExample extends Component {
{loaded ? (
<CodeEditor code={code} containerNodeID={containerNodeID} />
) : (
<h4>Loading code example...</h4>
<h4>Cargando código de ejemplo...</h4>
)}
</div>
);
Expand Down
8 changes: 5 additions & 3 deletions src/components/ErrorDecoder/ErrorDecoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,18 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
if (!code) {
return (
<p>
When you encounter an error, you'll receive a link to this page for that
specific error and we'll show you the full error text.
Cuando encuentres un error, recibirás un enlace a esta página para ese
error específico y te mostraremos el texto completo del error.
</p>
);
}

return (
<div>
<p>
<b>The full text of the error you just encountered is:</b>
<b>
El texto completo del error que acabas de encontrar es el siguiente:
</b>
</p>
<code>
<b>{urlify(errorMsg)}</b>
Expand Down

0 comments on commit 5df422f

Please sign in to comment.