Localization
Localization
Every string the player or the medic sees comes from ox_lib's locale system.
Shipped languages
en, tr, de, es, fr, it, pt, ru, pl, nl — 72 keys each.
Choosing one
setr ox:locale "tr"Any key missing from a translation falls back to English, so a partial translation never leaves a blank label on screen.
Adding your own
Copy locales/en.json to locales/<code>.json, translate the values, and set ox:locale to match. The file is picked up on restart — nothing needs registering.
ℹ
Substance names are not in these files. A substance's label is whatever you typed into the editor, so a server running in Turkish names its drugs in Turkish at the point of creation. The locale files cover the interface around them.
What is translated
| Prefix | Covers |
|---|---|
cr_ |
The editor: tabs, groups, hints, buttons |
chart_ |
The toxicology chart a medic reads |
hud_, od_, crisis_ |
The HUD card, the overdose overlay, the crisis warning |
notify_ |
Confirmations after saving, treating and reviving |
err_ |
Everything that can be refused |