Issue Bug Closed

#88517Localization in Middleware

Roman Büchler 06/07/19, 13:16 updated 11/17/19, 17:25

Description

A Middleware has been configured to be processed after ‘typo3/cms-frontend/prepare-tsfe-rendering’.
When fetching a translation in the process method with

$GLOBALS['LANG']->sL('LLL:EXT:myext/Resources/Private/Language/locallang.xlf:item');

the English version is returned even though the default language is German. When using a TYPO3\CMS\Fluid\View\StandaloneView the labels from the template get translated correctly.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.