Skip to Content

Localization

illenium-appearance includes 16 languages out of the box.

Setting the Language

Set the locale via the server convar:

set illenium-appearance:locale "en"

Available Languages

CodeLanguage
enEnglish
deGerman
frFrench
es-ESSpanish
itItalian
nlDutch
pt-BRPortuguese (Brazil)
ro-RORomanian
huHungarian
csCzech
bgBulgarian
arArabic
idIndonesian
zh-CNChinese (Simplified)
zh-TWChinese (Traditional)

Adding a New Language

  1. Create a new file in locales/ (e.g., locales/ja.lua)
  2. Copy the structure from locales/en.lua
  3. Translate all string values
  4. Add the file to fxmanifest.lua in shared_scripts (before @ox_lib/init.lua)
  5. Set illenium-appearance:locale to your language code

Locale Structure

Each locale file defines a table with nested keys:

Locales["en"] = { UI = { -- NUI strings (sent to React frontend) }, purchase = { store = { success = { title = "...", description = "..." }, failure = { title = "...", description = "..." }, }, tattoo = { ... }, }, outfits = { ... }, commands = { ... }, -- etc. }

The UI subtable is sent to the React NUI. All other keys are used by the Lua client/server code via the _L("key.path") function.

Last updated on