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

11/06/2024
Free
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
Sign in to join the conversation