public function init() { list($this->clientOptions['lang']) = explode('-', \Yii::$app->language); parent::init(); }