Yii:t()的动态配置
\Yii::$app->i18n->translations[‘categoryName*‘] = [ ‘class‘ => ‘yii\i18n\PhpMessageSource‘, ‘sourceLanguage‘ => ‘zh-CN‘, ‘basePath‘ => ‘@categoryName/messages‘, ];
`
原文地址:https://www.cnblogs.com/chrdai/p/9034537.html
时间: 2024-10-31 19:45:37