> For the complete documentation index, see [llms.txt](https://code-after-sex.gitbook.io/script-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-after-sex.gitbook.io/script-documentation/cas-boxing-and-fight-club/translation.md).

# Translation

Translate CAS Boxing and CAS Fight Club into any language: copy locales/en.lua, keep the %s, %d and {name} placeholders, set Config.Locale and restart the resource.

Both resources ship in English. Every text players see is in the `locales/` folder of each resource.

1. Copy `locales/en.lua` to a new file, for example `locales/de.lua`.
2. At the top of the new file, change `Locales['en']` to `Locales['de']`.
3. Translate the text on the right side of each line. Keep placeholders exactly as they are:
   * `%s` and `%d` in the script texts
   * `{name}` style placeholders in the menu texts (the `ui = { ... }` block of CAS Boxing)
4. In `shared/config.lua`, set `Config.Locale = 'de'`.
5. Restart the resource.

Any line you leave out falls back to English.

{% hint style="info" %}
Names you write yourself in the config (arenas, house fighters, tournaments, judges) are shown exactly as written — translate them in `shared/config.lua`.
{% endhint %}
