Localize an Email Message in Multiple Languages

If you are using our signup form then we automatically capture the user's locale (the langauge preference of their web browser). Given this, you can place various localized versions of the copy in your email message, but use some code to determine which version is received by each user.

Prefinery's email messages use the Liquid language (docs here) and you can use some if/then statements based on the recipient's locale to determine which copy embedded in the email message they will receive. To do this, you simply edit the email message and click on the Source button of the WYSIWYG editor and add something like the following:

{% if user.locale_language == 'en' %}
{% elsif user.locale_language == 'es' %}
{% endif %}

Still need help? How can we help? How can we help?