π« The official Rails Guides do not recommend to store locale in session/cookie.
Let's break the rules! π
In this episode:
- not logged in users store language preferences in the Session.
- logged in users store language preferences in User model.
This way our routes will stay clean π