Translate your Shopify email notifications

Below is a step by step guide to translate your Shopify email notifications.

1) Open a Text Editor of your choice and copy the following code:

    {% case attributes.lang %}
        {% when 'fr' %}
            FRENCH TEXT
        {% when 'es' %}
            SPANISH TEXT
        {% when 'pt' %}
        {% else %}
            ENGLISH TEXT
     {% endcase %}

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:

    {% case attributes.lang %}
        {% when 'de' %}
            GERMAN TEXT
        {% else %}
            ENGLISH TEXT
    {% endcase %}


2) In your shopify admin area, go to Settings -> Notification and open the email you want to translate, for instance “Order confirmation”.

3) Copy the HTML email body


4) Go back in your text editor and replace the text “ENGLISH TEXT” by the code you copied (if English is your original language).


In my example, my original language is English so I replace “ENGLISH TEXT” by the code.

5) Then replace “FRENCH TEXT” by the same code, except that you changed the sentences into the translated one. Do the same for other languages like “SPANISH TEXT” and “PORTUGUESE TEXT”


For example, for french, you will change “Thank you for your purchase!” by “Merci pour votre achat !”
Make sure you only translate the sentences. You must not translate any liquid code in between {% %} or {{ }}.

6) Once you have finish replacing every “… TEXT”, replace your current shopify HTML email notification with the content of your Text Editor:


7) Translate the subject of the email

You can do exactly the same thing for the subject of email: In a text editor copy paste the code and replace “… TEXT” by the translation of the subect, like this for example:


Then paste this in the “Email subject” field:


8) Click the blue button “Save” on the top right

You’re done! Your customer will receive the email in their language.