heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
24.02k stars 5.55k forks source link

Use locales on mailer views #5679

Closed JuanVqz closed 2 weeks ago

JuanVqz commented 8 months ago

The other day I was trying to internationalize mailers on my application. I ended up copying the views to translate the mail content, which could be done by changing the content in the local (en.yml)file.

So, that is why I think it would be nice to have the I18n keys instead of the plain text in the mailers

nashby commented 2 weeks ago

@JuanVqz thank for the PR but we don't maintain translations in Devise. You can use https://github.com/devise-i18n/devise-i18n for that or just copy these mailer views into your app and do it there.