Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 602 Bytes

topics-i18n-message-source.md

File metadata and controls

24 lines (21 loc) · 602 Bytes

Using the I18N Message Source

You may use [[\yii\mongodb\i18n\MongoDbMessageSource]] for the i18n message translations storage. Application configuration example:

return [
    //....
    'components' => [
        // ...
        'i18n' => [
            'translations' => [
                '*' => [
                    'class' => 'yii\mongodb\i18n\MongoDbMessageSource'
                ]
            ]
        ],
    ]
];

Please refer to [[\yii\mongodb\i18n\MongoDbMessageSource]] for more details about configuration and translation collection data structure.