fix: extend_list强制加载语言包,确保Swoole环境下也能加载翻译

This commit is contained in:
testadmin
2026-05-11 15:00:38 +08:00
parent e9b3fde30e
commit ce03e0bb15
+5 -1
View File
@@ -15,7 +15,11 @@ return [
// 多语言cookie变量
'cookie_var' => 'think_lang',
// 扩展语言包
'extend_list' => [],
'extend_list' => [
'zh-cn' => [app()->getRootPath() . 'app/lang/zh-cn.php'],
'zh-tw' => [app()->getRootPath() . 'app/lang/zh-cn.php'],
'en-us' => [app()->getRootPath() . 'app/lang/zh-cn.php'],
],
// Accept-Language转义为对应语言包名称
'accept_language' => [
'zh-hans-cn' => 'zh-cn',