How to create multi-language custom email template

Последнее изменение:

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.


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 %}

Эта статья была полезна для 7 людей. Эта статья помогла Вам?
Сообщить об ошибке
Все еще нужна помощь? Новый тикет