yii2-relation-trait icon indicating copy to clipboard operation
yii2-relation-trait copied to clipboard

Unable to locate message source for category 'mtrelt'.

Open moysoft opened this issue 7 years ago • 2 comments

Can't save updated record

moysoft avatar Dec 25 '17 12:12 moysoft

waiting to fix this

patel28 avatar Apr 14 '18 09:04 patel28

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',
                ],
            ],
        ],
    ],

danchello avatar Jun 26 '18 13:06 danchello