Internationalization of Django allows me to set the language code either in the settings file (throughout the site), or for each user / per session.
How can I change the language for a specific page?
I wrote a middleware that sets request.LANGUAGE_CODE the way I want it to be translated, but uses nothing of this attribute to execute the selected translation.
source
share