Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translated: Components (CodeEditor, CodeExample, ErrorDecoder, MarkdownPage) #164

Merged
merged 4 commits into from
Feb 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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