python flask detect browser language
No problem. We won't show you that ad again. Why didn't you like it?
- Uninteresting
- Misleading
- Offensive
- Repetitive
- Other
You should check |
|||||
|
No problem. We won't show you that ad again. Why didn't you like it?
- Uninteresting
- Misleading
- Offensive
- Repetitive
- Other
Check out Werkzeug's LanguageAccept data structure, or just try something like this to get a best match:
If you need more than that, then check out Flask-Babel. |
转载于:https://www.cnblogs.com/kungfupanda/p/5569759.html
print(request.headers)
to see what is in there? – IanAuld May 25 '15 at 14:50