# LOCALIZATION::GET_CURRENT_LANGUAGE

- **Hash:** `0xDB917DA5C6835FCC`
- **Namespace:** LOCALIZATION
- **Runtime name (Lua/JS):** `GetCurrentLanguage`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/LOCALIZATION/GET_CURRENT_LANGUAGE

## Signature

```c
int GET_CURRENT_LANGUAGE();
```

## Returns

`int`

## Description

0 = american (en-US)
1 = french (fr-FR)
2 = german (de-DE)
3 = italian (it-IT)
4 = spanish (es-ES)
5 = brazilian (pt-BR)
6 = polish (pl-PL)
7 = russian (ru-RU)
8 = korean (ko-KR)
9 = chinesetrad (zh-TW)
10 = japanese (ja-JP)
11 = mexican (es-MX)
12 = chinesesimp (zh-CN)

## Usage

### Lua

```lua
local retval = GetCurrentLanguage()

-- always available, by hash
local retval = Citizen.InvokeNative(0xDB917DA5C6835FCC, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetCurrentLanguage();

// by hash
const retval = Citizen.invokeNative('0xDB917DA5C6835FCC', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xDB917DA5C6835FCC);
```

*Sources: alloc8or RDR3 NativeDB.*
