I need to get the browser language with Python flask. I have tried to use:
request.headers.get(‘languages‘)
This however returns None
.
I tried whoer.net and it returned it-IT
for my browser language. How can I detect the browser language with Python flask ?
print(request.headers)
to see what is in there? – IanAuld May 25 ‘15 at 14:50