M MY Multiplayer: Wiki
Side
Kind

getLocalization

Client

Returns the language the player is playing in, the one chosen in the launcher.

table getLocalization()

Returns

A table with code (pt-BR, en or es) and name, the language's name in itself (for example, English).

Without a language from the launcher, it is en.

Example

local greetings = { ["pt-BR"] = "Bem-vindo!", en = "Welcome!", es = "¡Bienvenido!" }
local language = getLocalization()
outputDebugString(greetings[language.code])

See also