mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-01-30 12:23:12 -08:00
docs: How to translate
This commit is contained in:
parent
c328303c80
commit
76e3059d30
1 changed files with 28 additions and 0 deletions
28
docs/Translate.md
Normal file
28
docs/Translate.md
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# How to translate
|
||||
|
||||
## Add your language to supportedLanguages.json
|
||||
|
||||
It is located in `localization/supportedLanguages.json`.
|
||||
|
||||
Add your language, make it looks like:
|
||||
|
||||
```json
|
||||
{
|
||||
"en": "English",
|
||||
"fr": "Français",
|
||||
"ja": "日本語",
|
||||
"ru": "русский",
|
||||
"vi": "Tiếng Việt",
|
||||
"zh_CN": "简中"
|
||||
}
|
||||
```
|
||||
|
||||
And update `localization/tiddlywikiLanguages.json` too!
|
||||
|
||||
## Add translate
|
||||
|
||||
Create a folder like `localization/locales/en`, with `localization/locales/yourlanguagename/translation.json` inside.
|
||||
|
||||
Fill in the JSON like how other `translation.json` fills.
|
||||
|
||||
You can use [i18n ally vscode plugin](https://marketplace.visualstudio.com/items?itemName=Lokalise.i18n-ally) to speed it up! It can auto translate, and count the missing translate keys in each languages.
|
||||
Loading…
Add table
Add a link
Reference in a new issue