Skip to content

Commit

Permalink
🐛 修复获取系统语言代码的逻辑,处理None值的情况
Browse files Browse the repository at this point in the history
  • Loading branch information
snowykami committed Nov 28, 2024
1 parent 4d87a3c commit fd3f627
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/base/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ def get_system_lang_code() -> str:
if l[0] is None:
return "zh-CN"
else:

return l[0].replace("_", "-")


Expand Down

0 comments on commit fd3f627

Please sign in to comment.