# Translating

> Change every word the pool UI shows, without touching any code.

Every piece of text lives in one plain file:

```
config/locales/en.json
```

## 1. Copy it

Copy `en.json` to a new file named after your language, for example `de.json`, in the same folder.

## 2. Translate it

Open it in any text editor:

```json
{
  "mode.eight": "8-ball",
  "title.yourTurn": "Your turn",
  "turn.theirs": "{name} is up"
}
```

Change the text on the **right** of each colon — never the keys on the left, and never remove the quotes or the commas. Leave anything in `{curly braces}` as it is: `{name} is up` becomes `{name} ist dran`.

## 3. Switch to it

In `config/config.lua`:

```lua
locale = 'de',
```

Restart the resource: `restart nobit_pool`.

> [!WARNING]
> **Keep every line.** A line you delete shows its key on screen (`title.yourTurn`) instead of falling back to English. If the whole file is missing or broken, the script uses English and prints one line in the F8 console.
