法一:在app\web\index.php中注释掉如下代码:
(new yii\web\Application($config))->run();
添加下面代码:
$app = new \yii\web\Application($config);
$app->language = "zh-CN";//设置中国区的语言
$app->run();
//(new yii\web\Application($config))->run();
法二:在app\config\web.php中设置:
$config = [
....
'language'=>'zh_CN',
'id' => 'basic',
...
]