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
I need to get the browser language with Python flask. I have tried to use:
This however returns I tried whoer.net and it returned |
|||||
|
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. |