Translate-plugin: Mail Templates translation

Created on 22 Dec 2019  路  2Comments  路  Source: rainlab/translate-plugin

Content files can be translated by affixing the locale code to the file name. We need to apply the same technique to translate Mail template files.

People are translating the mail templates themselves using the twig filters. This is a bad idea because when the mail is processed in a queue, it loses the locale setting.

Completed Enhancement

Most helpful comment

I think this could be implemented by hooking into the "mailer.beforeSend" event and modifying the $view parameter in the event handler

All 2 comments

I think this could be implemented by hooking into the "mailer.beforeSend" event and modifying the $view parameter in the event handler

Is this abandoned?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ladylain picture Ladylain  路  3Comments

tbergeron picture tbergeron  路  4Comments

sophie-vdv picture sophie-vdv  路  4Comments

o0alexela0o picture o0alexela0o  路  4Comments

FelixINX picture FelixINX  路  5Comments