public function registerAssetFiles($view)
    {
        parent::registerAssetFiles($view);



        $localeEncoded = Json::encode(Yii::$app->language);
        $js = <<<js
var polyglot = new Polyglot({locale: $localeEncoded});
js;

        Yii::$app->controller->getView()->registerJs($js, \yii\web\View::POS_HEAD);


    }