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

# Translate the Brautomat

To add a new UI language:

1. Copy `data/language/de.json`.
2. Rename it with a two-letter code, for example:
   * Spanish: `es.json`
   * French: `fr.json`
   * Danish: `dk.json`
   * Dutch: `nl.json`

Translate the values (text after `:`) in the new file:

```bash
{
  "SAVE": "archivo",
  "CLOSE": "cerrar"
}
```

Upload the new file to `/language` on Brautomat via the file explorer in the web interface.

Then register the locale in `/lang.js`:

```bash
const supportedLocales = ["de", "en"];  // language files
```

Example for Spanish:

```bash
const supportedLocales = ["de", "en", "es"];  // language files
```

Save (`Ctrl+S`) and restart Brautomat. The new language can then be selected in the web interface.

If you want to share your translation, send the language file or a correction patch.
