|
|
|
@ -150,8 +150,8 @@ class SetUp implements BootstrapInterface
|
|
|
|
|
Yii::$app->params['defaultLanguage'] = $language ? $language->name : 'ru'; |
|
|
|
|
Yii::$app->params['translatedLanguages'] = ArrayHelper::map(Language::find()->active()->all(), 'name', 'title'); |
|
|
|
|
} else { |
|
|
|
|
Yii::$app->params['defaultLanguage'] = 'en'; |
|
|
|
|
Yii::$app->params['translatedLanguages'] = ['en']; |
|
|
|
|
Yii::$app->params['defaultLanguage'] = 'ru'; |
|
|
|
|
Yii::$app->params['translatedLanguages'] = ['ru']; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Set backend languages |
|
|
|
|