Hi all, i read message translation guide where is written that it’s possible to use a database that provides translation messages
Can anyone help me how to configure this?
I think that i must change
'components' => [
// ...
'i18n' => [
'translations' => [
'app*' => [
'class' => 'yii\i18n\PhpMessageSource',
//'basePath' => '@app/messages',
//'sourceLanguage' => 'en-US',
'fileMap' => [
'app' => 'app.php',
'app/error' => 'error.php',
],
],
],
],
],
with some notions about my db table but i can’t find more documentation or example.
Thank’s