> For the complete documentation index, see [llms.txt](https://documentation.rcore.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.rcore.cz/paid-resources/rcore_mdt/configuration/locale.md).

# Locale

Use locale files to translate text shown by `rcore_mdt`, including the MDT interface.

## 💬 Default Locales

The resource includes:

```
rcore_mdt/locales/en.lua
rcore_mdt/locales/es.lua
rcore_mdt/locales/fr.lua
```

Set the active locale in `configs/sh_config.lua`:

```lua
CONFIG.Locale = 'en'
```

## 🌍 Add a New Language

1. Copy `rcore_mdt/locales/en.lua`.
2. Rename the copy to your language code, for example `de.lua`.
3. Change the first line from `Locales['en']` to your language code:

```lua
Locales['de'] = {
```

4. Translate the values inside the file. The `ui` table holds the text of the MDT interface.
5. Set `dateLocale` inside the `ui` table to your language, for example `"de-DE"`. It is used to format dates.
6. Set `CONFIG.Locale` to the new language code.

```lua
CONFIG.Locale = 'de'
```

No web rebuild is needed.

{% hint style="warning" %}
Do not rename translation keys. Only translate the text values.
{% endhint %}
