Browse Source

Default Language Fix

master
Egorka 6 years ago
parent
commit
6a768a5c29
  1. 4
      common/bootstrap/SetUp.php

4
common/bootstrap/SetUp.php

@ -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

Loading…
Cancel
Save