chore(i18n,learn): processed translations (#48291)

This commit is contained in:
camperbot
2022-10-28 15:39:49 +01:00
committed by GitHub
parent cfa538c9cf
commit 3d1a669406
32 changed files with 74 additions and 56 deletions
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
حان الوقت لإضافة بعض الألوان إلى الصفحة. تذكر أن إحدى الطرق لإضافة لون إلى عنصر ما هي استخدام <dfn>مصطلح اللون بالانجليزية</dfn> مثل `black`, أو `cyan`, أو `yellow`.
It's time to add some color to the marker. تذكر أن إحدى الطرق لإضافة لون إلى عنصر ما هي استخدام <dfn>مصطلح اللون بالانجليزية</dfn> مثل `black`, أو `cyan`, أو `yellow`.
كتذكير، إليك كيفية استهداف فئة `freecodecamp`:
@@ -19,15 +19,17 @@ dashedName: step-11
أنشئ قاعدة CSS جديدة تستهدف فئة `marker` وتعين خاصية `background-color` إلى `red`.
**Note:** You will not see any changes after adding the CSS.
# --hints--
يجب عليك إنشاء منتقى class لاستهداف فئة `marker`.
You should create a class selector to target the `marker` class.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker'));
```
يجب أن تحتوي قاعدة CSS مسمى `.marker` علي الخاصية `background-color` بقيمة `red`.
Your `.marker` CSS rule should have a `background-color` property set to `red`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker')?.backgroundColor === 'red');
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
لاحظ أن marker الخاص بك لا يبدو أن له أي لون. تم بالفعل تطبيق لون الخلفية، ولكن بما أن عنصر `div` للـ marker فارغ، فليس لديه أي ارتفاع افتراضي.
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
في قاعدة CSS مسمى `.marker` الخاص بك، عيين خاصية `width` إلى `200px` و `height` إلى `25px`.
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ You should set `monsterStats.style.display` to `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
This should be the first line of the `update` function.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
是時候爲頁面添加一些顏色了。 請記住,爲元素添加顏色的一種方法是使用 <dfn>color 關鍵字</dfn>,例如 `black``cyan``yellow`
It's time to add some color to the marker. 請記住,爲元素添加顏色的一種方法是使用 <dfn>color 關鍵字</dfn>,例如 `black``cyan``yellow`
提醒一下,以下是定位類 `freecodecamp` 的方法:
@@ -19,15 +19,17 @@ dashedName: step-11
創建一個以 `marker` 類爲目標的新 CSS 規則,並將其 `background-color` 屬性設置爲 `red`
**Note:** You will not see any changes after adding the CSS.
# --hints--
你應該創建一個類選擇器來定位 `marker` 類。
You should create a class selector to target the `marker` class.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker'));
```
你的 `.marker` CSS 規則應該將 `background-color` 屬性設置爲 `red`
Your `.marker` CSS rule should have a `background-color` property set to `red`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker')?.backgroundColor === 'red');
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
請注意,你的筆似乎沒有任何顏色。 實際應用了背景顏色,但由於彩筆 `div` 元素爲空,因此默認情況下它沒有任何高度。
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
在你的 `.marker` CSS 規則中,將 `width` 屬性設置爲 `200px`,並將 `height` 屬性設置爲 `25px`
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ You should set `monsterStats.style.display` to `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
This should be the first line of the `update` function.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
是时候为页面添加一些颜色了。 请记住,为元素添加颜色的一种方法是使用 <dfn>color 关键字</dfn>,例如 `black``cyan``yellow`
It's time to add some color to the marker. 请记住,为元素添加颜色的一种方法是使用 <dfn>color 关键字</dfn>,例如 `black``cyan``yellow`
提醒一下,以下是定位类 `freecodecamp` 的方法:
@@ -19,15 +19,17 @@ dashedName: step-11
创建一个以 `marker` 类为目标的新 CSS 规则,并将其 `background-color` 属性设置为 `red`
**Note:** You will not see any changes after adding the CSS.
# --hints--
你应该创建一个类选择器来定位 `marker` 类。
You should create a class selector to target the `marker` class.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker'));
```
你的 `.marker` CSS 规则应该将 `background-color` 属性设置为 `red`
Your `.marker` CSS rule should have a `background-color` property set to `red`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker')?.backgroundColor === 'red');
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
请注意,你的笔似乎没有任何颜色。 实际应用了背景颜色,但由于彩笔 `div` 元素为空,因此默认情况下它没有任何高度。
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
在你的 `.marker` CSS 规则中,将 `width` 属性设置为 `200px`,并将 `height` 属性设置为 `25px`
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ You should set `monsterStats.style.display` to `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
This should be the first line of the `update` function.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
Es hora de añadir algo de color a la página. Recuerda que una forma de añadir color a un elemento es utilizando el nombre del <dfn>color</dfn> en inglés, como `black` (negro), `cyan` (cian) o `yellow` (amarillo).
It's time to add some color to the marker. Recuerda que una forma de añadir color a un elemento es utilizando el nombre del <dfn>color</dfn> en inglés, como `black` (negro), `cyan` (cian) o `yellow` (amarillo).
Como recordatorio, aquí está cómo vincular la clase `freecodecamp`:
@@ -19,15 +19,17 @@ Como recordatorio, aquí está cómo vincular la clase `freecodecamp`:
Crea una nueva regla CSS que apunta a la clase `marker`y establezca la `background-color` a `red`.
**Note:** You will not see any changes after adding the CSS.
# --hints--
Debes crear un selector de clases para apuntar a la clase `marker`.
You should create a class selector to target the `marker` class.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker'));
```
La regla CSS de tu selector `.marker` debe tener una propiedad `background-color` con el valor `red` (rojo).
Your `.marker` CSS rule should have a `background-color` property set to `red`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker')?.backgroundColor === 'red');
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
Puedes ver que tu marcador parece no tener color. El color de fondo (background color) se aplicó, pero como el elemento `div` del marcador está vacío y no tiene ninguna altura asignada por defecto.
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
En tu regla CSS `.marker`, agrega una propiedad `width` (ancho) con un valor de `200px` y una propiedad `height` (altura) con un valor dé `25px`.
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ You should set `monsterStats.style.display` to `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
This should be the first line of the `update` function.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
It's time to add some color to the page. Remember that one way to add color to an element is to use a <dfn>color keyword</dfn> like `black`, `cyan`, or `yellow`.
It's time to add some color to the marker. Remember that one way to add color to an element is to use a <dfn>color keyword</dfn> like `black`, `cyan`, or `yellow`.
As a reminder, here's how to target the class `freecodecamp`:
@@ -19,6 +19,8 @@ As a reminder, here's how to target the class `freecodecamp`:
Create a new CSS rule that targets the class `marker`, and set its `background-color` property to `red`.
**Note:** You will not see any changes after adding the CSS.
# --hints--
You should create a class selector to target the `marker` class.
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
Notice that your marker doesn't seem to have any color. The background color was actually applied, but since the marker `div` element is empty, it doesn't have any height by default.
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
In your `.marker` CSS rule, set the `width` property to `200px` and the `height` property to `25px`.
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ You should set `monsterStats.style.display` to `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
This should be the first line of the `update` function.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
È ora di aggiungere un po' di colore alla pagina. Ricorda che un modo per aggiungere colore a un elemento è utilizzare una <dfn>parola chiave</dfn> come `black`, `cyan` o `yellow`.
It's time to add some color to the marker. Ricorda che un modo per aggiungere colore a un elemento è utilizzare una <dfn>parola chiave</dfn> come `black`, `cyan` o `yellow`.
Come promemoria, ecco come fare riferimento alla classe `freecodecamp`:
@@ -19,15 +19,17 @@ Come promemoria, ecco come fare riferimento alla classe `freecodecamp`:
Crea una nuova regola CSS destinata alla classe `marker` e assegna alla proprietà `background-color` il valore `red`.
**Note:** You will not see any changes after adding the CSS.
# --hints--
Dovresti creare un selettore di classe per scegliere come target la classe `marker`.
You should create a class selector to target the `marker` class.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker'));
```
La regola CSS `.marker` dovrebbe avere una proprietà `background-color` con il valore `red`.
Your `.marker` CSS rule should have a `background-color` property set to `red`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker')?.backgroundColor === 'red');
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
Come puoi vedere, il pennarello non sembra avere alcun colore. Il colore di sfondo è stato effettivamente applicato, ma poiché l'elemento `div` marker è vuoto, non possiede alcuna altezza come impostazione predefinita.
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
Nella regola CSS `.marker`, assegna alla proprietà `width` il valore `200px` e alla proprietà `height` il valore `25px`.
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ Dovresti impostare `monsterStats.style.display` su `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
Questa dovrebbe essere la prima riga della funzione `update`.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
ではページに色を追加しましょう。 要素に色をつける方法の 1 つに、`black``cyan``yellow` のような<dfn>色キーワード</dfn>を使う方法があることを思い出してください。
It's time to add some color to the marker. 要素に色をつける方法の 1 つに、`black``cyan``yellow` のような<dfn>色キーワード</dfn>を使う方法があることを思い出してください。
ヒントとして、クラス `freecodecamp` を選択する方法は次の通りです:
@@ -19,15 +19,17 @@ dashedName: step-11
クラス `marker` を選択する新しい CSS ルールを作成し、`background-color` プロパティを `red` に設定してください。
**Note:** You will not see any changes after adding the CSS.
# --hints--
クラス `marker` を選択するクラスセレクターを作成する必要があります。
You should create a class selector to target the `marker` class.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker'));
```
`.marker` 用の CSS ルールの `background-color` プロパティを `red` に設定する必要があります。
Your `.marker` CSS rule should have a `background-color` property set to `red`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker')?.backgroundColor === 'red');
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
マーカーに色がついていないことに注目してください。 背景色は実は適用されていますが、マーカーの `div` 要素が空なので、デフォルトの状態では高さがありません。
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
`.marker` CSS ルール内で、`width` プロパティを `200px` に、`height` プロパティを `25px` に設定してください。
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ You should set `monsterStats.style.display` to `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
This should be the first line of the `update` function.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -16,7 +16,7 @@ Este desafio cobre o próximo passo: definir o `prototype` do subtipo (ou filho)
Bird.prototype = Object.create(Animal.prototype);
```
Lembre-se de que o `prototype` é como uma receita para criar um objeto. De certa forma, a receita para `Bird` agora inclui todos os "ingredientes" chave para `Animal`.
Lembre-se de que o `prototype` é como uma receita para criar um objeto. De certo modo, a receita de `Bird` agora inclui todos os "ingredientes" importantes de `Animal`.
```js
let duck = new Bird("Donald");
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
É hora de adicionar um pouco de cor à página. Lembre-se de que uma maneira de adicionar cor a um elemento é usar uma <dfn>palavra-chave de cor</dfn> como `black`, `cyan` ou `yellow`.
É hora de adicionar um pouco de cor ao marcador. Lembre-se de que uma maneira de adicionar cor a um elemento é usar uma <dfn>palavra-chave de cor</dfn> como `black`, `cyan` ou `yellow`.
Como lembrete, aqui está como vincular a classe `freecodecamp`:
@@ -19,6 +19,8 @@ Como lembrete, aqui está como vincular a classe `freecodecamp`:
Crie uma nova regra de CSS vinculada à classe `marker` e defina sua propriedade `background-color` para `red`.
**Observação:** você não verá nenhuma alteração após adicionar o CSS.
# --hints--
Você deve usar um seletor de classe para a classe `marker`.
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
Observe que seu marcador não parece ter nenhuma cor. A cor de fundo foi realmente aplicada, mas como o elemento marcador `div` está vazio, ele não tem qualquer altura por padrão.
A cor de fundo foi aplicada, mas como o elemento `div` do marcador está vazio, ele não tem qualquer altura por padrão.
Na regra do CSS `.marker` defina a propriedade `width` como `200px` e `height` como `25px`.
Na regra do CSS `.marker`, defina a propriedade `height` como `25px` e a propriedade `width` como `200px`
# --hints--
@@ -23,7 +23,7 @@ Você deve definir `monsterStats.style.display` como `none`.
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
Esta deve ser a primeira linha da função `update`.
Você deve adicionar o código à primeira linha da função `update`.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);
@@ -9,7 +9,7 @@ dashedName: comparison-with-the-greater-than-or-equal-to-operator
# --description--
Оператор "більше ніж дорівнює" (`>=`) порівнює значення двох чисел. Якщо число зліва більше за число справа, тоді функція є `true`. В іншому випадку - вона `false`.
Оператор "більше ніж дорівнює" (`>=`) порівнює значення двох чисел. Якщо число зліва більше чи дорівнює числу справа, тоді повертається `true`. В іншому випадку - вона `false`.
Так само, як і оператор рівності, оператор "більше ніж дорівнює" конвертує типи даних під час їх порівняння.
@@ -9,7 +9,7 @@ dashedName: comparison-with-the-strict-inequality-operator
# --description--
Оператор абсолютної нерівності (`!==`) є логічною протилежністю оператора абсолютної рівності. Це означає, що "Абсолютно Не Рівно" та визначається `false`, де абсолютна рівність визначається як `true` і *vice versa*. Оператор абсолютної нерівності не буде перетворювати типи даних.
Оператор абсолютної нерівності (`!==`) є логічною протилежністю оператора абсолютної рівності. Це означає «строго нерівно» та повертає `false`, де строга рівність повернула б `true` та *навпаки*. Оператор абсолютної нерівності не буде перетворювати типи даних.
**Приклади**
@@ -9,7 +9,7 @@ dashedName: comparisons-with-the-logical-and-operator
# --description--
Трапляється, що потрібно перевіряти більше ніж одну цифру одночасно. <dfn>Оператор "більше ніж"</dfn> `&&` стає `true` якщо <dfn>вихідні об'єкти</dfn> справа та зліва від нього вірні.
Трапляється, що потрібно перевіряти більше ніж одну цифру одночасно. <dfn>Логічний оператор and</dfn> (`&&`) повертає `true` лише за умови, що <dfn>операнди</dfn> зліва та справа вірні.
Такого ж результату можна досягнути шляхом закладання інформації всередині іншого:
@@ -33,7 +33,7 @@ return "No";
# --instructions--
Замініть два оператора if statements одним використовуючи `&&` оператор. Значення рядка буде `Yes`, якщо `val` меньше або рівне `50` та більше або рівне `25`. В іншому випадку значення рядка стане `No`.
Замініть дві інструкції if на одну інструкцію, використавши оператор `&&`, який поверне рядок `Yes` якщо `val` менший чи дорівнює `50` та більший чи дорівнює `25`. В іншому випадку значення рядка стане `No`.
# --hints--
@@ -9,7 +9,7 @@ dashedName: comparisons-with-the-logical-or-operator
# --description--
Якщо оператор <dfn>logical або</dfn> (`||`) повертає `true`, якщо будь-який з <dfn>operands</dfn> є `true`. В іншому випадку перетворюється на `false`.
<dfn>Логічний оператор or</dfn> (`||`) повертає `true`, якщо один з <dfn>операндів</dfn> є `true`. В іншому випадку перетворюється на `false`.
Оператор <dfn>логічний або</dfn> складається з двох символів труби (`||`). Зазвичай його можна знайти на клавіатурі між клавіш Backspace та Enter.
@@ -7,7 +7,7 @@ dashedName: step-11
# --description--
Настав час додати кольори до сторінки. Пам’ятайте, що один зі способів додати колір до елемента – це використати <dfn>ключове слово</dfn>, наприклад `black`, `cyan` або `yellow`.
It's time to add some color to the marker. Пам’ятайте, що один зі способів додати колір до елемента – це використати <dfn>ключове слово</dfn>, наприклад `black`, `cyan` або `yellow`.
Нагадуємо, як націлити клас `freecodecamp`:
@@ -19,15 +19,17 @@ dashedName: step-11
Створіть нове CSS-правило, націлене на клас `marker`, та встановіть значення його властивості `background-color` на `red`.
**Note:** You will not see any changes after adding the CSS.
# --hints--
Ви повинні створити селектор класу, щоб націлити клас `marker`.
You should create a class selector to target the `marker` class.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker'));
```
Ваше CSS-правило `.marker` повинне мати властивість `background-color` зі значенням `red`.
Your `.marker` CSS rule should have a `background-color` property set to `red`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.marker')?.backgroundColor === 'red');
@@ -7,9 +7,9 @@ dashedName: step-12
# --description--
Зверніть увагу, що ваш маркер не має жодного кольору. Насправді фоновий колір було застосовано, але оскільки маркер-елемент `div` порожній, то немає ніякої висоти за замовчуванням.
The background color was applied, but since the marker `div` element is empty, it doesn't have any height by default.
В CSS-правилі `.marker` встановіть значення властивості `width` на `200px` та значення властивості `height` на `25px`.
In your `.marker` CSS rule, set the `height` property to `25px` and the `width` property to `200px`
# --hints--
@@ -23,7 +23,7 @@ assert.match(update.toString(), /monsterStats\.style\.display/);
assert.match(update.toString(), /monsterStats\.style\.display\s*=\s*('|")none\1/);
```
This should be the first line of the `update` function.
You should add your code in the first line of the `update` function.
```js
assert.match(update.toString(), /update\s*\(\s*location\s*\)\s*\{\s*monsterStats\.style\.display\s*=\s*('|")none\1/);