This page explains how to set your server language and how to contribute translations for Onex Scripts.
Add the following line to your server.cfg:
server.cfgsetr onex:locale "en"
Replace "en" with your desired language code. This applies the locale globally across all Onex Scripts automatically.
All translations for all our scripts are managed from our community translations repository on GitHub:
π github.com/onexscripts/translations
We'd love your help! If you want to add a new language or improve an existing one, open a Pull Request with your changes and our team will review it.
Read all guidelines carefully before submitting a Pull Request. PRs that do not follow these rules will be rejected.
.json file β for example en.json, fr.json, de.json.{script-name}/de.jsonen.json (our base file) and replace the values with your translations._meta block at the top to match your language:{ "_meta": { "language": "German", "code": "de" }, ... }
"RENTAL_UI_DAY_IF_PLURAL": "S" β these are used programmatically.Here's a snippet from the base en.json for the rental script:
en.json{ "_meta": { "language": "English", "code": "en" }, "RENTAL_NOTIFICATION_NO_MONEY_ALERT": "You don't have enough money to rent this vehicle.", "RENTAL_UI_MAIN_HEADING": "CAR RENTAL", "RENTAL_UI_RENT_NOW_BUTTON": "RENT NOW" }
A correctly translated fr.json would look like:
fr.json{ "_meta": { "language": "French", "code": "fr" }, "RENTAL_NOTIFICATION_NO_MONEY_ALERT": "Vous n'avez pas assez d'argent pour louer ce vΓ©hicule.", "RENTAL_UI_MAIN_HEADING": "LOCATION DE VOITURE", "RENTAL_UI_RENT_NOW_BUTTON": "LOUER MAINTENANT" }
Only the values are translated. The keys, _meta structure, and any placeholders remain exactly the same.
Last updated about 1 month ago