🗺️localization

Overview

The script supports multiple languages. Translation files are located in:

data/
└── language/
    ├── en.json
    └── pl.json

Changing Language

Open shared/config.lua and change the locale:

Config.Locale = 'en' -- 'pl' or 'en'

Available Languages

Code
Language

en

English

pl

Polish


Translation Structure

DUI Showroom

Key
Description

header_title

Main title on DUI showroom

category_all

"All categories" filter option

category_select

Category dropdown placeholder

stock_available

Badge text when in stock

stock_count

Stock count with number placeholder

stock_unavailable

Badge text when out of stock


Target Interactions

Key
Description

enter_showroom

Target label for entering showroom

exit_showroom

Target label for exit interaction

set_random_tuning

Target label for random tuning

open_catalog

Target label for NUI catalog


Tuning Menu


NUI Interface


Vehicle Categories


Test Drive


Notifications


Adding New Language

1

Create the file

Create a new JSON file in data/language/ (e.g., de.json for German).

2

Copy structure

Copy the structure from en.json.

3

Translate

Translate all values in the new JSON file.

4

Enable language

Update Config.Locale to your language code in shared/config.lua.

Example (German):


Placeholders

Some translations use placeholders:

Placeholder
Description

{0}

First dynamic value

{1}

Second dynamic value

Example: "level": "{0} Level {1}" becomes "Engine Level 4"