Issue i18n django_language in session

14 views
Skip to first unread message

Oscar Rovira

unread,
Jul 17, 2019, 12:44:57 PM7/17/19
to Django users
Hi there,
I have a Django site with multi-language support through i18n. 
The default user's language is set based on the browser headers but users can change it via the regular set_language view. 
Recently I noticed that the UI is shown in a different language than the one my user is supposed to have set and this happens, apparently, without changing my browser language preferences or calling the set_language view.
I've been looking around the code, checking every statement that makes reference to the language setting of the user in session with no luck on anything that could be causing the issue. I have no clue about what is going on.
Does the issue rings the bell to someone? Something I could review at?

I appreciate any help or advice. Thanks!
Oscar

Yoo

unread,
Jul 17, 2019, 10:37:41 PM7/17/19
to Django users
I'm not sure, either. Usually, whenever I'm testing, I open a private/incognito browser in case there is caching or cookies are being saved (cookies could be related to session authentication and other stuff). What I would try first is clearing your cookies if you've been using a regular browser tab. Otherwise, I'll also look into it.
Cheers!
Reply all
Reply to author
Forward
0 new messages