Language
Every piece of text a player sees, notifications, menus, the tablet, the death screen, item labels in the UI, comes from one file.
locales/en.jsonTranslating
- Copy
locales/en.jsonto a new file, for examplelocales/fr.json. - Translate the values on the right. Never change the keys on the left.
- Set your locale with the standard ox_lib convar in
server.cfg:
setr ox_locale fr- Restart the resource.
Keep the {placeholders} in braces exactly as they are. They are replaced with live values like names, amounts and body parts.
Example:
"treatment_applied": "Applied {treatment} to the {zone}",becomes
"treatment_applied": "{treatment} appliqué sur {zone}",What is not in the locale file
| Text | Where to change it |
|---|---|
| Item labels in the inventory | Your inventory's own item file |
| Treatment, medication and disease labels | shared/config/treatments.lua, medications.lua, diseases.lua, the label field |
| Hospital names | The hospital creator in /emsadmin |
| Report template text | The tablet → Report templates |
| Insurance plan names | The tablet → Insurance plans |
locales/ is outside the escrow, so you can edit it freely and it survives updates as long as you keep a copy.