Skip to content

caderek/polytopia-languages

Repository files navigation

User-made translations for Polytopia

How to use custom translation?

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.

How to contribute?

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.

Adding new translation

  1. Get the template file from here: empty template

  2. Add your new template to the templates folder, name it as <LANG_SHORTCUT>.json (for example es.json). Here's direct link to add a new file -> ADD NEW TRANSLATION FILE

  3. 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.

Improving existing translation

  1. Open selected template from the ones listed here

  2. Click Edit this file button (a pen icon) and add your changes.

  3. Make a pull request - if everything is ok it will be merged and automatically deployed on polytopia.netlify.app.

Structure of the template file

{
  "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í"
    }
  }
}

License

Project is under open, non-restrictive ISC license.

About

The battle of Polytopia user-made translations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published