Skip to content

translation: Always set language cookie when switching language

Django 3.0 will now always set the language cookie. It will stop setting the session language in Django 4.0. To avoid breaking current behavior, always set the language cookie when switching language.

"To limit creation of sessions and hence favor some caching strategies, django.views.i18n.set_language() will stop setting the user’s language in the session in Django 4.0. Since Django 2.1, the language is always stored in the LANGUAGE_COOKIE_NAME cookie."

Tests:

  • All relevant functional tests run.

  • Repeat login and user page editing tests.

Signed-off-by: Sunil Mohan Adapa sunil@medhas.org

Merge request reports

Loading