Skip to content

Adding a New Language

github-actions[bot] edited this page Nov 18, 2024 · 10 revisions

Language Data

Firstly, you need to edit these two main text files:

  • assets/languages/languagesList.txt - Your list of languages. (e.g., de, en, es, fr)
  • assets/languages/languagesData.txt - This is so that your language can be pushed into LanguagesState.hx.

To add your language into languagesData.txt, use this format:

Name (Country):code

So, for example, if you wanted to add German, it would look like:

Deutsch (Deutschland):de

Now, you need your .json file, which should be located in assets/languages/[language-code].json.
Of course, this contains the data for your language.
To add your data, just copy this, and edit it with your translations.

Clone this wiki locally