mirror of
https://github.com/SomboChea/ui
synced 2024-11-24 06:54:27 +07:00
ref(doc): updated translation section (#473)
This commit is contained in:
parent
f8101ae90a
commit
1e060474c7
22
README.md
22
README.md
@ -105,6 +105,28 @@ If you have any issue you can try the following options, do no desist to ask or
|
|||||||
|
|
||||||
Translations are handled locally. I18n files can be found in the folder ```i18n/translations/*``` of this repository. We would love to provide translations from other languages, embracing all our users, but unfortunately we cannot do this without your help. Would you like to help us? Please feel **super welcome** to add a locale by opening a pull request.
|
Translations are handled locally. I18n files can be found in the folder ```i18n/translations/*``` of this repository. We would love to provide translations from other languages, embracing all our users, but unfortunately we cannot do this without your help. Would you like to help us? Please feel **super welcome** to add a locale by opening a pull request.
|
||||||
|
|
||||||
|
Your PR should contain:
|
||||||
|
|
||||||
|
1 - A json file in the folder ```i18n/translations/*``` with the translations. The file must be named according to the new added language
|
||||||
|
|
||||||
|
2 - The files ```i18n/config.ts``` and ```LanguageSwitch.tsx``` updated with the new language. Please see the current structure
|
||||||
|
|
||||||
|
3 - The other translations containing the new language in the language of the file. Example:
|
||||||
|
|
||||||
|
New language: ```cs_CZ ```
|
||||||
|
|
||||||
|
The file ```pt-BR ``` should contain:
|
||||||
|
```
|
||||||
|
"lng": {
|
||||||
|
...,
|
||||||
|
"cs_cz": "Tcheco"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
4 - A SVG flag of the new translated language in the the folder ```src/components/Icon/img/*```. You maybe want to compress the svg file using https://jakearchibald.github.io/svgomg/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### License
|
### License
|
||||||
|
|
||||||
Verdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
Verdaccio is [MIT licensed](https://github.com/verdaccio/verdaccio/blob/master/LICENSE)
|
||||||
|
Loading…
Reference in New Issue
Block a user