Skip to content

Locales

Every player-facing string, and how to translate them.

Every string a player sees — notifications, the tablet, the HUD, prompts, menus — is in locales/en.json. Lua and the page read the same table.

Shipped (3.2.0): English (en), German (de), Spanish (es), French (fr) and Portuguese (pt). Pick one in server.cfg: setr cc_powerwash_locale "de". The four translations have every English key and the same placeholders (checked by tests/verify.lua); a native speaker's polish is welcome, and your edits survive updates if you keep a copy.

Translate

  1. Copy locales/en.json to locales/<code>.json (e.g. de.json).
  2. Translate the values, keep the keys.
  3. In server.cfg: setr cc_powerwash_locale "de" (replicated: the client renders text too).

A key missing from your file falls back to English, key by key, so a half-finished translation still works. A key missing everywhere shows as the key itself, so typos are visible.

Placeholders

{name} placeholders are filled in by the code: keep them, move them where your grammar wants.

PlaceholderFilled with
{brand}Config.Brand.name (in every string)
{label}, {amount}, {fee}, {count}, {plate}, ...the value named

Numbers use the language's own grouping (1.234 in German); the currency sign stays $.

Common edits

KeyShows
notify.titlethe title on every notification (default {brand})
brand.*the tablet header lines and the HUD name
error.*why an action was refused
ui.*tablet labels and buttons
hud.*, prompt.*the job card and the key prompts