> 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_drugs/configuration/locale.md).

# Locale

Use locale files to translate text shown by `rcore_drugs`.

## 💬 Default Locale

The resource includes:

```
rcore_drugs/locales/en.lua
```

Set the active locale in `config.lua`:

```lua
Config.Locale = 'en'
```

## 🌍 Add a New Language

1. Copy `rcore_drugs/locales/en.lua`.
2. Rename the copy to your language code, for example `de.lua`.
3. Translate the values inside the file.
4. Set `Config.Locale` to the new file name without `.lua`.

```lua
Config.Locale = 'de'
```

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