mirror of
https://github.com/louislam/dockge.git
synced 2024-11-27 13:14:03 +00:00
feat: Add Translation Guide (#111)
* add README for translations * add ref in README aswell
This commit is contained in:
parent
6ef861c989
commit
2e26178d2d
2 changed files with 18 additions and 0 deletions
|
@ -130,6 +130,10 @@ https://github.com/louislam/dockge/issues
|
||||||
### Ask for Help / Discussions
|
### Ask for Help / Discussions
|
||||||
https://github.com/louislam/dockge/discussions
|
https://github.com/louislam/dockge/discussions
|
||||||
|
|
||||||
|
## Translation
|
||||||
|
|
||||||
|
If you want to translate Dockge into your language, please read [Translation Guide](https://github.com/louislam/dockge/blob/master/frontend/src/lang/README.md)
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
||||||
#### "Dockge"?
|
#### "Dockge"?
|
||||||
|
|
14
frontend/src/lang/README.md
Normal file
14
frontend/src/lang/README.md
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# Translations
|
||||||
|
|
||||||
|
A simple guide on how to translate `Dockge` in your native language.
|
||||||
|
|
||||||
|
## How to add a new language in the dropdown
|
||||||
|
|
||||||
|
(11-21-2023) Updated
|
||||||
|
|
||||||
|
1. Add your Language at `frontend/src/lang/` by creating a new file with your language Code, format: `zh-TW.json` .
|
||||||
|
2. Copy the content from `en.json` and make translations from that.
|
||||||
|
3. Add your language at the end of `languageList` in `frontend/src/i18n.ts`, format: `"zh-TW": "繁體中文 (台灣)"`,
|
||||||
|
4. Commit to new branch and make a new Pull Request for me to approve.
|
||||||
|
|
||||||
|
*Note:* Currently we are only accepting one Pull Request per Language Translate.
|
Loading…
Reference in a new issue