Multi-language emails (Weglot app)

Instructions for setting up multi-language Shopify email notifications, when using the Weglot app on your website.

Bjorn Forsberg avatar
Written by Bjorn Forsberg
Updated over a week ago

It is possible to have the emails in Shopify in multiple languages, but it does take some setting up initially. 

Following are instructions if you are using the Weglot app on your multi-language website:

Step 1

Customize the emails in OrderlyEmails for Language 1, then export the code for each email into a file.

Note: You must first purchase the theme to be able to export the email template code.

Step 2

Go back into the OrderlyEmails editor and update all of your emails into Language 2, then export the new code for each email into another file.

Step 3

Use the below code, to place the full email template code into the correct section:

{% assign language_code = attributes.lang | default: customer_locale | split: "-" | first %}
{% case language_code %}
  {% when 'fr' %}
      FRENCH EMAIL CODE
  {% when 'es' %}
      SPANISH EMAIL CODE
  {% when 'pt' %}
      PORTUGUESE EMAIL CODE
  {% else %}
      ENGLISH EMAIL CODE
{% endcase %}

Note: This is only an example, so make sure you enter only the languages you want to translate the email into. 

Here is another example if you want to translate emails in German only:

{% assign language_code = attributes.lang | default: customer_locale | split: "-" | first %}
{% case language_code %}
  {% when 'de' %}
      GERMAN EMAIL CODE
  {% else %}
      ENGLISH EMAIL CODE
{% endcase %}


Step 4

Copy and paste the full code into the correct notification email in the Shopify admin -> Settings -> Notifications page:


Weglot documentation

Weglot also have instructions for setting up multi-language emails, which can be found here: 

https://support.weglot.com/article/89-shopify-translate-shopify-email-notifications

The main difference is that instead of translating small sections of the emails, when using OrderlyEmails you place the entire email code in each language section.

Did this answer your question?