widgets/Redactor.php
protected function registerRegional()
    {
        $this->clientOptions['lang'] = ArrayHelper::getValue($this->clientOptions, 'lang', Yii::$app->language);
        $langAsset = 'lang/' . $this->clientOptions['lang'] . '.js';
        if (file_exists($this->sourcePath . DIRECTORY_SEPARATOR . $langAsset)) {
            $this->assetBundle->js[] = $langAsset;
        } else {
            ArrayHelper::remove($this->clientOptions, 'lang');
        }

    }
protected function registerRegional()
    {
        $this->clientOptions['lang'] = ArrayHelper::getValue($this->clientOptions, 'lang', Yii::$app->language);
        $langAsset = 'lang/' . $this->clientOptions['lang'] . '.js';
        if (file_exists($this->sourcePath . DIRECTORY_SEPARATOR . $langAsset)) {
            $this->assetBundle->js[] = $langAsset;
        } else {
            ArrayHelper::remove($this->clientOptions, 'lang');
        }

    }
protected function registerRegional ( ) { $ this -> clientOptions [ 'lang' ] = ArrayHelper :: getValue ( $ this -> clientOptions , 'lang' , Yii :: $ app -> language ) ; $ langAsset = 'lang/' . $ this -> clientOptions [ 'lang' ] . '.js' ; if ( file_exists ( $ this -> sourcePath . DIRECTORY_SEPARATOR . $ langAsset ) ) { $ this -> assetBundle -> js [ ] = $ langAsset ; } else { ArrayHelper :: remove ( $ this -> clientOptions , 'lang' ) ; } }
Register language for Redactor
Register language for Redactor