Update translations.md
This commit is contained in:
parent
6d44b63e32
commit
07b61303a4
1 changed files with 4 additions and 7 deletions
|
@ -1,7 +1,5 @@
|
||||||
# Translations
|
# Translations
|
||||||
Currently Jank Client is only in english, though I've added support for other languages in the codebase now, if you or someone else wishes to try and help us create these translations it should be rather simple.
|
the translations are stored in `/src/webpage/translations` in this format.
|
||||||
the translations are stored in `/src/webpage/translations` if you want to help translate a pre-existing translations, you would modify the JSON files there, if you wish to add a new translation that should also be somewhat straight forward
|
|
||||||
include a `"@metadata"` key at the top to credit yourself, then in the file you'll want to create a property of the object corisponding to the language you're trying to add, for example
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"@metadata": {
|
"@metadata": {
|
||||||
|
@ -13,10 +11,9 @@ include a `"@metadata"` key at the top to credit yourself, then in the file you'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
Then to add the actual translations, just take the english version and in the same structure add your language, you must keep the left side, as that's what jank needs to know what the translation is.
|
|
||||||
|
|
||||||
Thank you so much for contributing another lanuage, or even just parts, as jank will fall back to the english translation if your translation has gaps in it, so it's not all or nothing.
|
|
||||||
|
|
||||||
|
## I want to help translate this
|
||||||
|
Please go to [https://translatewiki.net/wiki/Translating:JankClient](https://translatewiki.net/wiki/Translating:JankClient) to help translate this project
|
||||||
## What is the format?
|
## What is the format?
|
||||||
It's the same format found [here](https://github.com/wikimedia/jquery.i18n#message-file-format), though we are not using jquery, and you might notice some of the strings use markdown, but most do not.
|
It's the same format found [here](https://github.com/wikimedia/jquery.i18n#message-file-format), though we are not using jquery, and you might notice some of the strings use markdown, but most do not.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue