From 104cff43a6f76ba175021ed2b49cbb640b743bff Mon Sep 17 00:00:00 2001 From: Lauro Silva Date: Sun, 1 Dec 2019 13:14:28 -0800 Subject: [PATCH 1/3] Modified GUIA.md and README.md --- GUIA.md | 2 +- README.md | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/GUIA.md b/GUIA.md index 371cec1..61bbb1e 100644 --- a/GUIA.md +++ b/GUIA.md @@ -105,4 +105,4 @@ Aquí hay algunas sugerencias para la traducción de términos de uso común en | template literals | *template literals* | | uncontrolled component | componente no controlado | -Si desea agregar algo que falta, abra un [Issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new). \ No newline at end of file +Si desea agregar algo que falta, abra un [issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new). \ No newline at end of file diff --git a/README.md b/README.md index 58c98ee..657b1fd 100644 --- a/README.md +++ b/README.md @@ -22,11 +22,10 @@ [¡Contribuir!](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/CONTRIBUTING.md) | [¡Preguntas!](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new) - --- -:wave: Este repositorio es mantenido por [@laurosilvacom](https://twitter.com/laurosilvacom). ¡Estoy tan feliz de que quieras probar TypeScript con React! Si ve que algo anda mal o falta, ¡presente un [Issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new)! :+1: +:wave: Este repositorio es mantenido por [@laurosilvacom](https://twitter.com/laurosilvacom). ¡Estoy tan feliz de que quieras probar TypeScript con React! Si ve que algo anda mal o falta, ¡presente un [*Issue*](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new)! :+1: El repositorio original se puede encontrar [aquí](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet) (inglés). @@ -35,7 +34,9 @@ El repositorio original se puede encontrar [aquí](https://github.com/typescript **¿Quieres contribuir ayudando a traducir estos recursos?** -**¡Increíble!** Primero, revise este *[Issue]()* que describe el progreso y lea la [Guía de Estilo]() para traducir. +**¡Increíble!** Primero, revise este *[Issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/2)* que describe el progreso y lea la [Guía de Estilo](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/blob/master/GUIA.md) para traducir. ---- \ No newline at end of file +--- + + \ No newline at end of file From c21a215fe725e778ea1455b64eb71e79475365d5 Mon Sep 17 00:00:00 2001 From: "prettifier[bot]" <45367598+prettifier[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2019 21:14:36 +0000 Subject: [PATCH 2/3] Prettify GUIA.md --- GUIA.md | 79 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 39 deletions(-) diff --git a/GUIA.md b/GUIA.md index 61bbb1e..2de5d26 100644 --- a/GUIA.md +++ b/GUIA.md @@ -5,10 +5,11 @@ 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! Ejemplo: + ```js // Example const element =

Hello, world

; -ReactDOM.render(element, document.getElementById('root')); +ReactDOM.render(element, document.getElementById("root")); ``` ✅ CORRECTO: @@ -16,7 +17,7 @@ ReactDOM.render(element, document.getElementById('root')); ```js // Ejemplo const element =

Hello, world

; -ReactDOM.render(element, document.getElementById('root')); +ReactDOM.render(element, document.getElementById("root")); ``` ✅ TAMBIÉN CORRECTO: @@ -24,7 +25,7 @@ ReactDOM.render(element, document.getElementById('root')); ```js // Ejemplo const element =

Hola mundo

; -ReactDOM.render(element, document.getElementById('root')); +ReactDOM.render(element, document.getElementById("root")); ``` ❌ INCORRECTO: @@ -34,7 +35,7 @@ ReactDOM.render(element, document.getElementById('root')); const element =

Hola mundo

; // "root" hace referencia a un indentificador de un elemento. // NO LO TRADUZCAS -ReactDOM.render(element, document.getElementById('raíz')); +ReactDOM.render(element, document.getElementById("raíz")); ``` ❌ DEFINITIVAMENTE INCORRECTO: @@ -42,15 +43,15 @@ ReactDOM.render(element, document.getElementById('raíz')); ```js // Ejemplo const elemento =

Hola mundo

; -ReactDOM.hacer(elemento, documento.obtenerElementoPorId('raíz')); +ReactDOM.hacer(elemento, documento.obtenerElementoPorId("raíz")); ``` ## Enlaces externos 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. -[MDN]: https://developer.mozilla.org/en-US/ -[Wikipedia]: https://en.wikipedia.org/wiki/Main_Page +[mdn]: https://developer.mozilla.org/en-US/ +[wikipedia]: https://en.wikipedia.org/wiki/Main_Page Ejemplo: @@ -74,35 +75,35 @@ Para mantener la consistencia y evitar regionalismos decidimos utilizar tú para Aquí hay algunas sugerencias para la traducción de términos de uso común en este tipo de documentación técnica. -| Original word/term | Suggestion | -| ------------------ | ---------- | -| array | *array* | -| arrow function | función flecha | -| assert | comprobar | -| bug | error | -| bundler | *bundler* | -| callback | *callback* | -| camelCase | *camelCase* | -| controlled component | componente controlado | -| Cheatsheet | *Cheatsheet* | -| debugging | depuración | -| DOM | DOM | -| framework | *framework* | -| function component | componente de función | -| hook | *hook* | -| key | *key* | -| lazy initialization | inicialización diferida | -| library | biblioteca | -| lowercase | minúscula(s) | -| props | *props* | -| React element | Elemento de React | -| Type | *tipo* | -| Types | *tipos* | -| render | renderizar (verb), renderizado (noun) -| shallow rendering | renderizado superficial | -| state | estado | -| string | *string* | -| template literals | *template literals* | -| uncontrolled component | componente no controlado | - -Si desea agregar algo que falta, abra un [issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new). \ No newline at end of file +| Original word/term | Suggestion | +| ---------------------- | ------------------------------------- | +| array | _array_ | +| arrow function | función flecha | +| assert | comprobar | +| bug | error | +| bundler | _bundler_ | +| callback | _callback_ | +| camelCase | _camelCase_ | +| controlled component | componente controlado | +| Cheatsheet | _Cheatsheet_ | +| debugging | depuración | +| DOM | DOM | +| framework | _framework_ | +| function component | componente de función | +| hook | _hook_ | +| key | _key_ | +| lazy initialization | inicialización diferida | +| library | biblioteca | +| lowercase | minúscula(s) | +| props | _props_ | +| React element | Elemento de React | +| Type | _tipo_ | +| Types | _tipos_ | +| render | renderizar (verb), renderizado (noun) | +| shallow rendering | renderizado superficial | +| state | estado | +| string | _string_ | +| template literals | _template literals_ | +| uncontrolled component | componente no controlado | + +Si desea agregar algo que falta, abra un [issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new). From 913e4fb75d623d39714e31179aef32d582e791fd Mon Sep 17 00:00:00 2001 From: "prettifier[bot]" <45367598+prettifier[bot]@users.noreply.github.com> Date: Sun, 1 Dec 2019 21:14:37 +0000 Subject: [PATCH 3/3] Prettify README.md --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 657b1fd..6f1f051 100644 --- a/README.md +++ b/README.md @@ -22,21 +22,18 @@ [¡Contribuir!](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/CONTRIBUTING.md) | [¡Preguntas!](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new) - --- -:wave: Este repositorio es mantenido por [@laurosilvacom](https://twitter.com/laurosilvacom). ¡Estoy tan feliz de que quieras probar TypeScript con React! Si ve que algo anda mal o falta, ¡presente un [*Issue*](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new)! :+1: +:wave: Este repositorio es mantenido por [@laurosilvacom](https://twitter.com/laurosilvacom). ¡Estoy tan feliz de que quieras probar TypeScript con React! Si ve que algo anda mal o falta, ¡presente un [_Issue_](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/new)! :+1: El repositorio original se puede encontrar [aquí](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet) (inglés). - --- **¿Quieres contribuir ayudando a traducir estos recursos?** -**¡Increíble!** Primero, revise este *[Issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/2)* que describe el progreso y lea la [Guía de Estilo](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/blob/master/GUIA.md) para traducir. - +**¡Increíble!** Primero, revise este _[Issue](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/issues/2)_ que describe el progreso y lea la [Guía de Estilo](https://github.com/typescript-cheatsheets/react-typescript-cheatsheet-es/blob/master/GUIA.md) para traducir. --- - \ No newline at end of file +