Skip to main content
Shared Proxied to ug-core. ug-core’s own messages live in locales/<code>.json. The language comes from locale in config/core.lua. Missing keys fall back to English. Without this module, ug-core uses its English messages.
Locale holds core messages only, such as connection, kick and ban texts. Your resources keep their own translations, and can use GetCode to pick the same language.

Get

string
required
Dotted path, such as identity.bannedUntil.
table
Values for {name} placeholders.
string
The key itself when no locale has it.

GetCode

Such as 'en'.

Adding a language

Copy locales/en.json to locales/<code>.json, translate the values, and set locale = '<code>' in config/core.lua.