From 2e26178d2d18c1c4ee10227d8d0c3193541b086c Mon Sep 17 00:00:00 2001 From: DevMirza <53424436+Zaid-maker@users.noreply.github.com> Date: Tue, 21 Nov 2023 09:15:09 +0500 Subject: [PATCH] feat: Add Translation Guide (#111) * add README for translations * add ref in README aswell --- README.md | 4 ++++ frontend/src/lang/README.md | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 frontend/src/lang/README.md diff --git a/README.md b/README.md index 2d9f713..5d555ff 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,10 @@ https://github.com/louislam/dockge/issues ### Ask for Help / 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 #### "Dockge"? diff --git a/frontend/src/lang/README.md b/frontend/src/lang/README.md new file mode 100644 index 0000000..2c20e02 --- /dev/null +++ b/frontend/src/lang/README.md @@ -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.