Create a new JSON file in the script locales folder, following the locales/en.json format.
locales
locales/en.json
Ensure the correct Config.Locale value is set in config.lua.
Config.Locale
config.lua
To change the preferred language from English, add the convar to your server.cfg and change en to the desired language code.
en
If the server's Locale is set to fr, then a corresponding locales/fr.json file should be created.
Locale
fr
locales/fr.json
Last updated 2 months ago
setr ox:locale "tr" -- Example