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 tester.locale_language == 'en' %} Welcome! {% elsif tester.locale_language == 'es' %} Bienvenido! {% endif %}

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