Skip to content

Commit

Permalink
Fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyEye-FAST committed Jul 15, 2024
1 parent 7897edc commit bcdf0ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def get_locale() -> str:
locale = request.accept_languages.best_match(
["zh_CN", "zh_TW", "zh", "en"], default="en"
)
if locale == "zh":
return "zh_CN"
return locale


Expand Down

0 comments on commit bcdf0ee

Please sign in to comment.