Language
Gangs V2 comes in English. You can translate every notification, menu and message into any language.
✍️ Translating
- Open the
localesfolder inkartik-gangs. - Copy
en.jsonand rename the copy to your language code, for examplede.json,fr.jsonores.json. - Open the new file and translate the text on the right side of each line:
"not_in_gang": "Du bist in keiner Gang",- Only change the text on the right. The name on the left must stay exactly the same.
- Keep anything like
%sor%d. Those get replaced with names, numbers and amounts.
- Tell the server which language to use by adding this to
server.cfg:
setr ox:locale "de"- Restart the server.
ℹ️ Good to know
- If a line is missing from your translation, the English text is shown instead.
- The language setting is shared with other ox_lib scripts on your server.
- A few labels inside the admin panel are always shown in English.
➡️ Done! Head to Getting Started.