mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
20 lines
1.1 KiB
Markdown
20 lines
1.1 KiB
Markdown
# Translation
|
|
|
|
[Translation Progress](https://github.com/sendou-ink/sendou.ink/issues/1104)
|
|
|
|
sendou.ink can be translated into any language. All translation files can be found in the [locales folder](../locales). Here is how you can contribute:
|
|
|
|
1. Open a `.json` file for your language (e.g. `locales/de/common.json` for German)
|
|
2. Find empty strings (`""`) - these are the lines that need translating
|
|
3. Translate them while keeping the "key" on the left side of `:` unchanged. For example `"country": "",` could become `"country": "Maa",`
|
|
4. Send the translated .json to Sendou or make a pull request
|
|
|
|
Things to note:
|
|
|
|
- `weapons.json` and `gear.json` are auto-generated. Don't touch these.
|
|
- If you want to add a new language, ask Sendou.
|
|
- Some lines have dynamic parts like `"articleBy": "by {{author}}"`. The `{{author}}` part should appear in the translated version unchanged - don't translate the part inside `{{}}`.
|
|
- Another special syntax: `"project": "Sendou.ink is a project by <2>Sendou</2> with help from contributors:"`. The `<2></2>` tags should appear in the translated version, but the text inside them can change.
|
|
|
|
Any questions please ask Sendou!
|