> For the complete documentation index, see [llms.txt](https://docs.fivemcustoms.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fivemcustoms.com/fc-lspdbadge/languages.md).

# Languages

35 languages included, and adding your own takes a couple of minutes.

Pick the language in `config.lua`:

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

It changes every text of the script: menus, notifications, the photo screen and the item name in the inventory.

## Available languages

| Code    | Language           |
| ------- | ------------------ |
| `en`    | English            |
| `it`    | Italiano           |
| `de`    | Deutsch            |
| `fr`    | Français           |
| `es`    | Español            |
| `pt`    | Português          |
| `pt-br` | Português (Brasil) |
| `nl`    | Nederlands         |
| `pl`    | Polski             |
| `cs`    | Čeština            |
| `sk`    | Slovenčina         |
| `hu`    | Magyar             |
| `ro`    | Română             |
| `bg`    | Български          |
| `hr`    | Hrvatski           |
| `sr`    | Srpski             |
| `sl`    | Slovenščina        |
| `el`    | Ελληνικά           |
| `tr`    | Türkçe             |
| `ru`    | Русский            |
| `uk`    | Українська         |
| `sv`    | Svenska            |
| `da`    | Dansk              |
| `no`    | Norsk              |
| `fi`    | Suomi              |
| `lt`    | Lietuvių           |
| `ar`    | العربية            |
| `he`    | עברית              |
| `zh-cn` | 简体中文               |
| `zh-tw` | 繁體中文               |
| `ja`    | 日本語                |
| `ko`    | 한국어                |
| `th`    | ไทย                |
| `vi`    | Tiếng Việt         |
| `id`    | Bahasa Indonesia   |

## Adding a language

1. Copy `locales/en.json`.
2. Rename it with your language code, for example `et.json`.
3. Translate the values on the right, never the keys on the left.
4. Leave `%s` and `%d` where they are, they get replaced with numbers and names.
5. Set the new code in the config:

{% code title="config.lua" %}

```lua
Config.Locale = 'et'
```

{% endcode %}

{% hint style="info" %}
Any text you don't translate falls back to English, so you can't break anything by leaving a line out. If the JSON has a syntax error, the console tells you which file is broken and English is used.
{% endhint %}

## Text on the card

The id card itself is always in English, like a real US document. Those texts are in `Config.Card`, see [Configuration](/fc-lspdbadge/configuration.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.fivemcustoms.com/fc-lspdbadge/languages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
