2
2
mirror of https://github.com/Thream/website.git synced 2024-07-06 18:40:12 +02:00

docs: add explanations in CONTRIBUTING.md to add a translation with plop

fixes #24
This commit is contained in:
Divlo 2022-12-13 11:51:29 +01:00
parent 109da1be71
commit 8f5bc2fe21
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9

View File

@ -16,6 +16,7 @@ All work on **Thream/website** happens directly on [GitHub](https://github.com/T
- Suggest a new feature idea.
- Correct spelling errors, improvements or additions to documentation files.
- Improve structure/format/performance/refactor/tests of the code.
- [Add translations](#add-a-translation).
## Pull Requests
@ -61,3 +62,15 @@ Scopes define what part of the code changed.
git commit -m "feat(components): add Button"
git commit -m "docs(readme): update installation process"
```
## Add a translation
[Reference issue](https://github.com/Thream/website/issues/24)
Feel free to contribute to Thream and add new languages, we would appreciate your help!
To add a new language:
- `npm install`
- `npm run generate`
- Start editing JSON files with the translation in `locales/{{locale}}` (e.g: `locales/en`)