🐛 修复获取系统语言代码的逻辑,处理None值的情况
Some checks failed
Docker Image Build / build (push) Failing after 35s
Deploy VitePress site to Pages / build (push) Failing after 2m11s

This commit is contained in:
远野千束 2024-11-29 00:04:34 +08:00
parent 4d87a3c0b7
commit fd3f6272f1

View File

@ -217,6 +217,7 @@ def get_system_lang_code() -> str:
if l[0] is None:
return "zh-CN"
else:
return l[0].replace("_", "-")