mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-22 02:14:41 -05:00
1.4 KiB
1.4 KiB
Translation
sendou.ink can be translated into any language. All the translations can be found in the locales folder. Here is how you can contribute:
- Copy a
.jsonfile from/enfolder. - Translate lines one by one. For example
"country": "Country",could become"country": "Maa",. Keep the "key" on the left side of : unchanged. ("country": "",would indicate this string is not yet text for this language but you can also improve existing translations) - Finally, send the translated .json to Sendou or make a pull request if you know how.
Things to note:
weapons.jsonandgear.jsonare auto-generated. Don't touch these.- If some language doesn't have a folder it can be added.
- Some lines have a dynamic part like this one:
"articleBy": "by {{author}}"in this case{{author}}should appear in the translated version unchanged. So in other words don't translate the part inside{{}}. - There is one more special syntax to keep in mind. When you translate this line
"project": "Sendou.ink is a project by <2>Sendou</2> with help from contributors:",the<2></2>should appear in the translated version. The text inside these tags can change. - To update a translation file copy the existing file, do any modifications needed and send the updated one.
Any questions please ask Sendou!