env('lang.default_lang', 'en'), // 允许的语言列表 'allow_lang_list' => ['zh','zh-tw','en','jp','ar','fr','de','es','it','id','th','tr','vi','ko'], // 多语言自动侦测变量名 'detect_var' => 'lang', // 是否使用Cookie记录 'use_cookie' => true, // 多语言cookie变量 'cookie_var' => 'think_lang', // 扩展语言包 'extend_list' => [ 'zh' => [ app()->getBasePath() . 'lang/zh.php', ], 'zh-cn' => [ app()->getBasePath() . 'lang/zh_cn.php', ], 'zh-tw' => [ app()->getBasePath() . 'lang/zh-tw.php', ], 'en-us' => [ app()->getBasePath() . 'lang/en_us.php', ], 'en' => [ app()->getBasePath() . 'lang/en.php', ], 'jp' => [ app()->getBasePath() . 'lang/jp.php', ], 'ar' => [ app()->getBasePath() . 'lang/ar.php', ], 'fr' => [ app()->getBasePath() . 'lang/fr.php', ], 'de' => [ app()->getBasePath() . 'lang/de.php', ], 'es' => [ app()->getBasePath() . 'lang/es.php', ], 'it' => [ app()->getBasePath() . 'lang/it.php', ], 'id' => [ app()->getBasePath() . 'lang/id.php', ], 'th' => [ app()->getBasePath() . 'lang/th.php', ], 'tr' => [ app()->getBasePath() . 'lang/tr.php', ], 'vi' => [ app()->getBasePath() . 'lang/vi.php', ], 'ko' => [ app()->getBasePath() . 'lang/ko.php', ], ], // Accept-Language转义为对应语言包名称 'accept_language' => [ // 'zh-Hans' => 'zh-cn', 'zh-cn' => 'zh', // 让 zh-cn 指向 zh 'zh-CN' => 'zh', // 兼容大写 'en-us' => 'en', // 可选:让 en-us 指向 en 'en' => 'en', ], // 是否支持语言分组 'allow_group' => true, ];