From ce03e0bb15a509f0cf132598230b1a3d1a11ccb5 Mon Sep 17 00:00:00 2001 From: testadmin Date: Mon, 11 May 2026 15:00:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20extend=5Flist=E5=BC=BA=E5=88=B6=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E8=AF=AD=E8=A8=80=E5=8C=85=EF=BC=8C=E7=A1=AE=E4=BF=9D?= =?UTF-8?q?Swoole=E7=8E=AF=E5=A2=83=E4=B8=8B=E4=B9=9F=E8=83=BD=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/lang.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/config/lang.php b/config/lang.php index c1c8a3d..2189e16 100644 --- a/config/lang.php +++ b/config/lang.php @@ -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',