B
B
blackbb2018-09-25 08:42:37
Django
blackbb, 2018-09-25 08:42:37

How can I set the default language in Django based on the user's language?

Hello, the site uses two languages ​​(English and Russian), the default is Russian. How can I make it so that the language is automatically selected depending on the user's language in the browser, for example, using the user-agent language header? This is important, since the site will be visited from Europe, it is necessary that they automatically show the English version of the site.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question