Locale
Last updated
rcore_dealership loads translations from rcore_dealership/locales.
Set the active language in config.lua:
Config.Locale = 'en'Only en.lua is included by default. If the configured language is missing, the script falls back to English.
Each file defines one table, Locales.<code> = { ... }. Keep the keys the same and translate only the values. Values can contain %s placeholders - leave them in place.
Locales.de = {
UI = {
['VEHICLE_CLASS_0'] = 'Kompaktwagen',
-- ... interface strings
},
['SOME_KEY'] = 'Text mit %s Platzhalter',
-- ... notification strings
}The UI sub-table holds interface text; the top-level keys hold server and notification text.
Locale files are editable even on the encrypted build, so your translations are safe across updates as long as you keep a backup.
Last updated