---
title: "Action language__get"
description: "Returns the user's selected language code or the error branch."
---

# Action `language__get`

> **System ID:** `action_language__get`  
> Also in the scenario: `language__get`  
> Alias of the same logic: [`get_language`](/en/actionjail/reference/actions/get_language.md) (`action_get_language`).

## Description

Returns the user's language code. Looks first in the `lang_code` constant, then in the `selected_lang_code` state. If no language is set — **error** branch. The result (for example, `uk`, `en`) can be used for scenario branching.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| language code (dynamic) | Language found — the code itself is returned (`uk`, `en`, …) |
| **error** | Language is not set |

Configure scenario branches for the bot's actual language codes.

## Parameters

No parameters (`{}`).

## Configuration example

```json
{}
```

## Related docs

- [Actions reference](/en/actionjail/reference/actions-reference.md)
- [Action get_language](/en/actionjail/reference/actions/get_language.md)
- [Action language__set](/en/actionjail/reference/actions/language__set.md)
