#172 i18n. Set language preferences in session or in User model

11/06/2024
i18n translation internationalization

🚫 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
Join the conversation
Sign in to access PRO lessons, access private repos, leave comments, create watch lists.
We collect your email address, name and username to create your account. We do not share your email address with anyone else.