Is set language documentation out of date?

Mentions

If session support is enabled, the view saves the language choice in the user’s session

Similarly, looking at the code:

The docstring mentions setting value in session if enabled.

However, it looks like we removed this: Refs #15902 -- Stopped set_language() storing user's language in the … · django/django@d134b0b · GitHub

So is are the docs and docstring out of date, or is there another mechanism I’m missing? Happy to submit a PR to update the docs. :slight_smile:

You are right, the docs need an update. I think that later in the page, we should also remove:
... It should come after SessionMiddleware, because LocaleMiddleware makes use of session data.

Please report the PR number, so that I can have a look.