Locale
Use locale files to translate text shown by rcore_mdt, including the MDT interface.
💬 Default Locales
The resource includes:
rcore_mdt/locales/en.lua
rcore_mdt/locales/es.lua
rcore_mdt/locales/fr.luaSet the active locale in configs/sh_config.lua:
CONFIG.Locale = 'en'🌍 Add a New Language
Copy
rcore_mdt/locales/en.lua.Rename the copy to your language code, for example
de.lua.Change the first line from
Locales['en']to your language code:
Locales['de'] = {Translate the values inside the file. The
uitable holds the text of the MDT interface.Set
dateLocaleinside theuitable to your language, for example"de-DE". It is used to format dates.Set
CONFIG.Localeto the new language code.
No web rebuild is needed.
Last updated