Skip to content

Commit 64e2c19

Browse files
authored
Merge branch 'master' into shallow-renderer-spanish-translation
2 parents 0e28af4 + 398aa5e commit 64e2c19

22 files changed

+471
-406
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ The documentation is divided into several sections with a different tone and pur
5757

5858
## Translation
5959

60-
If you are interesting in translating `reactjs.org`, please join the Crowdin.
60+
If you are interesting in translating `reactjs.org`, please see the current translation efforts at [isreacttranslatedyet.com](https://www.isreacttranslatedyet.com/).
6161

62-
* [Crowdin - React](https://crowdin.com/project/react)
62+
63+
If your language does not have a translation and you would like to create one, please follow the instructions at [reactjs.org Translations](https://github.com/reactjs/reactjs.org-translation#translating-reactjsorg).
6364

6465
## Troubleshooting
6566

TRANSLATION.md

Lines changed: 107 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,128 @@
1-
# Translation
1+
# Traducción
22

3-
Current progress: https://github.com/reactjs/es.reactjs.org/issues/4
3+
Progreso actual: https://github.com/reactjs/es.reactjs.org/issues/4
44

5-
# Style Guide
5+
# Guía de estilo
66

7-
- Leave code blocks untranslated. (It is usually OK to translate comments inside them.)
8-
- Links to references (MDN, wikipedia) should go to the Spanish version.
9-
- Use "tú" for the 2nd person singular.
7+
## Identificadores de los títulos
108

11-
# Common translations
9+
Los títulos de las secciones tienen identificadores explícitos de la siguiente manera:
1210

13-
Suggestion on words and terms:
11+
```md
12+
## Try React {#try-react}
13+
```
14+
15+
¡**NO** traduzcas estos identificadores! Se usan para la navegación y no funcionaría correctamente si se hace referencia externamente, o sea:
16+
17+
```md
18+
Consulta la [sección de inicio](/getting-started#try-react) para más información.
19+
```
20+
21+
✅ CORRECTO:
22+
23+
```md
24+
## Prueba React {#try-react}
25+
```
26+
27+
❌ INCORRECTO:
28+
29+
```md
30+
## Prueba React {#prueba-react}
31+
```
32+
33+
Esto hará que el enlace de arriba deje de funcionar.
34+
35+
## Texto en bloques de código
36+
37+
Deja el texto en los bloques de código sin traducir, excepto para los comentarios. Opcionalmente puedes traducir el texto en cadenas, ¡pero cuida de no traducir cadenas que hagan referencia a código!
38+
39+
Ejemplo:
40+
```js
41+
// Example
42+
const element = <h1>Hello, world</h1>;
43+
ReactDOM.render(element, document.getElementById('root'));
44+
```
45+
46+
✅ CORRECTO:
47+
48+
```js
49+
// Ejemplo
50+
const element = <h1>Hello, world</h1>;
51+
ReactDOM.render(element, document.getElementById('root'));
52+
```
53+
54+
✅ TAMBIÉN CORRECTO:
55+
56+
```js
57+
// Ejemplo
58+
const element = <h1>Hola mundo</h1>;
59+
ReactDOM.render(element, document.getElementById('root'));
60+
```
61+
62+
❌ INCORRECTO:
63+
64+
```js
65+
// Ejemplo
66+
const element = <h1>Hola mundo</h1>;
67+
// "root" hace referencia a un indentificador de un elemento.
68+
// NO LO TRADUZCAS
69+
ReactDOM.render(element, document.getElementById('raíz'));
70+
```
71+
72+
❌ DEFINITIVAMENTE INCORRECTO:
73+
74+
```js
75+
// Ejemplo
76+
const elemento = <h1>Hola mundo</h1>;
77+
ReactDOM.hacer(elemento, documento.obtenerElementoPorId('raíz'));
78+
```
79+
80+
## Enlaces externos
81+
82+
Si un enlace externo es a un artículo en un sitio de referencias como [MDN] o [Wikipedia] y existe una versión de este artículo en español con una calidad aceptable, considera sustituir el enlace por el de esa versión.
83+
84+
[MDN]: https://developer.mozilla.org/en-US/
85+
[Wikipedia]: https://en.wikipedia.org/wiki/Main_Page
86+
87+
Ejemplo:
88+
89+
```md
90+
React elements are [immutable](https://en.wikipedia.org/wiki/Immutable_object).
91+
```
92+
93+
✅ BIEN:
94+
95+
```md
96+
Los elementos de React son [inmutables](https://es.wikipedia.org/wiki/Objeto_inmutable).
97+
```
98+
99+
Para enlaces que no tienen un equivalente en español (Stack Overflow, videos de YouTube, etcétera) mantén el enlace en inglés.
100+
101+
## Usted, tú y vos
102+
103+
Para mantener la consistencia y evitar regionalismos decidimos utilizar tú para la segunda persona del singular.
104+
105+
# Traducciones comunes
106+
107+
Aquí hay algunas sugerencias para la traducción de términos de uso común en este tipo de documentación técnica.
14108

15109
| Original word/term | Suggestion |
16110
| ------------------ | ---------- |
17-
| array | array |
111+
| array | *array* |
18112
| arrow function | función flecha |
19113
| assert | comprobar |
20114
| bug | error |
21-
| Bundler | *Bundler* |
115+
| bundler | *bundler* |
116+
| camelCase | *camelCase* |
22117
| callback | *callback* |
23118
| camelCase | *camelCase* |
24119
| controlled component | componente controlado |
25120
| debugging | depuración |
26121
| DOM | DOM |
27122
| framework | *framework* |
28-
| functional component | componente funcional |
123+
| function component | componente de función |
29124
| hook | *hook* |
30-
| key | key |
125+
| key | *key* |
31126
| lazy initialization | inicialización diferida |
32127
| library | biblioteca |
33128
| lowercase | minúscula(s) |
@@ -39,6 +134,3 @@ Suggestion on words and terms:
39134
| string | *string* |
40135
| template literals | *template literals* |
41136
| uncontrolled component | componente no controlado |
42-
43-
44-

content/docs/cdn-links.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
11
---
22
id: cdn-links
3-
title: CDN Links
3+
title: Enlaces CDN
44
permalink: docs/cdn-links.html
55
prev: create-a-new-react-app.html
66
next: hello-world.html
77
---
88

9-
Both React and ReactDOM are available over a CDN.
9+
Ambos React y ReactDOM están disponibles a través de un CDN.
1010

1111
```html
1212
<script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
1313
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
1414
```
1515

16-
The versions above are only meant for development, and are not suitable for production. Minified and optimized production versions of React are available at:
16+
Las versiones anteriores son solo para el uso en desarrollo, y no son adecuadas para el uso en producción. Las versiones de React minimizadas y optimizadas para el uso en producción están disponibles en:
1717

1818
```html
1919
<script crossorigin src="https://unpkg.com/react@16/umd/react.production.min.js"></script>
2020
<script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script>
2121
```
2222

23-
To load a specific version of `react` and `react-dom`, replace `16` with the version number.
23+
Para usar una versión específica de `react` y `react-dom`, cambia el `16` con el número de versión.
2424

25-
### Why the `crossorigin` Attribute? {#why-the-crossorigin-attribute}
25+
### ¿Por qué el atributo `crossorigin`? {#why-the-crossorigin-attribute}
2626

27-
If you serve React from a CDN, we recommend to keep the [`crossorigin`](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes) attribute set:
27+
Si utilizas React desde un CDN, nosotros recomendamos mantener el atributo [`crossorigin`](https://developer.mozilla.org/es/docs/Web/HTML/Atributos_de_configuracion_CORS) puesto:
2828

2929
```html
3030
<script crossorigin src="..."></script>
3131
```
3232

33-
We also recommend to verify that the CDN you are using sets the `Access-Control-Allow-Origin: *` HTTP header:
33+
También recomendamos verificar que el CDN que estás utilizando establece el encabezado HTTP `Access-Control-Allow-Origin: *`:
3434

3535
![Access-Control-Allow-Origin: *](../images/docs/cdn-cors-header.png)
3636

37-
This enables a better [error handling experience](/blog/2017/07/26/error-handling-in-react-16.html) in React 16 and later.
37+
Esto permite una mejor [experiencia en el manejo de errores](/blog/2017/07/26/error-handling-in-react-16.html) en React 16 y versiones posteriores.

content/docs/components-and-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Recapitulemos lo que sucede en este ejemplo:
9090
>
9191
>React trata los componentes que empiezan con letras minúsculas como etiquetas del DOM. Por ejemplo, `<div />` representa una etiqueta div HTML pero `<Welcome />` representa un componente y requiere que `Welcome` esté en scope.
9292
>
93-
> Puedes leer mas sobre el razonamiento detras de esta convención [aquí.](/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized)
93+
> Para saber más sobre el razonamiento detrás de esta convención, puedes consultar [JSX en profundidad](/docs/jsx-in-depth.html#user-defined-components-must-be-capitalized).
9494
9595
## Composición de Componentes {#composing-components}
9696

content/docs/faq-internals.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
id: faq-internals
3-
title: Virtual DOM and Internals
3+
title: DOM virtual y detalles de implementación
44
permalink: docs/faq-internals.html
55
layout: docs
66
category: FAQ
77
---
88

9-
### What is the Virtual DOM? {#what-is-the-virtual-dom}
9+
### ¿Qué es el DOM virtual? {#what-is-the-virtual-dom}
1010

11-
The virtual DOM (VDOM) is a programming concept where an ideal, or "virtual", representation of a UI is kept in memory and synced with the "real" DOM by a library such as ReactDOM. This process is called [reconciliation](/docs/reconciliation.html).
11+
El DOM virtual (VDOM) es un concepto de programación donde una representación ideal o "virtual" de la IU se mantiene en memoria y en sincronía con el DOM "real", mediante una biblioteca como ReactDOM. Este proceso se conoce como [reconciliación](/docs/reconciliation.html).
1212

13-
This approach enables the declarative API of React: You tell React what state you want the UI to be in, and it makes sure the DOM matches that state. This abstracts out the attribute manipulation, event handling, and manual DOM updating that you would otherwise have to use to build your app.
13+
Este enfoque hace posible la API declarativa de React: le dices a React en qué estado quieres que esté la IU, y se hará cargo de llevar el DOM a ese estado. Esto abstrae la manipulación de atributos, manejo de eventos y actualización manual del DOM que de otra manera tendrías que usar para construir tu aplicación.
1414

15-
Since "virtual DOM" is more of a pattern than a specific technology, people sometimes say it to mean different things. In React world, the term "virtual DOM" is usually associated with [React elements](/docs/rendering-elements.html) since they are the objects representing the user interface. React, however, also uses internal objects called "fibers" to hold additional information about the component tree. They may also be considered a part of "virtual DOM" implementation in React.
15+
Ya que "DOM virtual" es más un patrón que una tecnología específica, las personas a veces le dan significados diferentes. En el mundo de React, el término "DOM virtual" es normalmente asociado con [elementos de React](/docs/rendering-elements.html) ya que son objetos representando la interfaz de usuario. Sin embargo, React también usa objetos internos llamados "fibers" para mantener información adicional acerca del árbol de componentes. Éstos pueden ser también considerados como parte de la implementación de "DOM virtual" de React.
1616

17-
### Is the Shadow DOM the same as the Virtual DOM? {#is-the-shadow-dom-the-same-as-the-virtual-dom}
17+
### ¿Es el Shadow DOM lo mismo que el DOM virtual? {#is-the-shadow-dom-the-same-as-the-virtual-dom}
1818

19-
No, they are different. The Shadow DOM is a browser technology designed primarily for scoping variables and CSS in web components. The virtual DOM is a concept implemented by libraries in JavaScript on top of browser APIs.
19+
No, son diferentes. El Shadow DOM es una tecnología de los navegadores diseñada principalmente para limitar el alcance de variables y CSS en componentes web. El DOM virtual es un concepto que implementan bibliotecas en JavaScript por encima de las APIs de los navegadores.
2020

21-
### What is "React Fiber"? {#what-is-react-fiber}
21+
### ¿Qué es "React Fiber"? {#what-is-react-fiber}
2222

23-
Fiber is the new reconciliation engine in React 16. Its main goal is to enable incremental rendering of the virtual DOM. [Read more](https://github.com/acdlite/react-fiber-architecture).
23+
Fiber es el nuevo motor de reconciliación en React 16. Su principal objetivo es permitir el renderizado incremental del DOM virtual. [Leer más](https://github.com/acdlite/react-fiber-architecture).

0 commit comments

Comments
 (0)