Contributing to translations

Follow the linked guide first to set up the project.

Build guide

Be sure to create the new file while using(checked out) the DEV branch, not MASTER.

Duplicate the en.json and adjust its file name according to the wanted language code, e.g. da.json (Danish)

You can find the language codes on this page or by using google e.g. "danish language code"

http://www.lingoes.net/en/translator/langcode.htm

Then translate all strings in the file.

Further you need to update the following file with the language you've just added

Below you can see the whole array of languages (it might be outdated).

 availableLangs: [
          { id: 'en', label: 'English' },
          { id: 'de', label: 'Deutsch' },
          { id: 'ru', label: 'Русский' },
          { id: 'fr', label: 'Français' },
          { id: 'zh-CN', label: '中文(中国)' },
          { id: 'nl', label: 'Nederlands' },
          { id: 'es', label: 'Español' },
          { id: 'ko', label: '한국어' },
          { id: 'tr', label: 'Türkçe' },
          { id: 'cs', label: 'Čeština' },
          { id: 'pl', label: 'Polski' },
          { id: 'overwrite', label: 'Custom' },
        ],

To add your newly added language to the ingame selection, you need to duplicate one of the lines and adjust both the id and the label. Below is an example how the line could look like and how it would look like in the whole array.

{ id: 'da', label: 'Dansk' },
 availableLangs: [
          { id: 'en', label: 'English' },
          { id: 'de', label: 'Deutsch' },
          { id: 'ru', label: 'Русский' },
          { id: 'fr', label: 'Français' },
          { id: 'zh-CN', label: '中文(中国)' },
          { id: 'nl', label: 'Nederlands' },
          { id: 'es', label: 'Español' },
          { id: 'ko', label: '한국어' },
          { id: 'tr', label: 'Türkçe' },
          { id: 'cs', label: 'Čeština' },
          { id: 'pl', label: 'Polski' },
          { id: 'da', label: 'Dansk' },
          { id: 'overwrite', label: 'Custom' },
        ],

Then create a pull request like https://github.com/tiltedphoques/TiltedEvolution/pull/671 with your new localisation file.

Last updated