Commit 454c4b487de9c6ffa366fb0013ca8cfa1487b7f1
1 parent
7b846b99
- translations
Showing
1 changed file
with
12 additions
and
0 deletions
Show diff stats
frontend/config/main.php
| ... | ... | @@ -173,6 +173,18 @@ |
| 173 | 173 | 'errorHandler' => [ |
| 174 | 174 | 'errorAction' => 'site/error', |
| 175 | 175 | ], |
| 176 | + 'i18n' => [ | |
| 177 | + 'translations' => [ | |
| 178 | + 'core' => [ | |
| 179 | + 'class' => 'yii\i18n\PhpMessageSource', | |
| 180 | + 'basePath' => '@common/messages', | |
| 181 | + ], | |
| 182 | + 'app' => [ | |
| 183 | + 'class' => 'yii\i18n\PhpMessageSource', | |
| 184 | + 'basePath' => '@common/messages', | |
| 185 | + ], | |
| 186 | + ], | |
| 187 | + ], | |
| 176 | 188 | 'urlManager' => [ |
| 177 | 189 | 'class' => UrlManager::className(), |
| 178 | 190 | 'baseUrl' => '/', | ... | ... |