#172 i18n. Set language preferences in session or in User model
11/06/2024
Free
π« 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 π
0
Sign in to join the conversation
Featured in playlists
+1
i18n (internationalization)