Localization

Change the language or translate Cube ItemsWheel into your own.

config.luaLua
Config.Locale = 'en' -- 'en' / 'fr'

Every text lives in locale/, one file per language, and is not escrowed. This includes the interface: the ui table is sent to the wheel when the game starts, so translating the Lua file translates everything.

locale/en.luaLua
Locales['en'] = {
    notify = {
        saved = 'Wheel saved',
    },
    ui = {
        tabs = {
            weapons = 'Weapons',
            items = 'Items',
        },
    },
}

Keep every %s - it is replaced by a value, such as an amount or an item name.

Adding a language#

1

Copy an existing file#

Copy locale/en.lua to locale/es.lua and rename the table key:

locale/es.luaLua
Locales['es'] = {
    -- ...
}
2

Translate the values#

Translate the values, never the keys. Any key you leave out falls back to English, in game and in the interface.

3

Select it#

config.luaLua
Config.Locale = 'es'

The manifest loads locale/*.lua, so the new file is picked up without any other change.