◾Languages
Information related to how this addon can be translated.
Last updated
Information related to how this addon can be translated.
All languages included with script are located in lua\modules\lunera\lang
Copy the lua\modules\lunera\lang\en.lua file
Rename copied en.lua file to your own language
Example: lua\modules\lunera\lang\ru.lua ( russian )
Open the new language file in a text editor.
Locate the line:
mod.language[ 'en' ]
Change the line to your new language:
mod.language[ 'ru' ]
Translate all of the strings to your own language.
Open the folder lua\modules\lunera\lang\
Find the filename for the language you want to make as your default
Open lua\modules\lunera\cfg\sh_cfg.lua
Locate the setting cfg.lang
Change 'en' to your own language's filename (without the .lua at the end)
Restart your server if changes do not get applied immediately.
You can switch languages in-game on-the-fly by typing !lang in chat.

The languages in the list are a compiled set from all the addons you own running rlib. If you own multiple scripts, but only have French translations for one; then the one addon will be translated to French and the others will default to English.
Last updated
cfg.lang = 'ru' -- russian
cfg.lang = 'es' -- spanish
cfg.lang = 'fr' -- french