From a8b89bfa85d989ef5a4f736cb5e7f7902c113cc9 Mon Sep 17 00:00:00 2001 From: lingling <1077478963@qq.com> Date: Fri, 21 Mar 2025 20:16:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E8=AE=BE=E7=BD=AE=E4=B8=BA=E8=8B=B1=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/middleware/Lang.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/middleware/Lang.php b/app/middleware/Lang.php index b1f20ce..22f5b2a 100644 --- a/app/middleware/Lang.php +++ b/app/middleware/Lang.php @@ -14,7 +14,7 @@ class Lang implements MiddlewareInterface // 将 Accept-Language 中的语言与系统支持的语言进行匹配 // 这里假设我们支持 'zh_CN' 和 'en_US',你可以根据实际需求扩展更多语言 - $lang = 'zh_CN'; // 默认语言 + $lang = 'en'; // 默认语言 // 提取 Accept-Language 中的语言部分,如 'zh_CN' 或 'en_US' if (strpos($acceptLanguage, 'zh') === 0) {