Fix rails mailer preview not honouring locale (#28418)
This commit is contained in:
@@ -12,7 +12,7 @@ class ApplicationMailer < ActionMailer::Base
|
||||
protected
|
||||
|
||||
def locale_for_account(account, &block)
|
||||
I18n.with_locale(account.user_locale || I18n.default_locale, &block)
|
||||
I18n.with_locale(account.user_locale || I18n.locale || I18n.default_locale, &block)
|
||||
end
|
||||
|
||||
def set_autoreply_headers!
|
||||
|
||||
Reference in New Issue
Block a user