How to create multi-language custom email template

Last modified:


Available in service plans: Advanced, Universal

First, read How to use template tags in email templates and How to use context data in email templates.


You can use {% if %} template tag to check user language and add custom text for current language.

Example:

1. Send Spanish text to users with Spanish language

2. Send Russian text to users with Russian language

3. Send English text to all other users

{% if notification.user.language == "es" %}Here is template for Spanish users
{% elif notification.user.language == "ru" %}Here is template for Russian users
{% else %}Here is template for all other users
{% endif %}



This article was helpful for 8 people. Is this article helpful for you?
Report an error
Still need help? New ticket