[Fixed]-Django session language doesn't apply to the first page the user lands on

1👍

No, this isn’t to do with cookies. It’s rather that the code that activates the language based on the session value lives in the LocaleMiddleware, and that is run before the view. If you want to change the language for your current view, you need to do it manually:

translation.activate(profile.language)

Leave a comment