Skip to content
Advertisement

Translate queued mails (localization)

I am looking for a working solution, to translate queued emails in . Unfortunately, all emails use the default locale (defined under app.locale).

Let’s assume, we have two emails in the pipeline, one for an English en user and another for an Japanese jp user.

What data should I pass to the Mail facade to translate (localize) the queued emails?

JavaScript

Advertisement

Answer

I have been struggling to get this done in a more efficient way. Currently I have it set up like this. Hopefully this helps someone in the future with this issue:

JavaScript

And use the following in your template:

JavaScript

Note: do not forget to restart your queue

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement