Locale System
All user-facing strings are stored in locale files under locales/. The default language is English (en).
Setting the Language
lua
Config.Locale = 'en' -- Change to your language code
Adding a New Language
- Copy
locales/en.luatolocales/xx.lua(replacexxwith your language code, e.g.,trfor Turkish) - Translate all string values in the new file
- Set
Config.Locale = 'xx'inshared/config.lua
Usage
Lua (Client/Server)
lua
Lang('key', ...) -- With optional format parameters
React (NUI)
jsx
const { t } = useLanguage();
t('key', 'Fallback text')
