You can find links to all available translations here.
In Polytopia, open advanced settings, select "Custom..." language and paste the url to the language file.
There are couple ways to contribute, you can make a pull request, open an issue to improve existing translation or, if you don't know how to use Github, you can sand me your translation via a form at polytopia.netlify.app.
-
Get the template file from here: empty template
-
Add your new template to the
templates
folder, name it as<LANG_SHORTCUT>.json
(for examplees.json
). Here's direct link to add a new file -> ADD NEW TRANSLATION FILE -
Make a pull request - if everything is ok it will be merged and automatically deployed on polytopia.netlify.com.
Note: Do not edit files in the translations
folder - they are generated automatically from templates.
-
Open selected template from the ones listed here
-
Click
Edit this file
button (a pen icon) and add your changes. -
Make a pull request - if everything is ok it will be merged and automatically deployed on polytopia.netlify.app.
{
"language": "Your language original name goes here.",
"author": "Your name/nick goes here (optional)",
"editors": "If you are editing existing translation, add your name/nick here.",
"text": {
"some.key.do.not.edit": {
"en": "Original text, do not edit.",
"->": "Here goes your translation, if you leave it empty, original text will be used."
},
"some.other.key.do.not.edit": {
"en": "Another original text, do not edit.",
"->": "Here goes your translation."
}
}
}
Example:
{
"language": "Español",
"author": "Rafael Nadal",
"editors": "Fernando Alonso, Iker Casillas",
"text": {
"action.info.breakice": {
"en": "Break Ice",
"->": "Romper Hielo"
},
"action.info.breakpeace": {
"en": "Break Peace",
"->": ""
},
"action.info.build": {
"en": "build a {0} here",
"->": "construir {0} aquí"
}
}
}
Project is under open, non-restrictive ISC license.