Middleware

Return to API Reference

UserenaLocaleMiddleware

class userena.middleware.UserenaLocaleMiddleware

Set the language by looking at the language setting in the profile.

It doesn’t override the cookie that is set by Django so a user can still switch languages depending if the cookie is set.