yii2-relation-trait
yii2-relation-trait copied to clipboard
Unable to locate message source for category 'mtrelt'.
Can't save updated record
waiting to fix this
You just have to initialize i18n component like this:
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\PhpMessageSource',
'basePath' => '@app/messages', // if advanced application, set @frontend/messages
'sourceLanguage' => 'en',
'fileMap' => [
//'main' => 'main.php',
],
],
],
],