From fd3f6272f1aa2dffac941c6110e8f49500b8b735 Mon Sep 17 00:00:00 2001 From: snowykami Date: Fri, 29 Nov 2024 00:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=B3=BB=E7=BB=9F=E8=AF=AD=E8=A8=80=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=9A=84=E9=80=BB=E8=BE=91=EF=BC=8C=E5=A4=84=E7=90=86None?= =?UTF-8?q?=E5=80=BC=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/base/language.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/base/language.py b/src/utils/base/language.py index 455299b9..8a4852d8 100644 --- a/src/utils/base/language.py +++ b/src/utils/base/language.py @@ -217,6 +217,7 @@ def get_system_lang_code() -> str: if l[0] is None: return "zh-CN" else: + return l[0].replace("_", "-")