Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhigh committed Jul 6, 2024
1 parent 15c50df commit 79da890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/view/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def get_locale():
langCode = session.get('langCode') or request.accept_languages.best_match(supported_languages)
except: #Working outside of request context
langCode = 'en'
return langCode or ''
return langCode or 'en'

#各种语言的语种代码和文字描述的对应关系
def LangMap():
Expand Down

0 comments on commit 79da890

Please sign in to comment.