From 9f2595ec0b13d1d1133d56ad1dc4fa09703b9c9c Mon Sep 17 00:00:00 2001 From: camperbot Date: Fri, 24 Sep 2021 06:31:25 -0700 Subject: [PATCH] chore(i18n,curriculum): update translations (#43556) --- ...element-horizontally-using-the-margin-property.md | 2 +- ...element-horizontally-using-the-margin-property.md | 2 +- ...element-horizontally-using-the-margin-property.md | 2 +- .../arguments-optional.md | 4 ++-- .../bootstrap/make-images-mobile-responsive.md | 12 ++++++------ .../react/render-conditionally-from-props.md | 2 +- .../add-a-hover-effect-to-a-d3-element.md | 10 +++++----- ...element-horizontally-using-the-margin-property.md | 2 +- ...element-horizontally-using-the-margin-property.md | 2 +- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md b/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md index 9efbaf6f00..c08009540c 100644 --- a/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md +++ b/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md @@ -22,7 +22,7 @@ dashedName: center-an-element-horizontally-using-the-margin-property `div` 應有一個 `margin`,設置爲 `auto`。 ```js -assert(code.match(/margin:\s*?auto;/g)); +assert(new __helpers.CSSHelp(document).getStyle('div')?.margin === 'auto'); ``` # --seed-- diff --git a/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md b/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md index e8dd42839e..afe53122df 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md @@ -22,7 +22,7 @@ dashedName: center-an-element-horizontally-using-the-margin-property `div` 应有一个 `margin`,设置为 `auto`。 ```js -assert(code.match(/margin:\s*?auto;/g)); +assert(new __helpers.CSSHelp(document).getStyle('div')?.margin === 'auto'); ``` # --seed-- diff --git a/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md b/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md index 24ffb95716..9503b0940a 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/applied-visual-design/center-an-element-horizontally-using-the-margin-property.md @@ -22,7 +22,7 @@ Centra el `div` en la página agregando una propiedad `margin` con un valor de ` El `div` debe tener un `margin` establecido en `auto`. ```js -assert(code.match(/margin:\s*?auto;/g)); +assert(new __helpers.CSSHelp(document).getStyle('div')?.margin === 'auto'); ``` # --seed-- diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md index d63ef92ad9..b509410e06 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md +++ b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/arguments-optional.md @@ -42,10 +42,10 @@ assert.deepEqual(addTogether(23, 30), 53); assert.deepEqual(addTogether(5)(7), 12); ``` -`addTogether("http://bit.ly/IqT6zt")` debe devolver `undefined`. +`addTogether("https://www.youtube.com/watch?v=dQw4w9WgXcQ")` debe devolver `undefined`. ```js -assert.isUndefined(addTogether('http://bit.ly/IqT6zt')); +assert.isUndefined(addTogether('https://www.youtube.com/watch?v=dQw4w9WgXcQ')); ``` `addTogether(2, "3")` debe devolver `undefined`. diff --git a/curriculum/challenges/espanol/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md b/curriculum/challenges/espanol/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md index 624e699f94..bb5b3562c3 100644 --- a/curriculum/challenges/espanol/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md +++ b/curriculum/challenges/espanol/03-front-end-development-libraries/bootstrap/make-images-mobile-responsive.md @@ -8,7 +8,7 @@ dashedName: make-images-mobile-responsive # --description-- -Primero, agrega una nueva imagen debajo de la existente. Establece su atributo `src` a `https://bit.ly/fcc-running-cats`. +Primero, agrega una nueva imagen debajo de la existente. Establece su atributo `src` a `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`. Sería genial si esta imagen pudiera tener exactamente el ancho de la pantalla de nuestro teléfono. @@ -34,10 +34,10 @@ Tu nueva imagen no debe tener la clase `smaller-image`. assert(!$('img:eq(1)').hasClass('smaller-image')); ``` -Tu nueva imagen debe tener el atributo `src` con el valor `https://bit.ly/fcc-running-cats`. +Tu nueva imagen debe tener el atributo `src` con el valor `https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg`. ```js -assert($('img:eq(1)').attr('src') === 'https://bit.ly/fcc-running-cats'); +assert($('img:eq(1)').attr('src') === 'https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg'); ``` Tu nuevo elemento `img` debe tener etiqueta de cierre. @@ -87,7 +87,7 @@ assert(

Click here for cat photos.

- A cute orange cat lying on its back. + A cute orange cat lying on its back.

Things cats love: