49 \
Magento\Framework\TranslateInterface $translator,
50 \
Magento\Backend\
App\ConfigInterface $backendConfig
53 $this->_authSession = $authSession;
54 $this->_translator = $translator;
55 $this->_backendConfig = $backendConfig;
66 $this->_session->setSessionLocale(
null);
68 $this->_authSession->getUser()->setInterfaceLocale($localeCode);
70 $this->_translator->setLocale($localeCode)->loadData(
null,
true);
83 return $this->_backendConfig->getValue(
'general/locale/code');
93 $userData = $this->_authSession->getUser();
96 if ($userData && $userData->getInterfaceLocale()) {
97 $interfaceLocale = $userData->getInterfaceLocale();
102 return $interfaceLocale;
elseif(isset( $params[ 'redirect_parent']))
__construct(\Magento\Backend\Model\Session $session, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\TranslateInterface $translator, \Magento\Backend\App\ConfigInterface $backendConfig)
switchBackendInterfaceLocale($localeCode)