--- Localização
Localization
All player-facing text runs through ox_lib's locale system. Translation files live in locales/*.json.
Set the language
Language is chosen globally with the ox:locale convar in server.cfg:
setr ox:locale "tr"ox_lib merges the chosen language over the English fallback, so any key missing from a translation automatically shows the English text instead of a raw key.
Shipped languages
| Code | Language |
|---|---|
en |
English (fallback) |
de |
German |
es |
Spanish |
fr |
French |
it |
Italian |
nl |
Dutch |
pl |
Polish |
pt |
Portuguese |
ru |
Russian |
tr |
Turkish |
Add or edit a language
Each file is a flat JSON map of key → text. Copy locales/en.json, translate the values (keep the keys and any %s / %d placeholders), save it as locales/<code>.json, and point ox:locale at your code.
ℹ
Rule labels in the creator UI use rule_<key> locale keys, and rule group headers use grp_<group> — translate those too if you want a fully localized creator panel.