# Languages

## 🌍 Multi-Language Support

Elena Chat supports **7 languages** out of the box!

### 🗣️ Available Languages

| Flag | Language  | Code |
| ---- | --------- | ---- |
| 🇹🇷 | Türkçe    | `tr` |
| 🇬🇧 | English   | `en` |
| 🇩🇪 | Deutsch   | `de` |
| 🇫🇷 | Français  | `fr` |
| 🇪🇸 | Español   | `es` |
| 🇵🇹 | Português | `pt` |
| 🇷🇺 | Русский   | `ru` |

### 🔧 How to Change Language

1. Open chat: Press **T**
2. Type `/chatset`
3. Click on flag in **Language** section
4. Done! UI changes instantly

### 📝 Adding Custom Language

Edit `config/config.lua`:

```lua
Config.Languages = {
    custom = {
        name = 'Custom',
        flag = '🏳️',
        chatPlaceholder = 'Type message...',
        settingsTitle = 'Settings',
        -- Add all keys
    }
}
```

### 🔄 Default Language

Change default in `config/config.lua`:

```lua
Config.Language = 'tr'
```

> 💡 Each player's language preference is **saved per character**.


---

# Agent Instructions: 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:

```
GET https://elena-scripts.gitbook.io/elenascripts/core-systems/chat/languages.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
