How does it work?
Bablic adds a language tag (babl#) to every customer that signs-up on our website, according to the language he used to view the website.
You need to use this tag in your email notifications in order to send the customer the automated personalized message.
What do I need to do?
Let's assume that your site is in English, and you just added French and German using Bablic. In order to send emails in German (DE) and French (FR) to your customers according to their language preference you have paste the following text in the email body:
Order Notifications
In Shopify, the order can be created before user sign-ups. So Bablic adds the language attribute also to the created order, and it can be read from attributes['language']
For checkout emails the template will be:
{% case attributes.language %}
{% when 'de' %}
Text in German
{% when 'fr' %}
Text in French
{% else %}
Text in original language
{% endcase %}
Don't forget to replace "de" and "fr" with your language codes end add your own content in place of "Text in German" etc.
User Notifications
For user related notifications like Signup, Bablic adds a customer tag with the language.
The email template will be:
{% assign blTag = customer.tags | join: '' | split: 'babl#' %} {% assign locale = blTag[1] %}
{% case locale %}
{% when 'de' %}
Text in German
{% when 'fr' %}
Text in French
{% else %}
Text in original language
{% endcase %}
Don't forget to replace "de" and "fr" with your language codes end add your own content in place of "Text in German" etc.