From b7496d96dd7957ad5f868fb827c96342e1759661 Mon Sep 17 00:00:00 2001 From: camperbot Date: Tue, 11 Jan 2022 22:27:22 +0530 Subject: [PATCH] chore(i18n,learn): processed translations (#44750) --- ...ze-times-with-the-html5-datetime-attribute.md | 16 ++++++++-------- ...refactor-global-variables-out-of-functions.md | 4 ++-- ...ze-times-with-the-html5-datetime-attribute.md | 16 ++++++++-------- ...refactor-global-variables-out-of-functions.md | 4 ++-- ...ze-times-with-the-html5-datetime-attribute.md | 16 ++++++++-------- ...al-sections-of-a-page-with-anchor-elements.md | 2 +- .../basic-javascript/counting-cards.md | 2 +- ...refactor-global-variables-out-of-functions.md | 4 ++-- ...ze-times-with-the-html5-datetime-attribute.md | 16 ++++++++-------- ...refactor-global-variables-out-of-functions.md | 4 ++-- ...ze-times-with-the-html5-datetime-attribute.md | 16 ++++++++-------- ...refactor-global-variables-out-of-functions.md | 4 ++-- ...ze-times-with-the-html5-datetime-attribute.md | 16 ++++++++-------- ...refactor-global-variables-out-of-functions.md | 4 ++-- 14 files changed, 62 insertions(+), 62 deletions(-) diff --git a/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md b/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md index 222711acf2..f49b307b41 100644 --- a/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md +++ b/curriculum/challenges/chinese-traditional/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md @@ -26,22 +26,22 @@ Camper Cat 格鬥的調查結果出來了! 用 `time` 標籤包裹文本 `Thur 應存在一個 `time` 元素和一個內容文本爲 `Thank you to everyone for responding to Master Camper Cat's survey.` 的 `p` 元素。 ```js -assert(timeElement.length); +assert(timeElement); ``` `time` 元素的內容文本應爲 `Thursday, September 15th`。 ```js assert( - timeElement.length && - $(timeElement).html().trim() === 'Thursday, September 15th' + timeElement && + timeElement?.innerHTML?.trim() === 'Thursday, September 15th' ); ``` `time` 元素應包含非空的 `datetime` 屬性。 ```js -assert(datetimeAttr && datetimeAttr.length); +assert(datetimeAttr && datetimeAttr?.length); ``` `datetime` 的屬性值應爲 `2016-09-15`。 @@ -56,10 +56,10 @@ assert(datetimeAttr === '2016-09-15'); ```html ``` diff --git a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 5d34cd5dcf..0f96ede20c 100644 --- a/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/chinese-traditional/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -89,7 +89,7 @@ assert( const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"]; // Change code below this line -function add (bookName) { +function add(bookName) { bookList.push(bookName); return bookList; @@ -98,7 +98,7 @@ function add (bookName) { } // Change code below this line -function remove (bookName) { +function remove(bookName) { const book_index = bookList.indexOf(bookName); if (book_index >= 0) { diff --git a/curriculum/challenges/chinese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md b/curriculum/challenges/chinese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md index 9f140759bc..49d22fda89 100644 --- a/curriculum/challenges/chinese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md +++ b/curriculum/challenges/chinese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md @@ -26,22 +26,22 @@ Camper Cat 格斗的调查结果出来了! 用 `time` 标签包裹文本 `Thur 应存在一个 `time` 元素和一个内容文本为 `Thank you to everyone for responding to Master Camper Cat's survey.` 的 `p` 元素。 ```js -assert(timeElement.length); +assert(timeElement); ``` `time` 元素的内容文本应为 `Thursday, September 15th`。 ```js assert( - timeElement.length && - $(timeElement).html().trim() === 'Thursday, September 15th' + timeElement && + timeElement?.innerHTML?.trim() === 'Thursday, September 15th' ); ``` `time` 元素应包含非空的 `datetime` 属性。 ```js -assert(datetimeAttr && datetimeAttr.length); +assert(datetimeAttr && datetimeAttr?.length); ``` `datetime` 的属性值应为 `2016-09-15`。 @@ -56,10 +56,10 @@ assert(datetimeAttr === '2016-09-15'); ```html ``` diff --git a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index e0e2a21bb7..fb12266947 100644 --- a/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/chinese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -89,7 +89,7 @@ assert( const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"]; // Change code below this line -function add (bookName) { +function add(bookName) { bookList.push(bookName); return bookList; @@ -98,7 +98,7 @@ function add (bookName) { } // Change code below this line -function remove (bookName) { +function remove(bookName) { const book_index = bookList.indexOf(bookName); if (book_index >= 0) { diff --git a/curriculum/challenges/espanol/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md b/curriculum/challenges/espanol/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md index 5365f830e3..bcf499d4fb 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md @@ -26,22 +26,22 @@ Aquí hay un ejemplo: Tu código debe tener un elemento `p` que incluya el texto `Thank you to everyone for responding to Master Camper Cat's survey.` e incluya un elemento `time`. ```js -assert(timeElement.length); +assert(timeElement); ``` Las etiquetas `time` añadidas deben envolver el texto `Thursday, September 15th`. ```js assert( - timeElement.length && - $(timeElement).html().trim() === 'Thursday, September 15th' + timeElement && + timeElement?.innerHTML?.trim() === 'Thursday, September 15th' ); ``` Tu etiqueta `time` agregada debe tener un atributo `datetime` que no esté vacío. ```js -assert(datetimeAttr && datetimeAttr.length); +assert(datetimeAttr && datetimeAttr?.length); ``` Tu atributo `datetime` agregado debe establecerse en un valor de `2016-09-15`. @@ -56,10 +56,10 @@ assert(datetimeAttr === '2016-09-15'); ```html ``` diff --git a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements.md b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements.md index 98330b3543..dbe7cc2be0 100644 --- a/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements.md +++ b/curriculum/challenges/espanol/01-responsive-web-design/basic-html-and-html5/link-to-internal-sections-of-a-page-with-anchor-elements.md @@ -25,7 +25,7 @@ Cuando los usuarios hagan clic en el enlace `Contacts`, serán llevados a la sec # --instructions-- -Cambia tu enlace externo a un enlace interno cambiando el atributo `href` a `"#footer"` y el texto de `cat photos` a `Jump to Bottom`. +Cambia tu enlace externo a un enlace interno cambiando el atributo `href` a `#footer` y el texto de `cat photos` a `Jump to Bottom`. Elimina el atributo `target="_blank"` de la etiqueta anchor ya que esto provoca que el documento enlazado se abra en una nueva pestaña. diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md index 6cf3bf07c1..cb076e4456 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md +++ b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/basic-javascript/counting-cards.md @@ -25,7 +25,7 @@ NO incluyas comillas (individuales o dobles) en el resultado. # --hints-- -La secuencia de cartas 2, 3, 4, 5, 6 debe devolver `5 Bet` +La secuencia de cartas 2, 3, 4, 5, 6 debe devolver la cadena `5 Bet` ```js assert( diff --git a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 32fe722727..343f8f25c8 100644 --- a/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/espanol/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -89,7 +89,7 @@ assert( const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"]; // Change code below this line -function add (bookName) { +function add(bookName) { bookList.push(bookName); return bookList; @@ -98,7 +98,7 @@ function add (bookName) { } // Change code below this line -function remove (bookName) { +function remove(bookName) { const book_index = bookList.indexOf(bookName); if (book_index >= 0) { diff --git a/curriculum/challenges/italian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md b/curriculum/challenges/italian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md index abe283c9b3..15b09ef146 100644 --- a/curriculum/challenges/italian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md +++ b/curriculum/challenges/italian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md @@ -26,22 +26,22 @@ I risultati del sondaggio di Camper Cat sul torneo di Mortal Kombat sono arrivat Il tuo codice dovrebbe avere un elemento `p` che include il testo `Thank you to everyone for responding to Master Camper Cat's survey.` e che abbia un elemento `time`. ```js -assert(timeElement.length); +assert(timeElement); ``` I tuoi tag `time` aggiuntivi dovrebbero avvolgere il testo `Thursday, September 15th`. ```js assert( - timeElement.length && - $(timeElement).html().trim() === 'Thursday, September 15th' + timeElement && + timeElement?.innerHTML?.trim() === 'Thursday, September 15th' ); ``` Il tuo tag `time` dovrebbe avere un attributo `datetime` non vuoto. ```js -assert(datetimeAttr && datetimeAttr.length); +assert(datetimeAttr && datetimeAttr?.length); ``` Il tuo attributo `datetime` dovrebbe essere impostato sul valore `2016-09-15`. @@ -56,10 +56,10 @@ assert(datetimeAttr === '2016-09-15'); ```html ``` diff --git a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 0f1f353bd3..61ec805133 100644 --- a/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/italian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -89,7 +89,7 @@ assert( const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"]; // Change code below this line -function add (bookName) { +function add(bookName) { bookList.push(bookName); return bookList; @@ -98,7 +98,7 @@ function add (bookName) { } // Change code below this line -function remove (bookName) { +function remove(bookName) { const book_index = bookList.indexOf(bookName); if (book_index >= 0) { diff --git a/curriculum/challenges/portuguese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md b/curriculum/challenges/portuguese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md index a76cf8d354..cce57cf5ca 100644 --- a/curriculum/challenges/portuguese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md +++ b/curriculum/challenges/portuguese/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md @@ -26,22 +26,22 @@ Os resultados da pesquisa do jogo Mortal Kombat do Camper Cat chegaram! Envolva O código deve ter um elemento `p` que inclui o texto `Thank you to everyone for responding to Master Camper Cat's survey.` e inclua um elemento `time`. ```js -assert(timeElement.length); +assert(timeElement); ``` A tag `time` que você adicionou deve estar ao redor do texto `Thursday, September 15th`. ```js assert( - timeElement.length && - $(timeElement).html().trim() === 'Thursday, September 15th' + timeElement && + timeElement?.innerHTML?.trim() === 'Thursday, September 15th' ); ``` A tag `time` que você adicionou deve ter um atributo `datetime` que não pode estar vazio. ```js -assert(datetimeAttr && datetimeAttr.length); +assert(datetimeAttr && datetimeAttr?.length); ``` O atributo `datetime` adicionado deve ser um conjunto de valores no formato `2016-09-15`. @@ -56,10 +56,10 @@ assert(datetimeAttr === '2016-09-15'); ```html ``` diff --git a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index 6ff28a54cb..19ad4afeac 100644 --- a/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/portuguese/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -89,7 +89,7 @@ assert( const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"]; // Change code below this line -function add (bookName) { +function add(bookName) { bookList.push(bookName); return bookList; @@ -98,7 +98,7 @@ function add (bookName) { } // Change code below this line -function remove (bookName) { +function remove(bookName) { const book_index = bookList.indexOf(bookName); if (book_index >= 0) { diff --git a/curriculum/challenges/ukrainian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md b/curriculum/challenges/ukrainian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md index 2794edd04c..032865176e 100644 --- a/curriculum/challenges/ukrainian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md +++ b/curriculum/challenges/ukrainian/01-responsive-web-design/applied-accessibility/standardize-times-with-the-html5-datetime-attribute.md @@ -26,22 +26,22 @@ dashedName: standardize-times-with-the-html5-datetime-attribute Ваш код має містити елемент `p`, що включає текст `Thank you to everyone for responding to Master Camper Cat's survey.` і елемент `time`. ```js -assert(timeElement.length); +assert(timeElement); ``` Додані теґи `time` мають обгортати текст `Thursday, September 15th`. ```js assert( - timeElement.length && - $(timeElement).html().trim() === 'Thursday, September 15th' + timeElement && + timeElement?.innerHTML?.trim() === 'Thursday, September 15th' ); ``` Доданий теґ `time` має містити атрибут `datetime`, який не є порожнім. ```js -assert(datetimeAttr && datetimeAttr.length); +assert(datetimeAttr && datetimeAttr?.length); ``` Доданий атрибут `datetime` має бути встановленим на значення `2016-09-15`. @@ -56,10 +56,10 @@ assert(datetimeAttr === '2016-09-15'); ```html ``` diff --git a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md index b0b39371ff..757e4751f5 100644 --- a/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md +++ b/curriculum/challenges/ukrainian/02-javascript-algorithms-and-data-structures/functional-programming/refactor-global-variables-out-of-functions.md @@ -89,7 +89,7 @@ assert( const bookList = ["The Hound of the Baskervilles", "On The Electrodynamics of Moving Bodies", "Philosophiæ Naturalis Principia Mathematica", "Disquisitiones Arithmeticae"]; // Change code below this line -function add (bookName) { +function add(bookName) { bookList.push(bookName); return bookList; @@ -98,7 +98,7 @@ function add (bookName) { } // Change code below this line -function remove (bookName) { +function remove(bookName) { const book_index = bookList.indexOf(bookName); if (book_index >= 0) {