Commit 4fa60a5a authored by shajiaiming's avatar shajiaiming

多语言配置

parent 9c807aa6
......@@ -33,6 +33,9 @@ class BaseController extends Controller
public function fzmCrossHeader()
{
$this->lang = \Yii::$app->request->headers->get('lang') ?? 'zh-CN';
if ('en' == strtolower($this->lang)){
$this->lang = 'en-US';
}
}
public function beforeAction($action)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment