---
title: "Language"
manual: "TYPO3 Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-language@main"
source: "ApiOverview/RequestLifeCycle/RequestAttributes/Language.rst"
rendered: "2026-09-28T12:36:38+00:00"
---

# Language {#typo3-request-attribute-language}

The `language` frontend request attribute provides information about the
current language of the webpage via the
`\TYPO3\CMS\Core\Site\Entity\SiteLanguage` object.

Example:

```php
$language = $request->getAttribute('language');
$locale = $language->getLocale();
```

> [!NOTE]
> **See also**
>
> For the API see [\\TYPO3\\CMS\\Core\\Site\\Entity\\SiteLanguage](https://docs.typo3.org/permalink/t3coreapi:typo3-cms-core-site-entity-sitelanguage@main).
