Skip to content

Editing localization files

Video Tutorial#

https://www.youtube.com/embed/viOECpVLVqM

Detailed Explanation#

Create a new JSON File#

Create a new JSON file in the script locales folder, following the locales/en.json format.

Set the Locale setting value (if you don't want to use ox_lib)#

Ensure the correct Config.Locale value is set in config.lua.

Add the convar to your server.cfg (if you want the use ox_lib)#

To change the preferred language from English, add the convar to your server.cfg and change en to the desired language code.

lua
setr ox:locale "tr" -- Example

If the server's Locale is set to fr, then a corresponding locales/fr.json file should be created.