.. include:: /Includes.rst.txt .. index:: Request attribute; Language .. _typo3-request-attribute-language: ======== Language ======== The :php:`language` frontend request attribute provides information about the current language of the webpage via the :php:`\TYPO3\CMS\Core\Site\Entity\SiteLanguage` object. Example: .. code-block:: php $language = $request->getAttribute('language'); $locale = $language->getLocale(); API === .. include:: /CodeSnippets/Manual/Entity/SiteLanguage.rst.txt