> For the complete documentation index, see [llms.txt](https://picnic-in-the-oblivion.gitbook.io/assets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://picnic-in-the-oblivion.gitbook.io/assets/modding/how-to-add-language.md).

# How to add language

Files & folders needed:

> assets/texts/lang\_<mark style="color:green;">\*your\_code\*</mark>.json
>
> assets/options.json

Open <mark style="color:orange;">asstes/options.json</mark> file and find there languages property.

```json
"languages": {
    "ch": {
        "name": "lang.ch"
    },
    "en": {
        "name": "lang.en"
    },
    "ru": {
        "name": "lang.ru"
    },
    "ua": {
        "name": "lang.ua"
    }
}
```

Add there new object with your code and name:

```json
"pl": {
    "name": "lang.pl"
}
```

It will be looks like this:

```json
"languages": {
    "ch": {
        "name": "lang.ch"
    },
    "en": {
        "name": "lang.en"
    },
    "ru": {
        "name": "lang.ru"
    },
    "ua": {
        "name": "lang.ua"
    },
    "pl": {
        "name": "lang.pl"
    }
}
```

Save options file and create new file in <mark style="color:orange;">assets/text/lang\_</mark>[<mark style="color:green;">pl</mark>](#user-content-fn-1)[^1]<mark style="color:orange;">.json</mark>. Add there language name translation from options file.

```json
{
    "lang.pl": "Polska"
}
```

Run game and check options. Now you can translate game.

Additional description about language strings formatting bbcodes here:

{% content-ref url="/spaces/3nRkQI0xXhcgAZp5TWxQ/pages/vMWnFrM4y19z9jnmSons" %}
[lang\_\*.json](/assets/texts/lang_--json.md)
{% endcontent-ref %}

[^1]: Its your language code from options.json
