Receiving mails in the prefered language in rails

I am working in ROR. we have 2 translations one in En.yml and another
for german . We will set the translation and the whole application will
be seen in the selected language .

We have a functionality of sending notification mails when the user
receives comments for his post.

This functionality expects to be like to receive the mails in the
language that the user who is commenting .

For eg. As far now we are receiving mails like

A commented your post.

But it expects to be in German even in mails.

How tat is possible…

Please give some suggestions

You could add a preferred language field to your user model and then use
that in your mailer to decide what language you should use for the