Skip to content

Translations

Translations live in config/locales/, one JSON file per language, named with its code.

en.json is both the base and the fallback. A key missing from another language falls back to the English one — so a partial translation degrades gracefully instead of showing a blank label or a raw key.

That also means: when a new version adds strings, untranslated languages keep working. You translate the new keys when you get to them.

Open the file, change the values, leave the keys alone:

{
"menu.appearance.title": "Aparência",
"menu.appearance.opacity": "Opacidade do fundo"
}

Then restart the resource:

restart hud
  1. Copy en.json.
  2. Translate the values.
  3. Save it as the language code — it.json, nl.json, pl.json.

It appears in the menu on the next restart. No registration step, no list to update.

Admins set the server default in /hud → Admin. Each player can then pick another for themselves, and that choice is saved with the rest of their settings.