/** * Switch backend locale according to locale code * * @param string $localeCode * @return $this */ public function switchBackendInterfaceLocale($localeCode) { $this->_session->setSessionLocale(null); $this->_authSession->getUser()->setInterfaceLocale($localeCode); $this->_translator->setLocale($localeCode)->loadData(null, true); return $this; }