@receiver(user_logged_in)
def set_language(sender, **kwargs):
    user = kwargs['user']
    couch_user = CouchUser.from_django_user(user)
    if couch_user and couch_user.language:
        kwargs['request'].session['django_language'] = couch_user.language


# Signal that syncs django_user => couch_user
Whenever a user logs in, attempt to set their browser session
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/users/signals.py/set_language