> For the complete documentation index, see [llms.txt](https://cyr1en.gitbook.io/commandprompter/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cyr1en.gitbook.io/commandprompter/configuration/internationalization-i18n.md).

# Internationalization (I18N)

CommandPrompter supports custom language translations. You can select your language by setting the `Locale` key in `config.yml` (e.g., `en_US`, `es_ES`).

{% hint style="info" %}
All translation files support UTF-8 encoding.
{% endhint %}

Bundled locales are loaded from the plugin JAR. Custom translations or overrides can be placed in `plugins/CommandPrompter/locales/`.

## Locale Properties

The locale files contain key-value pairs for customizing plugin messages.

| Key                                   | Description                                                       | Placeholder(s) |
| ------------------------------------- | ----------------------------------------------------------------- | -------------- |
| `prompt.cancelled`                    | Sent when a prompt is cancelled.                                  | None           |
| `prompt.timed_out`                    | Sent when a prompt times out.                                     | None           |
| `prompt.error.invalid_title_filter`   | Error when a TITLE filter is used on a non-compound tag.          | None           |
| `prompt.error.session_active`         | Error when a player tries to start a prompt while already in one. | None           |
| `prompt.error.command_failed`         | Error when the final dispatched command fails.                    | `%message%`    |
| `validation.invalid_integer`          | Error when an integer validation fails.                           | None           |
| `validation.invalid_string`           | Error when a string validation fails (e.g., empty input).         | None           |
| `player_ui.search_instruction`        | Instruction sent when searching in the Player UI.                 | None           |
| `dialog.no_options`                   | Warning when a dialog choice has no options.                      | None           |
| `dialog.too_many_options`             | Warning when a dialog tab completion has too many options.        | `%count%`      |
| `command.error.players_only`          | Error when a non-player tries to run a player-only command.       | None           |
| `command.error.missing_preset`        | Error when a required preset is missing from `presets.json`.      | None           |
| `command.cancel.no_active_prompt`     | Error when trying to cancel without an active prompt.             | None           |
| `command.delegate.unknown_permission` | Error when a delegate command uses an unknown permission key.     | `%key%`        |
| `command.reload.success`              | Success message for the reload command.                           | None           |
| `command.reload.failed`               | Error message when the reload command fails.                      | `%error%`      |
| `command.version`                     | Shows the installed plugin version.                               | `%version%`    |


---

# 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://cyr1en.gitbook.io/commandprompter/configuration/internationalization-i18n.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.
