For the complete documentation index, see llms.txt. This page is also available as Markdown.

Locale

rcore_dealership loads translations from rcore_dealership/locales.

๐ŸŒ Setting the Language

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.

โž• Adding a Language

1

Copy the English file

Copy locales/en.lua to a new file named after your language code, for example locales/de.lua.

2

Translate the strings

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.

3

Select your language

Set Config.Locale to your new code and restart the resource. Files in locales/ are loaded automatically - no manifest edit is needed.

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