|
1 |
| -# Translation |
| 1 | +# Traducción |
2 | 2 |
|
3 |
| -Current progress: https://github.com/reactjs/es.reactjs.org/issues/4 |
| 3 | +Progreso actual: https://github.com/reactjs/es.reactjs.org/issues/4 |
4 | 4 |
|
5 |
| -# Style Guide |
| 5 | +# Guía de estilo |
6 | 6 |
|
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 |
10 | 8 |
|
11 |
| -# Common translations |
| 9 | +Los títulos de las secciones tienen identificadores explícitos de la siguiente manera: |
12 | 10 |
|
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. |
14 | 108 |
|
15 | 109 | | Original word/term | Suggestion |
|
16 | 110 | | ------------------ | ---------- |
|
17 |
| -| array | array | |
| 111 | +| array | *array* | |
18 | 112 | | arrow function | función flecha |
|
| 113 | +| assert | comprobar | |
19 | 114 | | bug | error |
|
20 |
| -| Bundler | *Bundler* | |
21 |
| -| camelCase | *camelCase* | |
| 115 | +| bundler | *bundler* | |
22 | 116 | | callback | *callback* |
|
| 117 | +| camelCase | *camelCase* | |
23 | 118 | | controlled component | componente controlado |
|
24 | 119 | | debugging | depuración |
|
| 120 | +| DOM | DOM | |
25 | 121 | | framework | *framework* |
|
26 |
| -| functional component | componente funcional | |
| 122 | +| function component | componente de función | |
27 | 123 | | hook | *hook* |
|
28 |
| -| key | key | |
| 124 | +| key | *key* | |
29 | 125 | | lazy initialization | inicialización diferida |
|
30 | 126 | | library | biblioteca |
|
31 | 127 | | lowercase | minúscula(s) |
|
32 | 128 | | props | *props* |
|
33 | 129 | | React element | Elemento de React |
|
34 | 130 | | render | renderizar (verb), renderizado (noun)
|
| 131 | +| shallow rendering | renderizado superficial | |
35 | 132 | | state | estado |
|
36 | 133 | | string | *string* |
|
37 | 134 | | template literals | *template literals* |
|
38 | 135 | | uncontrolled component | componente no controlado |
|
39 |
| - |
40 |
| - |
41 |
| - |
|
0 commit comments