---
title: "Action check_language"
description: "Checks whether a dialog language is selected for the current user."
---

# Action `check_language`

> **System ID:** `action_check_language`

## Description

Checks whether a language code (`selected_lang_code`) is set in the user state. Use for branching: show language selection or continue the scenario in the user’s language.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **defined** | Language code is set in the state |
| **not_defined** | Language code is missing or empty |

## Parameters

No parameters (`{}`).

## Configuration example

```json
{}
```

## Related docs

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