From 1de0127191607a7f2fa5b362aade6a8905ffa312 Mon Sep 17 00:00:00 2001 From: Just Me Date: Sun, 3 Dec 2023 12:49:56 +0200 Subject: [PATCH] Specify locale in UserMailer --- app/mailers/user_mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/mailers/user_mailer.rb b/app/mailers/user_mailer.rb index e005b461..d48a0c17 100644 --- a/app/mailers/user_mailer.rb +++ b/app/mailers/user_mailer.rb @@ -1,6 +1,6 @@ class UserMailer < ApplicationMailer def email user @user = user - mail subject: t('.subject'), to: user.email + I18n.with_locale(:uk) { mail subject: t('.subject'), to: user.email } end end