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.
lua
shared_scripts {
'@jo_libs/init.lua'
}- Add the i18n module inside the
fxmanifest.lua(in lowercase)
lua
jo_libs {
'i18n',
}- Set the default locale in your
server.cfgfile:
cfg
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.