Commit 9963d47f by Qiang Xue

revert back the change about message class so that the class can be lazily loaded.

parent 2ce09559
......@@ -45,14 +45,14 @@ class I18N extends Component
parent::init();
if (!isset($this->translations['yii'])) {
$this->translations['yii'] = [
'class' => PhpMessageSource::className(),
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en_US',
'basePath' => '@yii/messages',
];
}
if (!isset($this->translations['app'])) {
$this->translations['app'] = [
'class' => PhpMessageSource::className(),
'class' => 'yii\i18n\PhpMessageSource',
'sourceLanguage' => 'en_US',
'basePath' => '@app/messages',
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment