> For the complete documentation index, see [llms.txt](https://support.morozovpimnev.ru/support/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.morozovpimnev.ru/support/multilanguage/sushnost-yazyk.md). Agents can also search and read this documentation through its [MCP server](https://support.morozovpimnev.ru/support/~gitbook/mcp).

# Сущность язык

Получить текущий язык можно в любом месте макета, ТДС или своем функционале следующий образом

{% tabs %}
{% tab title="HostCMS >= 6.6.7" %}
{% code lineNumbers="true" fullWidth="true" %}

```php
<?php
    Core::getLng(); // en
?>
```

{% endcode %}
{% endtab %}

{% tab title="HostCMS < 6.6.7" %}
{% code lineNumbers="true" fullWidth="true" %}

```php
<?php
    MultiLanguage_Observer::getLng(); // en
?>
```

{% endcode %}
{% endtab %}
{% endtabs %}
