[go: up one dir, main page]

Skip to content

Commit

Permalink
chore(i18n,curriculum): update translations (freeCodeCamp#42362)
Browse files Browse the repository at this point in the history
  • Loading branch information
camperbot committed Jun 4, 2021
1 parent 8290ad0 commit ce1811b
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 53 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
id: 5e601c0d5ac9d0ecd8b94afe
title: 美式英語英式英語轉換器
challengeType: 4
forumTopicId: 462358
dashedName: american-british-translator
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
id: 5e601bf95ac9d0ecd8b94afd
title: 數獨求解器
challengeType: 4
forumTopicId: 462357
dashedName: sudoku-solver
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
id: 5e601c0d5ac9d0ecd8b94afe
title: 美式英语英式英语转换器
challengeType: 4
forumTopicId: 462358
dashedName: american-british-translator
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
id: 5e601bf95ac9d0ecd8b94afd
title: 数独求解器
challengeType: 4
forumTopicId: 462357
dashedName: sudoku-solver
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dashedName: specify-how-fonts-should-degrade

# --description--

Hay varias fuentes por defecto disponibles en todos los navegadores. Estas familias de fuentes genéricas incluyen a `monospace`, `serif` y `sans-serif`.
Hay varias fuentes por defecto disponibles en todos los navegadores. Estas familias de fuentes genéricas incluyen `monospace`, `serif` y `sans-serif`.

Cuando una fuente no está disponible en el sistema, puedes indicarle al navegador que "degrade" a otra fuente alternativa.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ console.log("Alan Peter".length);

El valor `10` se mostrará en la consola.

Por ejemplo, si creamos una variable `var firstName = "Charles"`, podríamos averiguar la longitud de la cadena `Charles` usando la propiedad `firstName.length`.
Por ejemplo, si creamos una variable `var firstName = "Ada"`, podríamos averiguar la longitud de la cadena `Ada` usando la propiedad `firstName.length`.

# --instructions--

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ dashedName: use-bracket-notation-to-find-the-last-character-in-a-string

Con el fin de obtener la última letra de una cadena, puedes restar uno a la longitud del texto.

Por ejemplo, si `var firstName = "Charles"`, puedes obtener el valor de la última letra de la cadena usando `firstName[firstName.length - 1]`.
Por ejemplo, `var firstName = "Ada"`, puedes obtener el valor de la última letra de la cadena usando `firstName[firstName.length - 1]`.

Ejemplo:

```js
var firstName = "Charles";
var firstName = "Ada";
var lastLetter = firstName[firstName.length - 1];
```

`lastLetter` tendrá una cadena con valor `s`.
`lastLetter` tendrá una cadena con valor `a`.

# --instructions--

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ dashedName: use-bracket-notation-to-find-the-nth-to-last-character-in-a-string

Puedes usar el mismo principio que acabamos de usar para recuperar el último carácter de una cadena para recuperar el carácter enésimo final.

Por ejemplo, puedes obtener el valor de la antepenúltima letra de la cadena `var firstName = "Charles"` usando `firstName[firstName.length - 3]`
Por ejemplo, puedes obtener el valor de la antepenúltima letra de la cadena `var firstName = "Augusta"` usando `firstName[firstName.length - 3]`

Ejemplo:

```js
var firstName = "Charles";
var firstName = "Augusta";
var thirdToLastLetter = firstName[firstName.length - 3];
```

`thirdToLastLetter` tendrá una cadena con valor `l`.
`thirdToLastLetter` tendrá una cadena con valor `s`.

# --instructions--

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: bad87fee1348bd9bedc08826
title: Target HTML Elements with Selectors Using jQuery
title: Apunta a elementos HTML con selectores usando jQuery
challengeType: 6
forumTopicId: 18319
required:
Expand All @@ -11,33 +11,35 @@ dashedName: target-html-elements-with-selectors-using-jquery

# --description--

Now we have a `document ready function`.
Ahora tenemos una `document ready function`.

Now let's write our first jQuery statement. All jQuery functions start with a `$`, usually referred to as a dollar sign operator, or as bling.
Ahora vamos a escribir nuestra primera declaración de jQuery. Todas las funciones de jQuery comienzan con un `$`, usualmente conocido como un operador de signo de dólares.

jQuery often selects an HTML element with a <dfn>selector</dfn>, then does something to that element.
jQuery a menudo selecciona un elemento HTML con un <dfn>selector</dfn>, y luego le hace algo a ese elemento.

For example, let's make all of your `button` elements bounce. Just add this code inside your document ready function:
Por ejemplo, hagamos que todos tus elementos `button` reboten. Simplemente añade este código dentro de tu función de documento listo (document ready):

`$("button").addClass("animated bounce");`
```js
$("button").addClass("animated bounce");
```

Note that we've already included both the jQuery library and the Animate.css library in the background so that you can use them in the editor. So you are using jQuery to apply the Animate.css `bounce` class to your `button` elements.
Ten en cuenta que ya hemos incluido tanto la librería jQuery como la librería Animate.css en segundo plano para que puedas usarlos en el editor. Así que estás usando jQuery para aplicar la clase Animate.css `bounce` a tus elementos `button`.

# --hints--

You should use the jQuery `addClass()` function to give the classes `animated` and `bounce` to your `button` elements.
Debes usar la función de jQuery `addClass()` para dar las clases `animated` y `bounce` a tus elementos `button`.

```js
assert($('button').hasClass('animated') && $('button').hasClass('bounce'));
```

You should only use jQuery to add these classes to the element.
Solo debes usar jQuery para añadir estas clases al elemento.

```js
assert(!code.match(/class.*animated/g));
```

Your jQuery code should be within the `$(document).ready();` function.
Tu código de jQuery debería estar dentro de la función `$(document).ready();`.

```js
assert(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
---
id: bad87fee1348bd9aed208826
title: Target the Children of an Element Using jQuery
title: Apunta al hijo de un elemento usando jQuery
challengeType: 6
forumTopicId: 18320
dashedName: target-the-children-of-an-element-using-jquery
---

# --description--

When HTML elements are placed one level below another they are called <dfn>children</dfn> of that element. For example, the button elements in this challenge with the text "#target1", "#target2", and "#target3" are all children of the `<div class="well" id="left-well">` element.
Cuando los elementos HTML se colocan un nivel por debajo de otro, se denominan <dfn>hijos</dfn> de ese elemento. Por ejemplo, los elementos botón en este desafío con el texto `#target1`, `#target2`, y `#target3` son todos hijos del elemento `<div class="well" id="left-well">`.

jQuery has a function called `children()` that allows you to access the children of whichever element you've selected.
jQuery tiene una función llamada `children()` que te permite acceder a los hijos del elemento que hayas seleccionado.

Here's an example of how you would use the `children()` function to give the children of your `left-well` element the color `blue`:
Aquí hay un ejemplo de cómo usarías la función `children()` para dar a los hijos de tu elemento `left-well` el color `blue`:

`$("#left-well").children().css("color", "blue")`
```js
$("#left-well").children().css("color", "blue")
```

# --instructions--

Give all the children of your `right-well` element the color orange.
Dale a todos los hijos de tu elemento `right-well` el color naranja.

# --hints--

All children of `#right-well` should have orange text.
Todos los hijos de `#right-well` deben tener texto naranja.

```js
assert($('#right-well').children().css('color') === 'rgb(255, 165, 0)');
```

You should use the `children()` function to modify these elements.
Debes usar la función `children()` para modificar estos elementos.

```js
assert(code.match(/\.children\(\)\.css/g));
```

You should only use jQuery to add these classes to the element.
Solo debes usar jQuery para agregar estas clases al elemento.

```js
assert(code.match(/<div class="well" id="right-well">/g));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
---
id: bad87fee1348bd9aed308826
title: Target the Parent of an Element Using jQuery
title: Apunta al padre de un elemento usando jQuery
challengeType: 6
forumTopicId: 18321
dashedName: target-the-parent-of-an-element-using-jquery
---

# --description--

Every HTML element has a `parent` element from which it `inherits` properties.
Cada elemento HTML tiene un elemento `parent` (padre) del cual `inherits` (hereda) propiedades.

For example, your `jQuery Playground` `h3` element has the parent element of `<div class="container-fluid">`, which itself has the parent `body`.
Por ejemplo, tu elemento `jQuery Playground` `h3` tiene el elemento padre de `<div class="container-fluid">`, que en sí mismo tiene el padre `body`.

jQuery has a function called `parent()` that allows you to access the parent of whichever element you've selected.
jQuery tiene una función llamada `parent()` que te permite acceder al padre del elemento que hayas seleccionado.

Here's an example of how you would use the `parent()` function if you wanted to give the parent element of the `left-well` element a background color of blue:
Aquí hay un ejemplo de cómo usarías la función `parent()` si quieres dar al elemento padre del elemento `left-well` un color de fondo azul:

`$("#left-well").parent().css("background-color", "blue")`
```js
$("#left-well").parent().css("background-color", "blue")
```

Give the parent of the `#target1` element a background-color of red.
Dale al padre del elemento `#target1` un color de fondo rojo.

# --hints--

Your `left-well` element should have a red background.
Tu elemento `left-well` debe tener un fondo rojo.

```js
assert(
Expand All @@ -33,21 +35,21 @@ assert(
);
```

You should use the `.parent()` function to modify this element.
Debes usar la función `.parent()` para modificar este elemento.

```js
assert(code.match(/\.parent\s*\(\s*\)\s*\.css/g));
```

The `.parent()` method should be called on the `#target1` element.
El método `.parent()` debe ser llamado en el elemento `#target1`.

```js
assert(
code.match(/\$\s*?\(\s*?(?:'|")\s*?#target1\s*?(?:'|")\s*?\)\s*?\.parent/gi)
);
```

You should only use jQuery to add these classes to the element.
Solo debes usar jQuery para añadir estas clases al elemento.

```js
assert(code.match(/<div class="well" id="left-well">/g));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: bad87fee1348bd9aed908626
title: Target the Same Element with Multiple jQuery Selectors
title: Apunta al mismo elemento con múltiples selectores jQuery
challengeType: 6
forumTopicId: 18322
required:
Expand All @@ -11,42 +11,41 @@ dashedName: target-the-same-element-with-multiple-jquery-selectors

# --description--

Now you know three ways of targeting elements: by type: `$("button")`, by class: `$(".btn")`, and by id `$("#target1")`.
Ahora conoces tres maneras de seleccionar elementos: por tipo: `$("button")`, por clase: `$(".btn")`, y por id `$("#target1")`.

Although it is possible to add multiple classes in a single `.addClass()` call, let's add them to the same element in *three separate ways*.
Aunque es posible añadir múltiples clases en una sola llamada `.addClass()`, vamos a añadirlos al mismo elemento en *tres maneras diferentes*.

Using `.addClass()`, add only one class at a time to the same element, three different ways:
Usando `.addClass()`, añade solo una clase a la vez al mismo elemento, de tres maneras diferentes:

Add the `animated` class to all elements with type `button`.
Añade la clase `animated` a todos los elementos con el tipo `button`.

Add the `shake` class to all the buttons with class `.btn`.
Añade la clase `shake` a todos los botones con la clase `.btn`.

Add the `btn-primary` class to the button with id `#target1`.
Añade la clase `btn-primary` al botón con id `#target1`.

**Note**
You should only be targeting one element and adding only one class at a time. Altogether, your three individual selectors will end up adding the three classes `shake`, `animated`, and `btn-primary` to `#target1`.
**Nota:** Solo debes apuntar a un elemento y añadir solo una clase a la vez. En total, tus tres selectores individuales terminarán agregando las tres clases `shake`, `animated`, y `btn-primary` a `#target1`.

# --hints--

Your code should use the `$("button")` selector.
Tu código debe usar el selector `$("button")`.

```js
assert(code.match(/\$\s*?\(\s*?(?:'|")\s*?button\s*?(?:'|")/gi));
```

Your code should use the `$(".btn")` selector.
Tu código debe usar el selector `$(".btn")`.

```js
assert(code.match(/\$\s*?\(\s*?(?:'|")\s*?\.btn\s*?(?:'|")/gi));
```

Your code should use the `$("#target1")` selector.
Tu código debe usar el selector `$("#target1")`.

```js
assert(code.match(/\$\s*?\(\s*?(?:'|")\s*?#target1\s*?(?:'|")/gi));
```

You should only add one class with each of your three selectors.
Solo debes añadir una clase con cada uno de tus tres selectores.

```js
assert(
Expand All @@ -55,7 +54,7 @@ assert(
);
```

Your `#target1` element should have the classes `animated` `shake` and `btn-primary`.
Tu elemento `#target1` debe tener las clases `animated`, `shake` y `btn-primary`.

```js
assert(
Expand All @@ -65,7 +64,7 @@ assert(
);
```

You should only use jQuery to add these classes to the element.
Solo debes usar jQuery para agregar estas clases al elemento.

```js
assert(!code.match(/class.*animated/g));
Expand Down

0 comments on commit ce1811b

Please sign in to comment.