优化多语言支持,url参数变量及cookie名称可通过配置更换

This commit is contained in:
huangdijia
2015-12-21 11:29:26 +08:00
parent 2bd097072b
commit 050735d8c9
2 changed files with 10 additions and 7 deletions

View File

@@ -27,6 +27,10 @@ return [
'lang_switch_on' => false,
// 支持的多语言列表
'lang_list' => ['zh-cn'],
// 语言变量
'lang_detect_var' => 'lang',
// 语言cookie变量
'lang_cookie_var' => 'think_lang',
// +----------------------------------------------------------------------
// | 模块设置