chore(i18n,docs): processed translations (#52096)

This commit is contained in:
camperbot
2023-10-25 08:56:07 -07:00
committed by GitHub
parent 9eb069f438
commit d886bf0ffb
11 changed files with 151 additions and 103 deletions
@@ -460,7 +460,13 @@ Before you [create a pull request](how-to-open-a-pull-request.md) for your chang
pnpm run test:curriculum
```
2. You can also test a block or a superblock of challenges with these commands
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -470,7 +476,7 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
You are also able to test one challenge individually by performing the following steps:
You are also able to test challenges by title by performing the following steps:
1. Switch to the `curriculum` directory:
@@ -460,7 +460,13 @@ Before you [create a pull request](how-to-open-a-pull-request.md) for your chang
pnpm run test:curriculum
```
2. You can also test a block or a superblock of challenges with these commands
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -470,7 +476,7 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
You are also able to test one challenge individually by performing the following steps:
You are also able to test challenges by title by performing the following steps:
1. Switch to the `curriculum` directory:
@@ -464,7 +464,13 @@ Antes de que tu [hagas un pull request](how-to-open-a-pull-request.md) para tus
pnpm run test:curriculum
```
2. También puedes probar un bloque o un superbloque de desafíos con estos comandos
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -474,15 +480,15 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
También puedes probar un desafío individualmente realizando los siguientes pasos:
You are also able to test challenges by title by performing the following steps:
1. Cambiar al directorio `currículum`:
1. Switch to the `curriculum` directory:
```
cd curriculum
```
2. Ejecute lo siguiente para cada archivo de desafío para el que haya cambiado (sustituyendo "el-titulo-del-desafio-va-aqui" por el título completo del desafío):
2. Run the following for each challenge file for which you have changed (replacing `challenge-title-goes-here` with the full title of the challenge):
```
pnpm run test -- -g challenge-title-goes-here
@@ -459,7 +459,13 @@ Bevor du [einen Pull-Request](how-to-open-a-pull-request.md) für deine Änderun
pnpm run test:curriculum
```
2. Du kannst auch einen Block oder einen Superblock von Aufgaben mit diesen Befehlen testen
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -469,15 +475,15 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
Du kannst eine Aufgabe auch einzeln testen, indem du die folgenden Schritte ausführst:
You are also able to test challenges by title by performing the following steps:
1. Wechsle in das Verzeichnis "Curriculum":
1. Switch to the `curriculum` directory:
```
cd curriculum
```
2. Führe das Folgende für jede Aufgabendatei aus, für die du Änderungen vorgenommen hast (ersetze dabei `Aufgabentitel hier eintragen` durch den vollständigen Titel der Aufgabe):
2. Run the following for each challenge file for which you have changed (replacing `challenge-title-goes-here` with the full title of the challenge):
```
pnpm run test -- -g challenge-title-goes-here
@@ -460,7 +460,13 @@ Prima di [creare una pull request](how-to-open-a-pull-request.md), devi verifica
pnpm run test:curriculum
```
2. Puoi anche testare un blocco o un superblocco di sfide con questi comandi
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -470,15 +476,15 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
Puoi anche testare una sfida singola con i seguenti step:
You are also able to test challenges by title by performing the following steps:
1. Spostati nella cartella `curriculum`:
1. Switch to the `curriculum` directory:
```
cd curriculum
```
2. Esegui i seguenti comandi per ogni singolo file in cui hai fatto cambiamenti (rimpiazziando `challenge-title-goes-here` con il titolo intero della sfida):
2. Run the following for each challenge file for which you have changed (replacing `challenge-title-goes-here` with the full title of the challenge):
```
pnpm run test -- -g challenge-title-goes-here
@@ -460,7 +460,13 @@ function myFunc() {
pnpm run test:curriculum
```
2. 次のコマンドでチャレンジのブロックやスーパーブロックをテストすることもできます。
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -470,15 +476,15 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
次の手順を実行することで、1 つのチャレンジを個別にテストすることもできます。
You are also able to test challenges by title by performing the following steps:
1. `curriculum` ディレクトリに切り替えてください。
1. Switch to the `curriculum` directory:
```
cd curriculum
```
2. 変更したチャレンジファイルごとに以下を実行します ( `challenge-title-goes-here` を正式なチャレンジのタイトルに置き換えてください)。
2. Run the following for each challenge file for which you have changed (replacing `challenge-title-goes-here` with the full title of the challenge):
```
pnpm run test -- -g challenge-title-goes-here
@@ -463,7 +463,13 @@ Antes de [criar um pull request](how-to-open-a-pull-request.md) para suas modifi
pnpm run test:curriculum
```
2. Você também pode testar um bloco ou superbloco de desafios com esses comandos
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -473,43 +479,43 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
Você também é capaz de testar um desafio individualmente seguindo as seguintes etapas:
You are also able to test challenges by title by performing the following steps:
1. Mude para o diretório `curriculum`:
1. Switch to the `curriculum` directory:
```
cd curriculum
```
2. Execute o comando a seguir para cada arquivo de desafio no qual você fez alteraçõess (substituindo `challenge-title-goes-here` com o título completo do desafio):
2. Run the following for each challenge file for which you have changed (replacing `challenge-title-goes-here` with the full title of the challenge):
```
pnpm run test -- -g titulo-do-desafio-aqui
pnpm run test -- -g challenge-title-goes-here
```
> [!TIP]
> Você pode definir a váriavel de ambiente `LOCALE` no arquivo `.env` para o idioma do(s) desafio(s) que você precisa testar.
> You can set the environment variable `LOCALE` in the `.env` to the language of the challenge(s) you need to test.
>
> Os valores aceitos de momento são `english` e `chinese`, com `english` sendo o valor padrão.
> The currently accepted values are `english` and `chinese`, with `english` being set by default.
## Propondo um Pull Request (PR)
## Proposing a Pull Request (PR)
Depois de fazer o commit de suas alterações, confira aqui [como abrir um Pull Request](how-to-open-a-pull-request.md).
After you've committed your changes, check here for [how to open a Pull Request](how-to-open-a-pull-request.md).
## Links úteis
## Useful Links
Criação e edição de desafios:
Creating and Editing Challenges:
1. [Tipos de desafio](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/utils/challenge-types.js#L1-L13) - o que significam os valores do tipo de desafio numérico (enum).
1. [Challenge types](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/utils/challenge-types.js#L1-L13) - what the numeric challenge type values mean (enum).
2. [Contribuindo para o FreeCodeCamp - Escrevendo testes para desafios de ES6](https://www.youtube.com/watch?v=iOdD84OSfAE#t=2h49m55s) - um vídeo que acompanha [Ethan Arrowood](https://twitter.com/ArrowoodTech) durante sua contribuição para a versão antiga do currículo.
2. [Contributing to FreeCodeCamp - Writing ES6 Challenge Tests](https://www.youtube.com/watch?v=iOdD84OSfAE#t=2h49m55s) - a video following [Ethan Arrowood](https://twitter.com/ArrowoodTech) as he contributes to the old version of the curriculum.
## Scripts auxiliares
## Helper Scripts
> [!NOTE]
> Se estiver trabalhando com os desafios baseados em passos, consulte a seção [Trabalho com projetos práticos](how-to-work-on-practice-projects.md).
> If you are working with the step-based challenges, refer to the [Work on Practice Projects](how-to-work-on-practice-projects.md) section.
Existem alguns scripts auxiliares que podem ser usados para gerenciar os desafios em um bloco. Observe que todos esses comandos devem ser executados no diretório do bloco. Por exemplo:
There are a few helper scripts that can be used to manage the challenges in a block. Note that these commands should all be run in the block directory. For example:
```bash
cd curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting
@@ -517,33 +523,33 @@ cd curriculum/challenges/english/02-javascript-algorithms-and-data-structures/ba
### Adicionar um novo desafio
Para adicionar um novo desafio no final de um bloco, chame o script:
To add a new challenge at the end of a block, call the script:
```bash
pnpm run create-next-challenge
```
Ele solicitará a informação do desafio e criará o arquivo de desafio, atualizando o arquivo `meta.json` com as novas informações de desafio.
This will prompt you for the challenge information and create the challenge file, updating the `meta.json` file with the new challenge information.
### Excluir um desafio
Para excluir um desafio, chame o script:
To delete a challenge, call the script:
```bash
pnpm run delete-challenge
```
Ele solicitará que você selecione qual desafio deve ser excluído. Em seguida, excluirá o arquivo e atualizará o arquivo `meta.json` para remover o desafio da ordem.
This will prompt you to select which challenge should be deleted, then delete the file and update the `meta.json` file to remove the challenge from the order.
### Inserir um desafio
Para inserir um desafio antes de um desafio existente, chame o script:
To insert a challenge before an existing challenge, call the script:
```bash
pnpm run insert-challenge
```
Ele solicitará a informação do desafio e, em seguida, o desafio será inserido antes do desafio informado. Por exemplo, se suas escolhas forem:
This will prompt you for the challenge information, then for the challenge to insert before. For example, if your choices are:
```bash
a
@@ -551,37 +557,37 @@ b
c
```
E se você escolher `b`, a nova ordem será:
And you choose `b`, your new order will be:
```bash
a
novo desafio
new challenge
b
c
```
### Atualizar a ordem dos desafios
Se você precisar reordenar manualmente os desafios, chame o script:
If you need to manually re-order the challenges, call the script:
```bash
pnpm run update-challenge-order
```
Ele vai orientá-lo através de um processo interativo para selecionar a ordem dos desafios.
This will take you through an interactive process to select the order of the challenges.
## Solução de problemas
### Loop infinito detectado
Se você ver o seguinte erro no console ao pré-visualizar um desafio:
If you see the following error in the console while previewing a challenge:
```text
Potential infinite loop detected on line <number>...
```
Isso significa que o plug-in de proteção de loops encontrou um loop de longa duração ou uma função recursiva. Se o desafio precisar fazer isso (por exemplo, contém um loop de eventos que deve ser executado indefinidamente), então você pode impedir que o plug-in seja usado na visualização. Para fazer isso, adicione `disableLoopProtectPreview: true` ao arquivo `meta.json` do bloco.
This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file.
Se os testes demandam muitos cálculos, você poderá ver esse erro quando eles forem executados. Se isso acontecer, adicione `disableLoopProtectPreview: true` ao arquivo `meta.json` do bloco.
If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file.
Normalmente, não é necessário ter os dois definidos como true, Defina-os, apenas, conforme necessário.
It's not typically necessary to have both set to true, so only set them as needed.
@@ -205,7 +205,7 @@ pnpm -v
```console
# Створіть копію «sample.env» та назвіть її «.env».
# Populate it with the necessary API keys and secrets
# Заповніть її необхідними ключами та секретами API
```
```console
@@ -216,7 +216,7 @@ cp sample.env .env
> [!TIP] Майте на увазі, якщо ви використовуватимете Auth0 або Algolia, вам потрібно отримати власні ключі API для цих служб та відредагувати введені дані у файлі `.env`.
#### Step 2: Install Dependencies
#### Крок 2: встановіть залежності
У цьому кроці буде встановлено залежності, необхідні для запуску застосунку:
@@ -224,7 +224,7 @@ cp sample.env .env
pnpm install && pnpm run create:shared
```
#### Step 3: Start MongoDB and Seed the Database
#### Крок 3: запустіть MongoDB та додайте базу даних
Перш ніж локально запустити застосунок, потрібно запустити службу MongoDB.
@@ -240,13 +240,13 @@ mongod
> [!TIP] Ви можете не запускати MongoDB кожного разу, встановивши його як фонову службу. Для детальнішої інформації див. [документацію MongoDB для вашої ОС](https://docs.mongodb.com/manual/administration/install-community/)
Next, let's seed the database. In this step, we run the below command that fills the MongoDB server with some initial data sets that are required by services. These include a few schemas, among other things.
Тепер додамо базу даних. На цьому кроці ми запускаємо нижченаведену команду, яка заповнює сервер MongoDB деякими початковими наборами даних, потрібних службам. До них належать деякі схеми та інше.
```console
pnpm run seed
```
By default, you will be signed in as a new user without any completed certifications. Run the following command if you need to develop with completed certifications:
Ви увійдете як новий користувач без будь-яких завершених сертифікацій за замовчуванням. Запустіть цю команду, якщо потрібні наявні виконані сертифікації:
```console
pnpm run seed:certified-user
@@ -254,29 +254,29 @@ pnpm run seed:certified-user
> [!WARNING] Якщо запустити `pnpm run seed:certified-user`, ви вийдете з облікового запису. Вам доведеться очистити cookies свого браузера та увійти знову.
#### Step 4: Start the freeCodeCamp Client Application and API Server
#### Крок 4: запустіть клієнтську програму freeCodeCamp та сервер API
You can now start up the API server and the client applications.
Тепер ви можете запустити сервер API та клієнтську програму.
```console
pnpm run develop
```
This single command will fire up all the services, including the API server and the client applications available for you to work on.
Ця команда запустить всі служби, включно з сервером API та клієнтською програмою, з якими ви можете працювати.
Once ready, open a web browser and visit <http://localhost:8000>. If the app loads, sign in. Congratulations you're all set! You now have a copy of freeCodeCamp's entire learning platform running on your local machine.
Після цього відкрийте веббраузер та відвідайте <http://localhost:8000>. Якщо застосунок завантажується, увійдіть в систему. Вітання — все готово! Тепер ви маєте копію повної навчальної платформи freeCodeCamp на своїй локальній машині.
The API server serves endpoints at `http://localhost:3000`. The Gatsby app serves the client application at `http://localhost:8000`.
Сервер API обслуговує кінцеві точки на `http://localhost:3000`. Gatsby обслуговує клієнтську програму на `http://localhost:8000`.
While you are logged in, if you visit <http://localhost:3000/explorer> you should see the available APIs.
Якщо ви увійшли в систему, відвідайте <http://localhost:3000/explorer> і побачите доступні API.
> [!WARNING] Якщо очистити cookies чи запустити `pnpm run seed:certified-user`, ви вийдете з системи та вам доведеться увійти знову.
If you have issues while installing it, check out the [troubleshooting section](troubleshooting-development-issues.md).
Якщо у вас виникли проблеми, див. розділ з [розв’язання проблем розробки](troubleshooting-development-issues.md).
## Коротко про команди
A quick reference to the commands that you will need when working locally.
Короткий довідник команд, які знадобляться при локальній роботі.
| команда | опис |
| ------------------------------ | --------------------------------------------------------------------------------------------------- |
@@ -374,7 +374,7 @@ flutter run
cd freeCodeCamp
```
3. Make a copy of the `.env` file:
3. Зробіть копію файлу `.env`:
#### **macOS/Linux**
@@ -388,19 +388,19 @@ flutter run
copy sample.env .env
```
4. Install the dependencies for the freeCodeCamp repo:
4. Встановіть залежності для репозиторію freeCodeCamp:
```console
pnpm install && pnpm run create:shared
```
5. Generate the challenge data JSON file:
5. Створіть файл JSON з даними завдань:
```console
pnpm run build:curriculum
```
6. Copy the generated JSON file to the mobile app:
6. Скопіюйте створений файл JSON до мобільного застосунку:
#### **macOS/Linux**
@@ -413,43 +413,43 @@ flutter run
copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json
```
7. Change directory to the mobile app:
7. Змініть каталог на мобільний застосунок:
```console
cd ../mobile/mobile-app
```
8. Install the dependencies for the mobile app:
8. Встановіть залежності для мобільного застосунку:
```console
flutter pub get
```
9. Update the test file to use the challenge data JSON file:
9. Оновіть файл тестів, щоб використовувати файл JSON з даними завдань:
```console
sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart
```
10. Generate the challenge files:
10. Створіть файли завдань:
```console
flutter test test/widget_test.dart
```
11. Start a local server to serve the challenge files with the help of `serve` package:
11. Запустіть локальний сервер для обслуговування файлів завдань за допомогою пакету `serve`:
```console
npx serve
```
12. In a different terminal go back to the freeCodeCamp repo:
12. В іншому терміналі поверніться до репозиторію freeCodeCamp:
```console
cd ../../freeCodeCamp
```
13. Run the cypress tests:
13. Запустіть тести cypress:
```console
pnpm cypress run --config retries=1,screenshotOnRunFailure=false,video=false,baseUrl=http://localhost:3000/generated-tests/,specPattern=cypress/e2e/mobile-learn/test-challenges.js -s cypress/e2e/mobile-learn/test-challenges.js -b chrome
@@ -460,7 +460,13 @@ function myFunc() {
pnpm run test:curriculum
```
2. Ви можете перевірити блок або суперблок завдань за допомогою цих команд
2. To test single challenge, you can use it challenge id with following command
```
FCC_CHALLENGE_ID=646cf6cbca98e258da65c979 pnpm run test:curriculum
```
3. You can also test a block or a superblock of challenges with these commands
```
FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
@@ -470,43 +476,43 @@ FCC_BLOCK='Basic HTML and HTML5' pnpm run test:curriculum
FCC_SUPERBLOCK='responsive-web-design' pnpm run test:curriculum
```
Ви також можете перевірити окремо одне завдання, виконавши наступні дії:
You are also able to test challenges by title by performing the following steps:
1. Перейдіть до каталогу `curriculum`:
1. Switch to the `curriculum` directory:
```
cd curriculum
```
2. Виконайте цю команду для кожного файлу завдання, до якого ви внесли зміни (замінивши `challenge-title-goes-here` на повну назву завдання):
2. Run the following for each challenge file for which you have changed (replacing `challenge-title-goes-here` with the full title of the challenge):
```
pnpm run test -- -g challenge-title-goes-here
```
> [!TIP]
> Ви можете встановити змінну середовища `LOCALE` у `.env` на мову завдань, які потрібно протестувати.
> You can set the environment variable `LOCALE` in the `.env` to the language of the challenge(s) you need to test.
>
> Наразі прийнятними значеннями є `english` та `chinese` (`english` за замовчуванням).
> The currently accepted values are `english` and `chinese`, with `english` being set by default.
## Відкриття запиту на злиття (PR)
## Proposing a Pull Request (PR)
Як тільки ви затвердили свої зміни, див. [як відкрити запит на злиття](how-to-open-a-pull-request.md).
After you've committed your changes, check here for [how to open a Pull Request](how-to-open-a-pull-request.md).
## Корисні посилання
## Useful Links
Створення та редагування завдань:
Creating and Editing Challenges:
1. [Види завдань](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/utils/challenge-types.js#L1-L13) — що означають числові значення завдань (перелік).
1. [Challenge types](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/utils/challenge-types.js#L1-L13) - what the numeric challenge type values mean (enum).
2. [Внесок до FreeCodeCamp: написання тестів до завдань ES6](https://www.youtube.com/watch?v=iOdD84OSfAE#t=2h49m55s) — відео [Ітана Арровуда](https://twitter.com/ArrowoodTech) про його внесок до старої версії навчальної програми.
2. [Contributing to FreeCodeCamp - Writing ES6 Challenge Tests](https://www.youtube.com/watch?v=iOdD84OSfAE#t=2h49m55s) - a video following [Ethan Arrowood](https://twitter.com/ArrowoodTech) as he contributes to the old version of the curriculum.
## Допоміжні скрипти
## Helper Scripts
> [!NOTE]
> Якщо ви працюєте над покроковими завданнями, див. розділ щодо [роботи над практичними проєктами](how-to-work-on-practice-projects.md).
> If you are working with the step-based challenges, refer to the [Work on Practice Projects](how-to-work-on-practice-projects.md) section.
Існує декілька допоміжних скриптів, які можна використовувати для завдань у блоці. Зверніть увагу, що ці команди потрібно виконувати у каталозі блоків. Наприклад:
There are a few helper scripts that can be used to manage the challenges in a block. Note that these commands should all be run in the block directory. For example:
```bash
cd curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-algorithm-scripting
@@ -514,33 +520,33 @@ cd curriculum/challenges/english/02-javascript-algorithms-and-data-structures/ba
### Додати нове завдання
Щоб додати нове завдання в кінці блоку, викличте скрипт:
To add a new challenge at the end of a block, call the script:
```bash
pnpm run create-next-challenge
```
Це допоможе отримати інформацію про завдання та створити файл з завданням, оновивши файл `meta.json` новою інформацією про завдання.
This will prompt you for the challenge information and create the challenge file, updating the `meta.json` file with the new challenge information.
### Видалити завдання
Щоб видалити завдання, викличте скрипт:
To delete a challenge, call the script:
```bash
pnpm run delete-challenge
```
Це допоможе обрати потрібне завдання, видалити файл та оновити файл `meta.json`, щоб видалити завдання з порядку.
This will prompt you to select which challenge should be deleted, then delete the file and update the `meta.json` file to remove the challenge from the order.
### Вставити завдання
Щоб вставити завдання перед наявним завданням, викличте скрипт:
To insert a challenge before an existing challenge, call the script:
```bash
pnpm run insert-challenge
```
Це допоможе отримати інформацію про нове завдання, а також про наявне завдання. Наприклад, якщо варіанти такі:
This will prompt you for the challenge information, then for the challenge to insert before. For example, if your choices are:
```bash
a
@@ -548,7 +554,7 @@ b
c
```
Ви обираєте `b`, а новим порядком буде:
And you choose `b`, your new order will be:
```bash
a
@@ -559,26 +565,26 @@ c
### Оновити порядок завдань
Якщо вам потрібно змінити порядок завдань вручну, викличте скрипт:
If you need to manually re-order the challenges, call the script:
```bash
pnpm run update-challenge-order
```
Він проведе вас через інтерактивний процес, який допоможе впорядкувати завдання.
This will take you through an interactive process to select the order of the challenges.
## Розв’язання проблем розробки
### Виявлено нескінченний цикл
Якщо ви бачите цю помилку в консолі під час попереднього перегляду завдання:
If you see the following error in the console while previewing a challenge:
```text
Potential infinite loop detected on line <number>...
```
Це означає, що плагін для захисту циклу знайшов довгий цикл або рекурсивну функцію. Якщо ваше завдання передбачає їх (тобто містить нескінченний цикл), ви можете запобігти використанню плагіну в попередньому перегляді. Для цього додайте `disableLoopProtectPreview: true` до файлу блоку `meta.json`.
This means that the loop-protect plugin has found a long-running loop or recursive function. If your challenge needs to do that (e.g. it contains an event loop that is supposed to run indefinitely), then you can prevent the plugin from being used in the preview. To do so, add `disableLoopProtectPreview: true` to the block's `meta.json` file.
Якщо ваші тести інтенсивно обчислюються, ви можете побачити цю помилку під час запуску. Якщо це відбувається, додайте `disableLoopProtectTests: true` до файлу блоку `meta.json`.
If your tests are computationally intensive, then you may see this error when they run. If this happens then you can add `disableLoopProtectTests: true` to the block's `meta.json` file.
Значенням обох необов’язково має бути true, тому налаштовуйте їх лише за потреби.
It's not typically necessary to have both set to true, so only set them as needed.
@@ -52,7 +52,7 @@ git clean -ifdX
Якщо ви не можете увійти, а замість цього бачите банер з повідомленням про помилку, яка буде відправлена до freeCodeCamp, будь ласка, перевірте, чи не використовується ваш локальний порт `3000` іншою програмою.
#### **From Terminal:**
#### **З термінала:**
```console
netstat -a | grep "3000"