mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-28 03:49:22 +08:00
chore(i18n,docs): processed translations (#50884)
This commit is contained in:
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Set Translated SuperBlocks
|
||||
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it:
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Be sure to only add the superblocks which are **not** fully translated and approved. The translated superblocks will be calculated from this object. When a new superblock is finished being fully translated, remove it from the array for that language.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Configure Search
|
||||
|
||||
Next, open the `client/src/utils/algolia-locale-setup.ts` file. This data is used for the search bar that loads `/news` articles. While it is unlikely that you are going to test this functionality, missing the data for your language can lead to errors when attempting to build the codebase locally.
|
||||
@@ -245,7 +247,6 @@ You will want to copy the following files from `/client/i18n/locales/english` to
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Testing Translations Locally
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ With `link` being the link of the original article.
|
||||
|
||||
> [!TIP] Changing the articles in the footer at least once a month means giving a boost to the linked articles on Google results.
|
||||
|
||||
There are two places in which to change the trending articles.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [The curriculum repository](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [The CDN repository](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
For each article, you will need to create a shorter title to use in the footer.
|
||||
|
||||
### Change Trending Articles in the Curriculum
|
||||
|
||||
The trending articles in the curriculum footer can be changed by editing the file at `client/i18n/locales/<language>/trending.json`.
|
||||
|
||||
This file is a `*.json` file that has the shape of an object with property keys in the shape `article0title` and `article0link`.
|
||||
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
This is an example of how part of the `trending.json` file has to look.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title": "Unire CSV con Python",
|
||||
"article0link": "https://www.freecodecamp.org/italian/news/come-combinare-file-multipli-in-formato-csv-con-8-righe-di-codice/",
|
||||
"article1title": "Il comando Git push",
|
||||
"article1link": "https://www.freecodecamp.org/italian/news/il-comando-git-push-spiegato/",
|
||||
"article2title": "Centrare immagini in CSS",
|
||||
"article2link": "https://www.freecodecamp.org/italian/news/come-centrare-un-immagine-usando/",
|
||||
"article3title": "I codici Alt",
|
||||
"article3link": "https://www.freecodecamp.org/italian/news/codici-alt/",
|
||||
"article4title": "Tenere a bada il footer",
|
||||
"article4link": "https://www.freecodecamp.org/italian/news/come-mantenere-il-footer-al-suo-posto/",
|
||||
"article5title": "Cosa è un'API?",
|
||||
"article5link": "https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
### How to Update the Trending Articles in the CDN
|
||||
|
||||
The file in the CDN repository is the file `universal/trending/<language>.yaml`.
|
||||
|
||||
This file is shaped differently. For example, here is the file content for the first 6 articles:
|
||||
For example, here is the file content for the first 6 articles:
|
||||
|
||||
```yaml
|
||||
article0title: 'Unire CSV con Python'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Cosa è API?'
|
||||
article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/'
|
||||
```
|
||||
|
||||
You can convert from one format to the other carefully changing it manually. Or you can use [the script in this repl](https://replit.com/@Ieahleen/convert-json-to-yaml).
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
> [!TIP] A new workflow is being worked on, there will be only one place to change in the future.
|
||||
For each article, you will need to create a shorter title to use in the footer. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## How to Translate Articles in the Footer Links
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Set Translated SuperBlocks
|
||||
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it:
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Be sure to only add the superblocks which are **not** fully translated and approved. The translated superblocks will be calculated from this object. When a new superblock is finished being fully translated, remove it from the array for that language.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Configure Search
|
||||
|
||||
Next, open the `client/src/utils/algolia-locale-setup.ts` file. This data is used for the search bar that loads `/news` articles. While it is unlikely that you are going to test this functionality, missing the data for your language can lead to errors when attempting to build the codebase locally.
|
||||
@@ -245,7 +247,6 @@ You will want to copy the following files from `/client/i18n/locales/english` to
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Testing Translations Locally
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ With `link` being the link of the original article.
|
||||
|
||||
> [!TIP] Changing the articles in the footer at least once a month means giving a boost to the linked articles on Google results.
|
||||
|
||||
There are two places in which to change the trending articles.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [The curriculum repository](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [The CDN repository](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
For each article, you will need to create a shorter title to use in the footer.
|
||||
|
||||
### Change Trending Articles in the Curriculum
|
||||
|
||||
The trending articles in the curriculum footer can be changed by editing the file at `client/i18n/locales/<language>/trending.json`.
|
||||
|
||||
This file is a `*.json` file that has the shape of an object with property keys in the shape `article0title` and `article0link`.
|
||||
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
This is an example of how part of the `trending.json` file has to look.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title": "Unire CSV con Python",
|
||||
"article0link": "https://www.freecodecamp.org/italian/news/come-combinare-file-multipli-in-formato-csv-con-8-righe-di-codice/",
|
||||
"article1title": "Il comando Git push",
|
||||
"article1link": "https://www.freecodecamp.org/italian/news/il-comando-git-push-spiegato/",
|
||||
"article2title": "Centrare immagini in CSS",
|
||||
"article2link": "https://www.freecodecamp.org/italian/news/come-centrare-un-immagine-usando/",
|
||||
"article3title": "I codici Alt",
|
||||
"article3link": "https://www.freecodecamp.org/italian/news/codici-alt/",
|
||||
"article4title": "Tenere a bada il footer",
|
||||
"article4link": "https://www.freecodecamp.org/italian/news/come-mantenere-il-footer-al-suo-posto/",
|
||||
"article5title": "Cosa è un'API?",
|
||||
"article5link": "https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
### How to Update the Trending Articles in the CDN
|
||||
|
||||
The file in the CDN repository is the file `universal/trending/<language>.yaml`.
|
||||
|
||||
This file is shaped differently. For example, here is the file content for the first 6 articles:
|
||||
For example, here is the file content for the first 6 articles:
|
||||
|
||||
```yaml
|
||||
article0title: 'Unire CSV con Python'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Cosa è API?'
|
||||
article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/'
|
||||
```
|
||||
|
||||
You can convert from one format to the other carefully changing it manually. Or you can use [the script in this repl](https://replit.com/@Ieahleen/convert-json-to-yaml).
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
> [!TIP] A new workflow is being worked on, there will be only one place to change in the future.
|
||||
For each article, you will need to create a shorter title to use in the footer. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## How to Translate Articles in the Footer Links
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Set Translated SuperBlocks
|
||||
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it:
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Be sure to only add the superblocks which are **not** fully translated and approved. The translated superblocks will be calculated from this object. When a new superblock is finished being fully translated, remove it from the array for that language.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Configure Search
|
||||
|
||||
A continuación, abre el archivo: `client/src/utils/algolia-locale-setup.ts`. Estos datos son utilizados por la barra de búsqueda que carga artículos de `/news`. Si bien es poco probable que vayas a probar esta funcionalidad, lea falta de datos para tu lenguaje puede llevarle a errores al intentar construir el código base localmente.
|
||||
@@ -245,7 +247,6 @@ Usted quedrá copiar los siguientes archivos desde `/client/i18n/locales/english
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Testing Translations Locally
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ Con `link` siendo el enlace del artículo original.
|
||||
|
||||
> [!TIP] Changing the articles in the footer at least once a month means giving a boost to the linked articles on Google results.
|
||||
|
||||
Hay dos lugares en los que cambiar las tendencias de artículos.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [El repositorio del currículo](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [El repositorio CDN](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
For each article, you will need to create a shorter title to use in the footer.
|
||||
|
||||
### Change Trending Articles in the Curriculum
|
||||
|
||||
The trending articles in the curriculum footer can be changed by editing the file at `client/i18n/locales/<language>/trending.json`.
|
||||
|
||||
This file is a `*.json` file that has the shape of an object with property keys in the shape `article0title` and `article0link`.
|
||||
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
Este es un ejemplo de cómo tiene que verse parte del archivo `trending.json`.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title": "Unire CSV con Python",
|
||||
"article0link": "https://www.freecodecamp.org/italian/news/come-combinare-file-multipli-in-formato-csv-con-8-righe-di-codice/",
|
||||
"article1title": "Il comando Git push",
|
||||
"article1link": "https://www.freecodecamp.org/italian/news/il-comando-git-push-spiegato/",
|
||||
"article2title": "Centrare immagini in CSS",
|
||||
"article2link": "https://www.freecodecamp.org/italian/news/come-centrare-un-immagine-usando/",
|
||||
"article3title": "I codici Alt",
|
||||
"article3link": "https://www.freecodecamp.org/italian/news/codici-alt/",
|
||||
"article4title": "Tenere a bada il footer",
|
||||
"article4link": "https://www.freecodecamp.org/italian/news/come-mantenere-il-footer-al-suo-posto/",
|
||||
"article5title": "Cosa è un'API?",
|
||||
"article5link": "https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
### How to Update the Trending Articles in the CDN
|
||||
|
||||
The file in the CDN repository is the file `universal/trending/<language>.yaml`.
|
||||
|
||||
This file is shaped differently. For example, here is the file content for the first 6 articles:
|
||||
For example, here is the file content for the first 6 articles:
|
||||
|
||||
```yaml
|
||||
article0title: 'Unire CSV con Python'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Cosa è API?'
|
||||
article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/'
|
||||
```
|
||||
|
||||
You can convert from one format to the other carefully changing it manually. Or you can use [the script in this repl](https://replit.com/@Ieahleen/convert-json-to-yaml).
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
> [!TIP] A new workflow is being worked on, there will be only one place to change in the future.
|
||||
For each article, you will need to create a shorter title to use in the footer. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## How to Translate Articles in the Footer Links
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Set Translated SuperBlocks
|
||||
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it:
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Be sure to only add the superblocks which are **not** fully translated and approved. The translated superblocks will be calculated from this object. When a new superblock is finished being fully translated, remove it from the array for that language.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Configure Search
|
||||
|
||||
Als nächstes öffnest du die Datei `client/src/utils/algolia-locale-setup.ts`. Diese Daten werden für die Suchleiste verwendet, die `/news `-Artikel lädt. Es ist zwar unwahrscheinlich, dass du diese Funktion testen wirst, aber das Fehlen der Daten für deine Sprache kann zu Fehlern führen, wenn du versuchst, die Codebasis lokal zu erstellen.
|
||||
@@ -245,7 +247,6 @@ Du musst die folgenden Dateien von `/client/i18n/locales/english` nach `/client/
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Testing Translations Locally
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ The original author and the original article are linked automatically adding thi
|
||||
|
||||
> [!TIP] Changing the articles in the footer at least once a month means giving a boost to the linked articles on Google results.
|
||||
|
||||
Es gibt zwei Stellen, an denen du die angesagten Artikel ändern kannst.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [Das Curriculum-Repository](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [Das CDN-Repository](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
For each article, you will need to create a shorter title to use in the footer.
|
||||
|
||||
### Change Trending Articles in the Curriculum
|
||||
|
||||
Die angesagte Artikel in der Fußzeile des Lehrplans können durch Bearbeiten der Datei `client/i18n/locales/<language>/trending.json` geändert werden.
|
||||
|
||||
Diese Datei ist eine `*.json`-Datei, die die Form eines Objekts mit Eigenschaftsschlüsseln in der Form `article0title` und `article0link` hat.
|
||||
|
||||
Each number represents one of the 30 articles in the footer. Achte darauf, dass der Titel und der Link richtig zugeordnet sind.
|
||||
|
||||
Dies ist ein Beispiel dafür, wie ein Teil der Datei `trending.json` aussehen muss.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title": "Unire CSV con Python",
|
||||
"article0link": "https://www.freecodecamp.org/italian/news/come-combinare-file-multipli-in-formato-csv-con-8-righe-di-codice/",
|
||||
"article1title": "Il comando Git push",
|
||||
"article1link": "https://www.freecodecamp.org/italian/news/il-comando-git-push-spiegato/",
|
||||
"article2title": "Centrare immagini in CSS",
|
||||
"article2link": "https://www.freecodecamp.org/italian/news/come-centrare-un-immagine-usando/",
|
||||
"article3title": "I codici Alt",
|
||||
"article3link": "https://www.freecodecamp.org/italian/news/codici-alt/",
|
||||
"article4title": "Tenere a bada il footer",
|
||||
"article4link": "https://www.freecodecamp.org/italian/news/come-mantenere-il-footer-al-suo-posto/",
|
||||
"article5title": "Cosa è un'API?",
|
||||
"article5link": "https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Du solltest [den übersetzten Client lokal einrichten](how-to-enable-new-languages.md), um zu sehen, ob die Titel die richtige Länge haben. Jeder Titel muss in einer einzigen Zeile bleiben und darf nicht in eine neue Zeile übergehen.
|
||||
|
||||
### How to Update the Trending Articles in the CDN
|
||||
|
||||
The file in the CDN repository is the file `universal/trending/<language>.yaml`.
|
||||
|
||||
This file is shaped differently. For example, here is the file content for the first 6 articles:
|
||||
For example, here is the file content for the first 6 articles:
|
||||
|
||||
```yaml
|
||||
article0title: 'Unire CSV con Python'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Cosa è API?'
|
||||
article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/'
|
||||
```
|
||||
|
||||
Du kannst von einem Format in ein anderes konvertieren, indem du es vorsichtig manuell ändern. Oder du kannst [das Skript in diesem Repl](https://replit.com/@Ieahleen/convert-json-to-yaml) verwenden.
|
||||
Each number represents one of the 30 articles in the footer. Achte darauf, dass der Titel und der Link richtig zugeordnet sind.
|
||||
|
||||
> [!TIP] Es wird an einem neuen Arbeitsablauf gearbeitet, sodass es in Zukunft nur noch eine Stelle gibt, an der Änderungen vorgenommen werden müssen.
|
||||
For each article, you will need to create a shorter title to use in the footer. Jeder Titel muss in einer einzigen Zeile bleiben und darf nicht in eine neue Zeile übergehen.
|
||||
|
||||
Du solltest [den übersetzten Client lokal einrichten](how-to-enable-new-languages.md), um zu sehen, ob die Titel die richtige Länge haben. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## How to Translate Articles in the Footer Links
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Set Translated SuperBlocks
|
||||
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it:
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Be sure to only add the superblocks which are **not** fully translated and approved. The translated superblocks will be calculated from this object. When a new superblock is finished being fully translated, remove it from the array for that language.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Configurare la ricerca
|
||||
|
||||
Poi, apri il file `client/src/utils/algolia-locale-setup.ts`. Questi dati sono usati dalla barra di ricerca che carica gli articoli in `/news`. Anche se è poco probabile che tu stia testando questa funzione, se questi dati mancano per la tua lingua possono esserci degli errori nel costruire il codebase localmente.
|
||||
@@ -245,7 +247,6 @@ Dovrai copiare i seguenti file da `/client/i18n/locales/english` a `/client/i18n
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Testing Translations Locally
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ The original author and the original article are linked automatically adding thi
|
||||
|
||||
> [!TIP] Changing the articles in the footer at least once a month means giving a boost to the linked articles on Google results.
|
||||
|
||||
Ci sono due posti in cui cambiare gli articoli di tendenza.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [Il repository del curriculum](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [Il repository CDN](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
For each article, you will need to create a shorter title to use in the footer.
|
||||
|
||||
### Change Trending Articles in the Curriculum
|
||||
|
||||
Gli articoli di tendenza nel piè di pagina del curriculum possono essere cambiati modificando il file `client/i18n/locales/<language>/trending.json`.
|
||||
|
||||
Questo è un file `*.json` che ha la struttura di un oggetto con chiavi di proprietà in forma di `article0title` e `article0link`.
|
||||
|
||||
Each number represents one of the 30 articles in the footer. Assicurati di abbinare correttamente il titolo e il link.
|
||||
|
||||
Questo è un esempio di come deve essere una parte del file `trending.json`.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title": "Unire CSV con Python",
|
||||
"article0link": "https://www.freecodecamp.org/italian/news/come-combinare-file-multipli-in-formato-csv-con-8-righe-di-codice/",
|
||||
"article1title": "Il comando Git push",
|
||||
"article1link": "https://www.freecodecamp.org/italian/news/il-comando-git-push-spiegato/",
|
||||
"article2title": "Centrare immagini in CSS",
|
||||
"article2link": "https://www.freecodecamp.org/italian/news/come-centrare-un-immagine-usando/",
|
||||
"article3title": "I codici Alt",
|
||||
"article3link": "https://www.freecodecamp.org/italian/news/codici-alt/",
|
||||
"article4title": "Tenere a bada il footer",
|
||||
"article4link": "https://www.freecodecamp.org/italian/news/come-mantenere-il-footer-al-suo-posto/",
|
||||
"article5title": "Cosa è un'API?",
|
||||
"article5link": "https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Dovrai [fare il build in locale del client tradotto](how-to-enable-new-languages.md) per vedere se i titoli hanno la giusta lunghezza. Ogni titolo deve rimanere su una sola riga e non andare sulla successiva.
|
||||
|
||||
### How to Update the Trending Articles in the CDN
|
||||
|
||||
The file in the CDN repository is the file `universal/trending/<language>.yaml`.
|
||||
|
||||
This file is shaped differently. For example, here is the file content for the first 6 articles:
|
||||
For example, here is the file content for the first 6 articles:
|
||||
|
||||
```yaml
|
||||
article0title: 'Unire CSV con Python'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Cosa è API?'
|
||||
article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/'
|
||||
```
|
||||
|
||||
Puoi passare da un formato all'altro cambiandolo con attenzione manualmente. Oppure puoi usare [lo script in questo repl](https://replit.com/@Ieahleen/convert-json-to-yaml).
|
||||
Each number represents one of the 30 articles in the footer. Assicurati di abbinare correttamente il titolo e il link.
|
||||
|
||||
> [!TIP] Un nuovo workflow è in fase di sviluppo, ci sarà solo un posto in cui apportare modifiche in futuro.
|
||||
For each article, you will need to create a shorter title to use in the footer. Ogni titolo deve rimanere su una sola riga e non andare sulla successiva.
|
||||
|
||||
Dovrai [fare il build in locale del client tradotto](how-to-enable-new-languages.md) per vedere se i titoli hanno la giusta lunghezza. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## How to Translate Articles in the Footer Links
|
||||
|
||||
@@ -152,7 +125,7 @@ Una volta che hai tradotto e pubblicato gli articoli elencati come "possono esse
|
||||
|
||||
> [!WARNING] Solo "About", "Support", "Academic Honesty", e "Code of Conduct" possono essere tradotti. Lascia gli altri URL invariati.
|
||||
|
||||
Aggiorna la seguente parte nel file:
|
||||
Update the following part in the file:
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Set Translated SuperBlocks
|
||||
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it:
|
||||
In the [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) file, add the new language to the `notAuditedSuperBlocks` object. This lists all the superblocks which are not fully translated. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Be sure to only add the superblocks which are **not** fully translated and approved. The translated superblocks will be calculated from this object. When a new superblock is finished being fully translated, remove it from the array for that language.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Configure Search
|
||||
|
||||
Next, open the `client/src/utils/algolia-locale-setup.ts` file. This data is used for the search bar that loads `/news` articles. While it is unlikely that you are going to test this functionality, missing the data for your language can lead to errors when attempting to build the codebase locally.
|
||||
@@ -245,7 +247,6 @@ You will want to copy the following files from `/client/i18n/locales/english` to
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Testing Translations Locally
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ With `link` being the link of the original article.
|
||||
|
||||
> [!TIP] Changing the articles in the footer at least once a month means giving a boost to the linked articles on Google results.
|
||||
|
||||
There are two places in which to change the trending articles.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [The curriculum repository](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [The CDN repository](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
For each article, you will need to create a shorter title to use in the footer.
|
||||
|
||||
### Change Trending Articles in the Curriculum
|
||||
|
||||
The trending articles in the curriculum footer can be changed by editing the file at `client/i18n/locales/<language>/trending.json`.
|
||||
|
||||
This file is a `*.json` file that has the shape of an object with property keys in the shape `article0title` and `article0link`.
|
||||
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
This is an example of how part of the `trending.json` file has to look.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title": "Unire CSV con Python",
|
||||
"article0link": "https://www.freecodecamp.org/italian/news/come-combinare-file-multipli-in-formato-csv-con-8-righe-di-codice/",
|
||||
"article1title": "Il comando Git push",
|
||||
"article1link": "https://www.freecodecamp.org/italian/news/il-comando-git-push-spiegato/",
|
||||
"article2title": "Centrare immagini in CSS",
|
||||
"article2link": "https://www.freecodecamp.org/italian/news/come-centrare-un-immagine-usando/",
|
||||
"article3title": "I codici Alt",
|
||||
"article3link": "https://www.freecodecamp.org/italian/news/codici-alt/",
|
||||
"article4title": "Tenere a bada il footer",
|
||||
"article4link": "https://www.freecodecamp.org/italian/news/come-mantenere-il-footer-al-suo-posto/",
|
||||
"article5title": "Cosa è un'API?",
|
||||
"article5link": "https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
### How to Update the Trending Articles in the CDN
|
||||
|
||||
The file in the CDN repository is the file `universal/trending/<language>.yaml`.
|
||||
|
||||
This file is shaped differently. For example, here is the file content for the first 6 articles:
|
||||
For example, here is the file content for the first 6 articles:
|
||||
|
||||
```yaml
|
||||
article0title: 'Unire CSV con Python'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Cosa è API?'
|
||||
article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/'
|
||||
```
|
||||
|
||||
You can convert from one format to the other carefully changing it manually. Or you can use [the script in this repl](https://replit.com/@Ieahleen/convert-json-to-yaml).
|
||||
Each number represents one of the 30 articles in the footer. Make sure to match the title and the link correctly.
|
||||
|
||||
> [!TIP] A new workflow is being worked on, there will be only one place to change in the future.
|
||||
For each article, you will need to create a shorter title to use in the footer. Each title must stay on a single line and not go to a new line.
|
||||
|
||||
You will want to [build the translated client locally](how-to-enable-new-languages.md) to see if the titles have the right length. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## How to Translate Articles in the Footer Links
|
||||
|
||||
|
||||
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Configuração dos superblocos traduzidos
|
||||
|
||||
No arquivo [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts), adicione o novo idioma ao objeto `notAuditedSuperBlocks`. Isso lista todos os superblocos que não estão totalmente traduzidos. Adicione um array de superblocos que não foram totalmente traduzidos a ele:
|
||||
No arquivo [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts), adicione o novo idioma ao objeto `notAuditedSuperBlocks`. Isso lista todos os superblocos que não estão totalmente traduzidos. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Certifique-se de adicionar apenas os superblocos que **não** estão totalmente traduzidos e aprovados. Os superblocos traduzidos serão calculados a partir desse objeto. Quando um novo superbloco estiver totalmente traduzido, remova-o do array para esse idioma.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Configurar a busca
|
||||
|
||||
Agora, abra o arquivo `client/src/utils/algolia-locale-setup.ts`. Esse dado é usado para a barra de busca que carrega os artigos `/news`. Embora seja improvável que você venha a testar essa funcionalidade, não ter os dados para o seu idioma pode levar a erros quando tentar criar a base de código localmente.
|
||||
@@ -245,7 +247,6 @@ Você vai querer copiar os seguintes arquivos de `/client/i18n/locales/english`
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Testar traduções localmente
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ Sendo `link` o link do artigo original.
|
||||
|
||||
> [!TIP] Alterar os artigos no rodapé pelo menos uma vez por mês significa dar um impulso aos artigos vinculados nos resultados do Google.
|
||||
|
||||
Mudamos os artigos em destaque em dois lugares diferentes.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [O repositório do currículo](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [O repositório do CDN](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
Para cada artigo, você precisará criar um título menor para usar no rodapé.
|
||||
|
||||
### Alterar artigos em destaque no currículo
|
||||
|
||||
Os artigos em destaque no rodapé do currículo podem ser alterados, editando o arquivo em `client/i18n/locales/<language>/trending.json`.
|
||||
|
||||
Esse é um arquivo `*.json`, que tem a forma de um objeto com chaves de propriedade na forma `article0title` e `article0link`.
|
||||
|
||||
Cada número representa um dos 30 artigos do rodapé. Veriifique se a correspondência entre o título e o link está correta.
|
||||
|
||||
Este é um exemplo de como deve ser a aparência de parte do arquivo `trending.json`.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title":"Nova aba em HTML",
|
||||
"article0link":"https://www.freecodecamp.org/portuguese/news/como-usar-o-html-para-abrir-um-link-em-uma-nova-aba/",
|
||||
"article1title":"Máscaras de sub-rede",
|
||||
"article1link":"https://www.freecodecamp.org/portuguese/news/ficha-informativa-de-sub-redes-mascara-de-sub-rede-24-30-26-27-29/",
|
||||
"article2title":"40 projetos em JavaScript",
|
||||
"article2link":"https://www.freecodecamp.org/portuguese/news/40-projetos-em-javascript-para-iniciantes-ideias-simples-para-comecar-a-programar-em-js/",
|
||||
"article3title":"Tutorial de button onClick",
|
||||
"article3link":"https://www.freecodecamp.org/portuguese/news/tutorial-sobre-button-onclick-em-html-e-evento-de-clique-em-javascript/",
|
||||
"article4title":"Bot do Discord",
|
||||
"article4link":"https://www.freecodecamp.org/portuguese/news/tutorial-de-criacao-de-bot-para-o-discord-em-python/",
|
||||
"article5title":"Centralizar em CSS",
|
||||
"article5link":"https://www.freecodecamp.org/portuguese/news/como-centralizar-tudo-com-css/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Você vai querer [fazer a build do client traduzido localmente](how-to-enable-new-languages.md) para ver se os títulos têm o comprimento correto. Cada título deve permanecer em uma única linha e não deve ir para uma nova linha.
|
||||
|
||||
### Como atualizar os artigos em destaque no CDN
|
||||
|
||||
O arquivo no repositório CDN é o arquivo `universal/trending/<language>.yaml`.
|
||||
|
||||
Este arquivo está em formato diferente. Por exemplo, aqui está o conteúdo do arquivo para os primeiros 6 artigos:
|
||||
Por exemplo, aqui está o conteúdo do arquivo para os primeiros 6 artigos:
|
||||
|
||||
```yaml
|
||||
article0title: 'Nova aba em HTML'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Centralizar em CSS'
|
||||
article5link: 'https://www.freecodecamp.org/portuguese/news/como-centralizar-tudo-com-css/'
|
||||
```
|
||||
|
||||
Você pode converter de um formato para o outro cuidadosamente, alterando-o manualmente. Ou você pode usar [o script neste repl](https://replit.com/@Ieahleen/convert-json-to-yaml).
|
||||
Cada número representa um dos 30 artigos do rodapé. Veriifique se a correspondência entre o título e o link está correta.
|
||||
|
||||
> [!TIP] Um novo fluxo de trabalho está sendo trabalhado. Será preciso alterar em apenas um lugar no futuro.
|
||||
Para cada artigo, você precisará criar um título menor para usar no rodapé. Cada título deve permanecer em uma única linha e não deve ir para uma nova linha.
|
||||
|
||||
Você vai querer [fazer a build do client traduzido localmente](how-to-enable-new-languages.md) para ver se os títulos têm o comprimento correto. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## Como traduzir os artigos dos links de rodapé
|
||||
|
||||
@@ -152,7 +125,7 @@ Depois de ter traduzido e publicado os artigos listados como "podem ser traduzid
|
||||
|
||||
> [!WARNING] Apenas "Sobre", "Suporte", "Honestidade acadêmica" e "Código de conduta" podem ser traduzidos. Deixar os outros URLs inalterados.
|
||||
|
||||
Atualize a seguinte parte do arquivo:
|
||||
Update the following part in the file:
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -144,33 +144,33 @@ Há também situações em que o colaborador está tentando adicionar um link pa
|
||||
|
||||
Você pode fechar pull requests inválidos e respondê-los com esses [modelos de resposta](reply-templates.md#closing-invalid-pull-requests).
|
||||
|
||||
#### Filtering Pull Requests
|
||||
#### Filtrando pull requests
|
||||
|
||||
To sort Pull Requests for Quality Assurance for quick access to PRs that are ready for review, do not have a merge conflict, are not blocked, and have all status checks in green, use the following link to apply the filters:
|
||||
Para ordenar Pull Requests para Garantia de Qualidade para acesso rápido a PRs que estão prontos para revisão, não tenham conflitos de merge, não estejam bloqueadas e tenham todas as verificações de status em verde, use o seguinte link para aplicar os filtros:
|
||||
|
||||
[Direct link with filter applied](https://github.com/freeCodeCamp/freeCodeCamp/pulls?q=is%3Aopen+is%3Apr+-label%3A%22status%3A+blocked%22+-label%3A%22status%3A+merge+conflict%22+status%3Asuccess+draft%3Afalse)
|
||||
[Link direto com filtro aplicado](https://github.com/freeCodeCamp/freeCodeCamp/pulls?q=is%3Aopen+is%3Apr+-label%3A%22status%3A+blocked%22+-label%3A%22status%3A+merge+conflict%22+status%3Asuccess+draft%3Afalse)
|
||||
|
||||
#### Other Guidelines for Moderators on GitHub
|
||||
#### Outras diretrizes para moderadores no GitHub
|
||||
|
||||
Though you will have write access to freeCodeCamp's repository, **you should never push code directly to freeCodeCamp repositories**. All code should enter freeCodeCamp's codebase in the form of a pull request from a fork of the repository.
|
||||
Embora você tenha acesso de escrita ao repositório do freeCodeCamp, **você nunca deve enviar o código diretamente para repositórios do freeCodeCamp**. Todos os códigos devem entrar na base de código do freeCodeCamp em forma de pull request a partir de um fork do repositório.
|
||||
|
||||
Also, you should never accept your own PRs. They must be reviewed by another moderator, just like any other PR.
|
||||
Além disso, você nunca deve aceitar seus próprios PRs. Outro moderador deve revisá-los, assim como qualquer outro PR.
|
||||
|
||||
If you notice anyone breaking the [Code of Conduct](https://code-of-conduct.freecodecamp.org) on GitHub issues, or opening pull requests with malicious content or code, email `support[at]freecodecamp.org` with a link to the offending pull request, and we can consider banning them from freeCodeCamp's GitHub organization entirely.
|
||||
Se você notar que alguém quebrou o [Código de Conduta](https://code-of-conduct.freecodecamp.org) em issues do GitHub, ou abriu pull requests com conteúdo ou código malicioso, mande um e-mail para `support[at]freecodecamp.org` com o link do pull request e podemos considerar bani-los da organização do freeCodeCamp no GitHub.
|
||||
|
||||
## Moderando o Fórum
|
||||
|
||||
As a moderator, you help keep our community an enjoyable place for anyone to learn and get help. You will deal with flagged posts and handle spam, off-topic, and other inappropriate conversations.
|
||||
Como moderador, você ajuda a manter nossa comunidade um lugar agradável para qualquer pessoa aprender e buscar ajuda. Você lidará com postagens sinalizadas e tratará spam, mensagens fora do assunto e outras conversas inapropriadas.
|
||||
|
||||
Note that once you are a moderator on the forum, you will start to see blue moderator hints about forum members, like "this is the first time [person] has posted - let's welcome them to the community!" or "[person] hasn't posted in a long time - let's welcome them back."
|
||||
Note que, ao se tornar um moderador no fórum, você vai começar a ver dicas azuis sobre os membros do fórum, como "esta é a primeira vez que [person] postou - vamos dar as boas-vindas à comunidade!" ou "[person] não postou há muito tempo - vamos recebê-lo de volta."
|
||||
|
||||
![A blue text message saying "this is the first time [person] has posted - let's welcome them to the community!](https://i.imgur.com/mPmVgzK.png)
|
||||
![Uma mensagem de texto azul dizendo "esta é a primeira vez que [person] postou - vamos dar as boas-vindas à comunidade!](https://i.imgur.com/mPmVgzK.png)
|
||||
|
||||
These are opportunities for you to welcome them and make them feel extra special. You never know which person who's marginally involved may become our next super-helper, helping many other people in their coding journey. Even the slightest kindness may trigger a cascade of good deeds.
|
||||
São oportunidades para você recebê-lo(a) e fazê-lo(a) sentir-se mais especial. Nunca se sabe quais pessoas que estão pouco envolvidas e que podem ser nossos próximos superajudantes, ajudando muitas outras pessoas na sua jornada de programação. Mesmo a menor bondade pode desencadear várias boas ações.
|
||||
|
||||
### Excluindo publicações do fórum
|
||||
|
||||
Forum moderators can delete users' posts. You should only do this for the following instances:
|
||||
Moderadores do fórum podem apagar as postagens dos usuários. Você só deve fazer isso para as seguintes instâncias:
|
||||
|
||||
1. Alguém postou uma imagem pornográfica ou graficamente violenta.
|
||||
2. Alguém postou um link ou código de natureza maliciosa que pode prejudicar os(as) outros(as) usuários(as) freeCodeCamp que clicarem nele.
|
||||
@@ -179,29 +179,29 @@ Forum moderators can delete users' posts. You should only do this for the follow
|
||||
|
||||
### Lidando com spam
|
||||
|
||||
For the first spam post of a legitimate user (ie. whose intent isn't to spam the forum but to learn/contribute to the forum), send them a message explaining the problem, and remove the link or post as appropriate. Leave a note on the user's profile explaining the action you have taken. If the problem persists, then quietly block the user from posting (using the silence option on the User Admin panel). Send the user a warning with the [Code of Conduct](https://code-of-conduct.freecodecamp.org). Check the box in the private message indicating that your message is a "formal warning."
|
||||
Para o primeiro post de spam de um usuário legítimo (ou seja, cuja intenção não é fazer spam no fórum, mas sim de aprender/contribuir), envie uma mensagem explicando o problema e remova o link ou post apropriadamente. Deixe uma observação no perfil do usuário explicando a ação que você tomou. Se o problema persistir, então bloqueie silenciosamente o usuário de postar (usando a opção de silêncio no painel de Administração de Usuário). Envie ao usuário um aviso com o [Código de Conduta](https://code-of-conduct.freecodecamp.org). Marque a opção na mensagem privada que indica que a sua mensagem é um "aviso formal."
|
||||
|
||||
As a moderator, you can ask questions and report incidents in the [mod-team forum section](https://forum.freecodecamp.org/c/mod-team/4).
|
||||
Como moderador, você pode fazer perguntas e relatar incidentes na [seção do fórum da equipe de moderadores](https://forum.freecodecamp.org/c/mod-team/4).
|
||||
|
||||
### Lidando com conversas fora do assunto
|
||||
|
||||
Posts or topics that seem to be in the wrong place can be recategorized or renamed to whatever would be appropriate.
|
||||
Postagens ou tópicos que parecem estar no lugar errado podem ser renomeados para o que for apropriado.
|
||||
|
||||
In exceptional circumstances, it may be appropriate for a moderator to fork a discussion into multiple threads.
|
||||
Em circunstâncias excepcionais, pode ser apropriado que um moderador faça o fork de uma discussão em vários assuntos.
|
||||
|
||||
Again, if you have any problems or questions, make a post with your actions in the `"Staff"` category, and tag another moderator if you want them to review your moderating actions.
|
||||
Novamente, se você tiver algum problema ou dúvida, faça uma postagem com suas ações na categoria `"Staff"`, e marque outro moderador se você quiser que eles revisem suas ações de moderação.
|
||||
|
||||
### Lidando com soluções publicadas
|
||||
|
||||
If a user replies in a help thread for the freeCodeCamp curriculum with a solution, remove it and use the **Solution Instead of Help** canned reply (or a similar response in your own words).
|
||||
Se um usuário responder em uma thread de ajuda para o currículo do freeCodeCamp com uma solução, remova-a e use a resposta pronta **Solution Instead of Help** (ou uma resposta semelhante em suas próprias palavras).
|
||||
|
||||
If the OP (Original Poster) replies within a freeCodeCamp curriculum help thread with their final solution, blur it, and use the **Blurred Spoiler Solution** canned reply.
|
||||
Se o OP (pessoa que publicou o pedido de ajuda original) responder em sua própria thread de ajuda para o currículo do freeCodeCamp com sua solução final, desfoque-a e use a resposta pronta **Blurred Spoiler Solution**.
|
||||
|
||||
If a user creates a thread asking for feedback on a solution, move the thread to the feedback subforum and blur the solution, as necessary. If the user is only posting the solution to show it off, then unlist the thread and use the **Solutions Thread** canned reply.
|
||||
Se um usuário criar uma thread pedindo feedback de uma solução, mova o tópico para o subfórum de feedback e desfoque a solução, conforme necessário. Se o usuário estiver apenas publicando a solução para se exibir, reitre o tópico das listas e use a resposta pronta **Solutions Thread**.
|
||||
|
||||
### Usuários menores de idade
|
||||
|
||||
Our [Terms of Service](https://freecodecamp.org/terms) require that freeCodeCamp users be at least 13 years of age. If a user reveals that they are under the age of 13, send them the message (below), suspend the account then **Email `support[at]freecodecamp.org` to delete the user's freeCodeCamp /learn and forum accounts as well (providing a link to the offending forum account).**
|
||||
Nossos [termos de serviço](https://freecodecamp.org/terms) requerem que os usuários do freeCodeCamp tenham, pelo menos, 13 anos de idade. Se um usuário revelar que ele tem menos de 13 anos de idade, envie-lhe a mensagem abaixo e suspenda a conta. Em seguida, **envie um email para `support[at]freecodecamp.org` para excluir as contas do usuário de freeCodeCamp/learn e do fórum (fornecendo um link para a conta ilícita do fórum).**
|
||||
|
||||
```markdown
|
||||
ASSUNTO: Usuários com menos de 13 anos não têm permissão para usar o fórum de acordo com os nossos Termos de Serviço.
|
||||
@@ -215,7 +215,7 @@ Obrigado(a) pela compreensão.
|
||||
|
||||
### Moderando via celular
|
||||
|
||||
Moderating the forum is possible via a cell phone but you may encounter some usage quirks. This is not an exhaustive list.
|
||||
É possível moderar o fórum por um celular, mas você pode encontrar algumas peculiaridades. Esta não é uma lista exaustiva.
|
||||
|
||||
- Ao tentar incluir uma "Resposta pronta" em uma resposta, se o menu não abrir (após clicar na engrenagem), clique na área de texto primeiro e tente novamente.
|
||||
- A 'ferramenta de chave' do moderador está na parte inferior da janela de visualização, mas, se você clicar nela e não puder ver o botão "Select Posts" (Selecionar Posts) pelo fato de ele estar fora de visualização, você pode precisar rolar até ele, embora, às vezes, isso não funcione. Neste caso, pode ser necessário passar para um monitor desktop/laptop.
|
||||
@@ -223,15 +223,15 @@ Moderating the forum is possible via a cell phone but you may encounter some usa
|
||||
|
||||
## Moderando no Facebook
|
||||
|
||||
If you see anything that seems to break our [Code of Conduct](https://code-of-conduct.freecodecamp.org/), you should delete it immediately.
|
||||
Se você ver algo que pareça quebrar nosso [código de conduta](https://code-of-conduct.freecodecamp.org/), exclua imediatamente.
|
||||
|
||||
Sometimes people will post things that they think are funny. They don't realize that what they said or what they shared could be interpreted as offensive. You should delete such posts, but not necessarily ban the person. Hopefully, the user will come to understand that what they posted was inappropriate because the post was deleted.
|
||||
Às vezes, as pessoas publicarão coisas que acham engraçadas. Elas não percebem que o que disseram ou compartilharam pode ser interpretado como ofensivo. Você deve excluir essas publicações, mas não necessariamente banir a pessoa. Espera-se que o usuário entenda que aquilo que postou foi inapropriado, pois a postagem foi apagada.
|
||||
|
||||
But if it is an egregious offense that can't reasonably be attributed to a cultural difference or a misunderstanding of the English language. In that case, you should strongly consider blocking the member from the Facebook group.
|
||||
Mas se é um delito flagrante, isso não pode razoavelmente ser atribuído a uma diferença cultural ou a um mal-entendido da língua inglesa. Nesse caso, você deve considerar fortemente bloquear o membro do grupo do Facebook.
|
||||
|
||||
## Moderando o Discord
|
||||
|
||||
Here's how moderators deal with violations of our [Code of Conduct](https://code-of-conduct.freecodecamp.org/) on our chat server:
|
||||
É assim que os moderadores lidam com violações do nosso [Código de Conduta](https://code-of-conduct.freecodecamp.org/) em nosso servidor de bate-papo:
|
||||
|
||||
> [!NOTE] O Camperbot serve como nosso bot de moderação, e todos os comandos usam a interface de comando nativa do Discord. Você pode ver uma lista de todos os comandos digitando `/` em qualquer canal.
|
||||
|
||||
@@ -303,9 +303,9 @@ Here's how moderators deal with violations of our [Code of Conduct](https://code
|
||||
|
||||
## Como se tornar um moderador
|
||||
|
||||
Suppose you are helping people in the community consistently over time. In that case, our moderator team will eventually take notice, and one of them will mention you as a possible moderator to [our staff](https://forum.freecodecamp.org/g/Team). There are no shortcuts to becoming a moderator.
|
||||
Suponha que você esteja ajudando pessoas da comunidade de modo consistente ao longo do tempo. Nesse caso, nosso time de moderadores vai notar você e um deles vai mencionar você como um possível moderador da [nossa equipe](https://forum.freecodecamp.org/g/Team). Não existem atalhos para se tornar um moderador.
|
||||
|
||||
If you are approved, we will add you to our moderator teams on [GitHub](https://github.com/orgs/freeCodeCamp/teams/moderators), [forum](https://forum.freecodecamp.org/g/moderators), chat, etc.
|
||||
Se for aprovado, nós adicionaremos você ao nosso time de moderadores no [GitHub](https://github.com/orgs/freeCodeCamp/teams/moderators), [fórum](https://forum.freecodecamp.org/g/moderators), chat, etc.
|
||||
|
||||
> [!NOTE] GitHub: Depois que foi aceito como moderador, você receberá um convite de repositório do GitHub. Você precisará visitar [freeCodeCamp GitHub Organization Invitation](https://github.com/orgs/freeCodeCamp/invitation) para poder aceitar o convite.
|
||||
>
|
||||
@@ -313,40 +313,40 @@ If you are approved, we will add you to our moderator teams on [GitHub](https://
|
||||
|
||||
## Como funciona nossa sala de Colaboradores
|
||||
|
||||
Anyone is welcome in the [contributors room on our chat server](https://discord.gg/PRyKn3Vbay). It is the designated chat room for moderators and other campers who contribute to our community in any number of ways, including through study groups.
|
||||
Todos são bem-vindos no [chat de colaboradores do nosso servidor](https://discord.gg/PRyKn3Vbay). Esse é o chat destinado aos moderadores e outros usuários do freeCodeCamp que estão contribuindo para nossa comunidade de diversas formas, incluindo através de grupos de estudo.
|
||||
|
||||
We assume contributors will read anything in this room that directly mentions them with an **@username**. Everything else is optional, but feel free to read anything anyone posts in there and interact.
|
||||
Assumimos que os colaboradores lerão qualquer coisa neste chat que os mencione diretamente com um **@username**. Tudo o mais é opcional, mas fique à vontade para ler e interagir com qualquer coisa que alguém poste lá dentro.
|
||||
|
||||
## Lidando com solicitantes
|
||||
|
||||
You may be approached by organizations who want to partner or co-brand with freeCodeCamp somehow. Once you realize that this is what they're after, **please stop talking to them** and tell them to email `team[at]freecodecamp.org`.
|
||||
Você pode ser abordado por organizações que queiram formar uma parceria com o freeCodeCamp de alguma maneira. Quando você perceber que essa é a intenção deles, **pedimos que pare de conversar com eles** e diga-lhes para enviar um e-mail para `team[at]freecodecamp.org`.
|
||||
|
||||
We get proposals like this all the time, and the staff are in the best position to judge whether such a relationship will be worth it for our community (and it rarely is).
|
||||
Recebemos propostas como essa com frequência. A equipe está em melhor posição para julgar se tal relação valerá a pena para nossa comunidade (e raramente vale).
|
||||
|
||||
## Lidando com consultas sobre saúde (mental)
|
||||
|
||||
You may come across situations where users seek medical advice or are dealing with mental health issues and are looking for support.
|
||||
Você pode encontrar situações onde os usuários procuram aconselhamento médico ou estão lidando com questões de saúde mental e buscando apoio.
|
||||
|
||||
As a matter of policy, you should avoid talking privately about these matters. Should the situation reflect back to freeCodeCamp, we want to have the conversation(s) on record. Make it clear that we are not medical professionals and that you encourage the user to find professional help.
|
||||
Como parte de nossa política, você deve evitar falar em privado sobre essas questões. Se a situação em algum ponto refletir de volta para o freeCodeCamp, queremos que as conversas fiquem registradas. Deixe claro que não somos profissionais da medicina e que você encoraja o usuário a procurar ajuda profissional.
|
||||
|
||||
As difficult as it sometimes can be, avoid giving any tips or advice and rather point the user in the direction of seeking professional help!
|
||||
Apesar de ser difícil às vezes, evite dar quaisquer dicas ou conselhos que não sejam indicar ao usuário buscar ajuda profissional!
|
||||
|
||||
If this happens on our chat server: Create a private channel for the user and the moderator team. This can be done with the bot's `private` command.
|
||||
Se isso ocorrer no nosso servidor de chat: crie um canal privado para o usuário e o time de moderadores. Isso pode ser feito com o comando `private` do bot.
|
||||
|
||||
- O usuário tem a privacidade garantida.
|
||||
- O chat público não será mais perturbado.
|
||||
- Outros membros do time podem contribuir caso você se sinta desconfortável ao lidar com a situação sozinho.
|
||||
|
||||
Helpful URLs:
|
||||
Links úteis:
|
||||
|
||||
http://suicide.org/international-suicide-hotlines.html
|
||||
|
||||
## Uma nota sobre liberdade de expressão
|
||||
|
||||
Sometimes people will defend something offensive or incendiary that they said as "free speech."
|
||||
Às vezes, as pessoas vão defender algo ofensivo ou instigante que elas disseram como sendo "liberdade de expressão."
|
||||
|
||||
This XKCD comic summarizes perfectly most communities' thoughts on free speech.
|
||||
Essa tirinha da XKDC resume perfeitamente o pensamento da maioria das comunidades sobre liberdade de expressão.
|
||||
|
||||
<div align="center"><img src='./images/github/xkcd-free-speech.png' width="400" height="400" /></div>
|
||||
|
||||
Thanks for reading this, and thanks for helping the developer community!
|
||||
Obrigado por ler isto, e obrigado por ajudar a comunidade de desenvolvedores!
|
||||
|
||||
@@ -120,7 +120,7 @@ export const rtlLangs = [''];
|
||||
|
||||
### Налаштуйте перекладені суперблоки
|
||||
|
||||
У файлі [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) додайте нову мову до об’єкту `notAuditedSuperBlocks`. Це виведе список усіх суперблоків, які не повністю перекладені. Додайте сюди масив суперблоків, які не повністю перекладені:
|
||||
У файлі [config/superblocks.ts](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/superblocks.ts) додайте нову мову до об’єкту `notAuditedSuperBlocks`. Це виведе список усіх суперблоків, які не повністю перекладені. Add an array of superblocks which have not been fully translated to it. For example:
|
||||
|
||||
```js
|
||||
export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
@@ -145,6 +145,8 @@ export const notAuditedSuperBlocks: NotAuditedSuperBlocks = {
|
||||
|
||||
Переконайтесь, що додали лише ті суперблоки, які **не** повністю перекладені та затверджені. Перекладені суперблоки будуть вирахувані з цього об’єкта. Коли новий суперблок буде повністю перекладений, вилучіть його з масиву цієї мови.
|
||||
|
||||
See the `SuperBlocks` enum at the beginning of the same file for the full list of superblocks.
|
||||
|
||||
### Налаштування пошуку
|
||||
|
||||
Потім відкрийте файл `client/src/utils/algolia-locale-setup.ts`. Ці дані використовуються для рядка пошуку, який завантажує статті `/news`. Хоча й малоймовірно, що ви будете тестувати цю функціональність, відсутність даних мови може призвести до помилок при спробі створити кодову базу локально.
|
||||
@@ -245,7 +247,6 @@ videoLocaleIds: Joi.when('challengeType', {
|
||||
- `links.json`
|
||||
- `meta-tags.json`
|
||||
- `motivation.json`
|
||||
- `trending.json`
|
||||
|
||||
## Тестування перекладів локально
|
||||
|
||||
|
||||
@@ -40,48 +40,9 @@ Ghost дозволяє налаштувати декілька рівнів ко
|
||||
|
||||
> [!TIP] Змінювати статті у нижньому колонтитулі принаймні раз на місяць дозволяє покращити результати пошуку в гуглі.
|
||||
|
||||
Існує два місця, в яких потрібно змінювати популярні статті.
|
||||
To update the trending articles in the footer, you need to update the [yaml file in the CDN repository](https://github.com/freeCodeCamp/cdn/tree/main/build/universal/trending) for your language. Both the curriculum and the publication reference this file.
|
||||
|
||||
- [Репозиторій навчальної програми](https://github.com/freeCodeCamp/freeCodeCamp/)
|
||||
- [Репозиторій CDN](https://github.com/freeCodeCamp/cdn)
|
||||
|
||||
Для кожної статті потрібно створювати коротший заголовок, який використовуватиметься у нижньому колонтитулі.
|
||||
|
||||
### Зміна популярних статей у навчальній програмі
|
||||
|
||||
Популярні статті у нижньому колонтитулі навчальної програми можна змінити, відредагувавши файл у `client/i18n/locales/<language>/trending.json`.
|
||||
|
||||
Цей файл є файлом `*.json`, який має форму об’єкта з ключами властивостей у формі `article0title` та `article0link`.
|
||||
|
||||
Кожне число представляє одну із 30 статей у колонтитулі. Переконайтесь, що заголовок та посилання відповідають один одному.
|
||||
|
||||
Ось приклад того, як повинна виглядати частина файлу `trending.json`.
|
||||
|
||||
```json
|
||||
{
|
||||
"article0title": "Unire CSV con Python",
|
||||
"article0link": "https://www.freecodecamp.org/italian/news/come-combinare-file-multipli-in-formato-csv-con-8-righe-di-codice/",
|
||||
"article1title": "Il comando Git push",
|
||||
"article1link": "https://www.freecodecamp.org/italian/news/il-comando-git-push-spiegato/",
|
||||
"article2title": "Centrare immagini in CSS",
|
||||
"article2link": "https://www.freecodecamp.org/italian/news/come-centrare-un-immagine-usando/",
|
||||
"article3title": "I codici Alt",
|
||||
"article3link": "https://www.freecodecamp.org/italian/news/codici-alt/",
|
||||
"article4title": "Tenere a bada il footer",
|
||||
"article4link": "https://www.freecodecamp.org/italian/news/come-mantenere-il-footer-al-suo-posto/",
|
||||
"article5title": "Cosa è un'API?",
|
||||
"article5link": "https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/",
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
Вам доведеться [побудувати перекладеного клієнта локально](how-to-enable-new-languages.md), щоб переконатись, що довжина заголовків правильна. Кожен заголовок повинен залишатися в одному рядку та не переходити в інший.
|
||||
|
||||
### Зміна популярних статей у CDN
|
||||
|
||||
Файлом у репозиторії CDN є файл `universal/trending/<language>.yaml`.
|
||||
|
||||
Цей файл має іншу форму. Наприклад, ось вміст файлу для перших шести статей:
|
||||
Наприклад, ось вміст файлу для перших шести статей:
|
||||
|
||||
```yaml
|
||||
article0title: 'Unire CSV con Python'
|
||||
@@ -98,9 +59,21 @@ article5title: 'Cosa è API?'
|
||||
article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano-per-favore/'
|
||||
```
|
||||
|
||||
Ви можете вручну перетворити один формат в інший. Або ви можете використати [цей скрипт](https://replit.com/@Ieahleen/convert-json-to-yaml).
|
||||
Кожне число представляє одну із 30 статей у колонтитулі. Переконайтесь, що заголовок та посилання відповідають один одному.
|
||||
|
||||
> [!TIP] Розробляється новий робочий процес, тому у майбутньому потрібно буде змінювати лише одне місце.
|
||||
Для кожної статті потрібно створювати коротший заголовок, який використовуватиметься у нижньому колонтитулі. Кожен заголовок повинен залишатися в одному рядку та не переходити в інший.
|
||||
|
||||
Вам доведеться [побудувати перекладеного клієнта локально](how-to-enable-new-languages.md), щоб переконатись, що довжина заголовків правильна. You can preview the changes by editing the `trending.json` file in your local environment:
|
||||
|
||||
1. Update your `.env` file to use your language for `CLIENT_LOCALE` and `CURRICULUM_LOCALE`.
|
||||
|
||||
2. Run `pnpm run create:config`. This will automatically generate the `trending.json` file for your language under the `/client/i18n/locales/` directory.
|
||||
|
||||
3. Start the server by running `pnpm run develop:server` in one terminal window.
|
||||
|
||||
4. Edit the `trending.json` to contain the titles you want to preview. You may want to convert your `.yaml` file into JSON format with an automatic tool.
|
||||
|
||||
5. In another terminal window, run `pnpm run clean:client`, and then `pnpm run develop:client`
|
||||
|
||||
## Як перекладати статті в нижньому колонтитулі
|
||||
|
||||
@@ -152,7 +125,7 @@ article5link: 'https://www.freecodecamp.org/italian/news/cose-un-api-in-italiano
|
||||
|
||||
> [!WARNING] Можна перекладати лише «Про нас», «Допомога», «Академічна доброчесність» та «Кодекс поведінки». Не змінюйте інших URL.
|
||||
|
||||
Оновіть наступну частину файлу:
|
||||
Update the following part in the file:
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user