src/components/AdminUser.php
public function onAfterLogin(UserEvent $event)
    {
        if (!$this->identity->is_api_user) {
            Yii::$app->language = $this->getInterfaceLanguage();
        }
    }
public function onAfterLogin(UserEvent $event)
    {
        if (!$this->identity->is_api_user) {
            Yii::$app->language = $this->getInterfaceLanguage();
        }
    }
public function onAfterLogin ( UserEvent $ event ) { if ( ! $ this -> identity -> is_api_user ) { Yii :: $ app -> language = $ this -> getInterfaceLanguage ( ) ; } }
After the login process of the user, set the admin interface language based on the user settings.
@param UserEvent $event
After the login process of the user set the admin interface language based on the user settings .