# getLocalization (Client)

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

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Player environment
- **URL**: https://wiki.mymp.gg/en/getLocalization

## Syntax

```lua
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

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

## See also

- [isStreamerMode (Client)](https://wiki.mymp.gg/en/isStreamerMode.md): Tells whether streamer mode is on. In it, the console masks every IPv4 address it shows.
