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.