Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
Language
The
language frontend request attribute provides information about the
current language of the webpage via the
\TYPO3\ object.
Example:
$language = $request->getAttribute('language');
$locale = $language->getLocale();
Copied!
See also
For the API see \TYPO3\CMS\Core\Site\Entity\SiteLanguage.