> For the complete documentation index, see [llms.txt](https://docs.xandtech.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xandtech.fr/home/xplayercurrencies/configuration/languages.md).

# Languages

Every message the plugin sends is loaded from `lang/messages_<language>.yml`, selected by `config.yml`'s `language` (see [Global Configuration](/home/xplayercurrencies/configuration/global-config.md)). Two files ship by default: `en` and `fr`.

## Placeholders

Message keys contain `{placeholder}` tokens that get substituted before the message is sent, e.g.:

```yaml
shop-buy-success: '&aBought {amount}x {item} for {price}. New balance: {new_balance}.'
```

Which placeholders are available differs per key - they're specific to what triggered that message (an amount, a player name, a currency's formatted balance, etc.).

Color codes use the standard `&` format (e.g. `&a`, `&c`, `&l`) and are converted to native text formatting automatically.

## Adding your own language

1. Copy `lang/messages_en.yml` to `lang/messages_<code>.yml` (e.g. `lang/messages_de.yml`).
2. Translate every value, keeping every `{placeholder}` token exactly as-is.
3. Set `language: <code>` in `config.yml`.
4. `/currencies admin reload`.

{% hint style="info" %}
If a key is missing from your custom file (e.g. after a plugin update adds a new message), it's automatically filled in from the English defaults on load, without touching anything you've already translated - so updating never silently blanks out a line.
{% endhint %}

## Editing existing messages

You don't need a new language to change wording - just edit the file matching your current `language` setting directly (e.g. `lang/messages_en.yml`) and reload. This is also how you rebrand the plugin's tone/style, add your own emoji, etc.

See [Default messages\_en.yml](/home/xplayercurrencies/configuration/default-configuration-files/default-messages-en.md) and [Default messages\_fr.yml](/home/xplayercurrencies/configuration/default-configuration-files/default-messages-fr.md) for the exact files as shipped, in full.

Next: back to [Global Configuration](/home/xplayercurrencies/configuration/global-config.md) or [Currency Basics](/home/xplayercurrencies/configuration/currency-basics.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.xandtech.fr/home/xplayercurrencies/configuration/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.
