I use Sprout Email on a website to send transactional email (about 15 different types).
The website gets now translated to 3 languages (DE/FR/EN). It is all fine, but of course, also the transactional emails need to be in three languages.
As Sprout Email does not really support localization, it is still somehow possible by adding 3 "Email Body" fields to the email field layout:
- emailBodyDe
- emailBodyFr
- emailBodyEn
In the mail template, I can then chose which body to use. All good so far.
{% set locale = object.locale %}
{% set emailBody = email.htmlEmailBodyDe %}
{% set emailSubject = email.subjectLine %}
{% switch locale %}
{% case "fr" %}
{% set emailBody = email.htmlEmailBodyDe %}
{# ... set subject!? ... #}
{% case "en" %}
{% set emailBody = email.htmlEmailBodyEn %}
{# ... set subject!? ... #}
{% endswitch %}
But I can't translate the subject line. There is just one fixed field in Sprout Email for that.
Any suggestions how I can also make the subject field multi-language?