yii动态配置International(Yii::t())

Yii:t()的动态配置

\Yii::$app->i18n->translations['categoryName*'] = [
    'class' => 'yii\i18n\PhpMessageSource',
    'sourceLanguage' => 'zh-CN',
    'basePath' => '@categoryName/messages',
];

`

猜你喜欢

转载自www.cnblogs.com/chrdai/p/9034537.html
yii