docs: update language list and file link (#47856)

pull/47859/head
Zaira 2022-10-05 22:12:51 +05:00 committed by GitHub
parent 53164e71f1
commit edde1b7bf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 5 deletions

View File

@ -82,13 +82,23 @@ Some of these files are translated on our translation platform (Crowdin), some a
## Testing the client app in a world language
You can test the client app in any language available in the [list of languages here](https://github.com/freeCodeCamp/freeCodeCamp/blob/6b4a6a02568b809fc216ea8566ff5df446d1da4e/config/i18n/all-langs.js#L5).
You can test the client app in any language available in the [list of languages here](https://github.com/freeCodeCamp/freeCodeCamp/blob/main/config/i18n/all-langs.ts).
```js
const availableLangs = {
client: ['english', 'espanol', 'chinese'],
...
};
export const availableLangs = {
client: [
'english',
'espanol',
'chinese',
'chinese-traditional',
'italian',
'portuguese',
'ukrainian',
'japanese',
'german'
],
...
};
```
If you are testing a new language, create a folder with the language name as the title next to the other languages and copy the JSON files from another language into your new folder.