python flask detect browser language
python flask detect browser language
|
You should check |
|||||
|
|
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. |
What Doesn't Kill Me Makes Me Stronger

浙公网安备 33010602011771号
print(request.headers)to see what is in there? – IanAuld May 25 '15 at 14:50