From 031bfcd7282a597c86c63e3e6bec725a2bc2f2bc Mon Sep 17 00:00:00 2001 From: camperbot Date: Fri, 7 Jul 2023 22:19:48 +0530 Subject: [PATCH] chore(i18n,docs): processed translations (#50918) --- ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ ...o-setup-freecodecamp-mobile-app-locally.md | 107 ++++++++++++++++++ 8 files changed, 856 insertions(+) diff --git a/docs/i18n/chinese-traditional/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/chinese-traditional/how-to-setup-freecodecamp-mobile-app-locally.md index 2ee38da1b31..c76965ee5fb 100644 --- a/docs/i18n/chinese-traditional/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/chinese-traditional/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ Follow these steps: git push origin branch/name-here ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Proposing a Pull Request (PR) After you've committed your changes, check here for [how to open a Pull Request](how-to-open-a-pull-request.md). diff --git a/docs/i18n/chinese/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/chinese/how-to-setup-freecodecamp-mobile-app-locally.md index 2ee38da1b31..c76965ee5fb 100644 --- a/docs/i18n/chinese/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/chinese/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ Follow these steps: git push origin branch/name-here ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Proposing a Pull Request (PR) After you've committed your changes, check here for [how to open a Pull Request](how-to-open-a-pull-request.md). diff --git a/docs/i18n/espanol/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/espanol/how-to-setup-freecodecamp-mobile-app-locally.md index fd4b74f9ef6..a09e42a7ccf 100644 --- a/docs/i18n/espanol/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/espanol/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ Sigue estos pasos: git push origin nombre/rama-aqui ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Proposing a Pull Request (PR) Después de que hayas hecho commit de tus cambios, consulta aquí [cómo abrir una Pull Request](how-to-open-a-pull-request.md). diff --git a/docs/i18n/german/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/german/how-to-setup-freecodecamp-mobile-app-locally.md index e526596881f..81499ec1b5d 100644 --- a/docs/i18n/german/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/german/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ Folge diesen Schritten: git push origin branch/name-here ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Proposing a Pull Request (PR) Nachdem du deine Änderungen übertragen hast, kannst du hier nachlesen, [wie man einen Pull Request erstellt](how-to-open-a-pull-request.md). diff --git a/docs/i18n/italian/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/italian/how-to-setup-freecodecamp-mobile-app-locally.md index d7e5e0b844a..b0dbed9c2a4 100644 --- a/docs/i18n/italian/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/italian/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ Segui questi passaggi: git push origin branch/name-here ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Proposing a Pull Request (PR) Dopo aver fatto il commit delle tue modifiche, controlla qui per [come aprire una Pull Request](how-to-open-a-pull-request.md). diff --git a/docs/i18n/japanese/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/japanese/how-to-setup-freecodecamp-mobile-app-locally.md index 2ee38da1b31..c76965ee5fb 100644 --- a/docs/i18n/japanese/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/japanese/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ Follow these steps: git push origin branch/name-here ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Proposing a Pull Request (PR) After you've committed your changes, check here for [how to open a Pull Request](how-to-open-a-pull-request.md). diff --git a/docs/i18n/portuguese/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/portuguese/how-to-setup-freecodecamp-mobile-app-locally.md index 7fe215950b1..42735506fbb 100644 --- a/docs/i18n/portuguese/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/portuguese/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ Siga estes passos: git push origin branch/nome-aqui ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Propondo um Pull Request (PR) Após ter feito as alterações, veja [como abrir um Pull Request](how-to-open-a-pull-request.md). diff --git a/docs/i18n/ukrainian/how-to-setup-freecodecamp-mobile-app-locally.md b/docs/i18n/ukrainian/how-to-setup-freecodecamp-mobile-app-locally.md index 92a398b3ae7..3b8e068f359 100644 --- a/docs/i18n/ukrainian/how-to-setup-freecodecamp-mobile-app-locally.md +++ b/docs/i18n/ukrainian/how-to-setup-freecodecamp-mobile-app-locally.md @@ -361,6 +361,113 @@ flutter run git push origin branch/name-here ``` +## Running mobile curriculum tests + +> [!NOTE] You only need to follow this section if you're modifying the challenge test runner in the mobile app. Otherwise, you can go to the next section on [how to open a pull request](#proposing-a-pull-request-pr). + +1. Clone a copy of the [freeCodeCamp repo](https://github.com/freeCodeCamp/freeCodeCamp) locally outside of your local copy of freeCodeCamp mobile repo. Your folder structure should look like this: + + ```console + ├── freeCodeCamp + ├── mobile + ``` + +2. Change directory to the freeCodeCamp repo: + + ```console + cd freeCodeCamp + ``` + +3. Make a copy of the `.env` file: + + + +#### **macOS/Linux** + +```console +cp sample.env .env +``` + +#### **Windows** + +```console +copy sample.env .env +``` + + + +4. Install the dependencies for the freeCodeCamp repo: + + ```console + pnpm install && pnpm run create:config + ``` + +5. Generate the challenge data JSON file: + + ```console + pnpm run build:curriculum + ``` + +6. Copy the generated JSON file to the mobile app: + + + +#### **macOS/Linux** + +```console +cp ./config/curriculum.json ../mobile/mobile-app/curriculum.json +``` + +#### **Windows** + +```console +copy .\config\curriculum.json ..\mobile\mobile-app\curriculum.json +``` + + + +7. Change directory to the mobile app: + + ```console + cd ../mobile/mobile-app + ``` + +8. Install the dependencies for the mobile app: + + ```console + flutter pub get + ``` + +9. Update the test file to use the challenge data JSON file: + + ```console + sed -i '' 's/..\/..\/config\/curriculum.json/.\/curriculum.json/g' test/widget_test.dart + ``` + +10. Generate the challenge files: + + ```console + flutter test test/widget_test.dart + ``` + +11. Start a local server to serve the challenge files with the help of `serve` package: + + ```console + npx serve + ``` + +12. In a different terminal go back to the freeCodeCamp repo: + + ```console + cd ../../freeCodeCamp + ``` + +13. Run the cypress tests: + + ```console + pn 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 + ``` + ## Запропонуйте запит на злиття (PR) Як тільки ви затвердили свої зміни, див. [як відкрити запит на злиття](how-to-open-a-pull-request.md).