i18n
i18n is a module to implement an internationalization system for your resource.
Include i18n in your script
- To use the i18n library, just add the initiator as a shared script inside of your
fxmanifest.luafile.
shared_scripts {
'@jo_libs/init.lua'
}
- Add the i18n module inside the
fxmanifest.lua(in lowercase)
jo_libs {
'i18n',
}
- Set the default locale in your
server.cfgfile:
setr jo_libs:i18n:locale "en"
You can now use the library inside of your resource with the jo.i18n global variable.
Functions
Documentation for the Both Sides side.