8 Tips: Translate Shopify Email Notifications for Success

Boost customer engagement and expand your reach!
Conveythis demo

8 Tips: Translate Shopify Email Notifications for Success

A Step-by-Step Guide to Translating Email Notifications on Your Shopify Website

img post 11

ConveyThis automatically translates all the content displayed on your website. However, since emails are not part of your website, ConveyThis does not translate them automatically. Nonetheless, ConveyThis allows you to manually manage email content based on the order language. By utilizing liquid code, you can handle email translation. Please note that while these instructions apply to order notifications, they do not cover Gift Card Creation notifications

I. Notifications for Orders and Shipping:

1. Open a text editor and paste the given liquid code snippet.

Depending on the languages supported on your website, you will need to modify the code accordingly. You should adjust the language codes in the ‘when’ statements.

For instance, let’s consider a scenario where ConveyThis handles English as the original language and French and Spanish as the target translation languages. The overall Liquid structure would be as follows:

					{% case attributes.lang %}   
    {% when 'fr' %} 
    {% when 'es' %}   
    {% else %}  
{% endcase %}

The code provided above is just an example. Please ensure that you input the languages managed in your ConveyThis app that you wish to include for email translation.

Here’s another example for translating emails specifically in German:

					{% case attributes.lang %}   
    {% when 'de' %}   
    {% else %}   
{% endcase %}
By implementing the code, if an order is placed in German, the customer will receive the content between the code lines starting with “when ‘de'” and “else”. On the other hand, if the customer places an order in a language other than German, they will receive the content between the code lines “else” and “endcase”. This ensures appropriate language-specific email content for different order scenarios.
					{% case attributes.lang %}   
    {% when 'fr' %}   
    {% when 'es' %}   
    {% when 'pt' %}   
    {% else %}
{% endcase %}

2. Access your Shopify admin area and navigate to Settings > Notifications. Locate the specific email notification that you wish to translate.

For instance, let’s consider the ‘Order Confirmation’ email that needs to be translated.
img post 05

3. Copy the content of the email body.​

img post 06

4. Return to your text editor and replace the placeholder text

In this example, since the original language is English, you should replace the placeholder text ‘EMAIL IN THE ORIGINAL LANGUAGE HERE’ with the code you copied.
img post 07

5. Next, replace 'EMAIL EN FRANÇAIS ICI' with the same code and modify the sentences with their corresponding translations.

For instance, when translating to French, modify the sentence ‘Thank you for your purchase!’ to ‘Merci pour votre achat !’ Remember to only modify the sentences and avoid translating any liquid code between {% %} or {{ }}.

In this case, locate the ‘Order Confirmation’ email within your Shopify admin area, and paste the translated content from the text editor into this specific email section.

img post 08

6. Copy the entire content from the text editor and paste it into the corresponding notification section within your Shopify admin area.

In this case, the email edited is ‘Order Confirmation’:

img post 09

7. Follow the same steps for translating the title of the email.

You can apply the same process to translate the subject of the email. Copy and paste the code into a text editor, then replace the fields with the translated version of the subject. Here’s an example to illustrate the process:

					{% case attributes.lang %}   
    {% when 'fr' %}   
        Commande {{name}} confirmée
    {% when 'es' %}   
        Orden {{name}} confirmada
    {% when 'pt' %}   
        Pedido {{name}} confirmado
    {% else %}
        Order {{name}} confirmed
{% endcase %}

Then, paste the translated subject from the text editor into the ‘Email subject’ field in your Shopify admin area.

img post 10

II. Notifications for Customers:

To manage customer emails, you can include a language tag in the Customers information within your Shopify admin area. The lang tag will be added based on the language used by the visitor during website sign-up.

To enable this feature, you need to add the line “customer_tag: true” to the ConveyThis code in the “conveythis_switcher.liquid” file. You can access this file by going to your Shopify admin > Online Store > Themes > Actions > Edit Code.

					<script type="rocketlazyloadscript" data-minify="1" src="https://www.conveythis.com/wp-content/cache/min/1/conveythis.min.js?ver=1695312148" defer></script>

<script type="rocketlazyloadscript" id="has-script-tags"> 
        api_key: "YOUR_KEY", 
        customer_tag: true 
Once the language tag is added to the code, you can proceed to create customer notifications following the same schema mentioned earlier in this guide. However, for this part, you will need to utilize the following code:
					{% assign language = customer.tags | join: '' | split: '#ct' %} 
{% case language[1] %} 
    {% when 'en' %} 
        English account confirmation 
    {% else %} 
        Original Customer account confirmation 
{% endcase %}
We value your feedback! If you have any comments or suggestions regarding this article, please feel free to share them with us. Your feedback is important to us and helps us improve our content.

Ready to get started?

Try ConveyThis with our 7-days trial


My Khanh

Leave a comment

Your email address will not be published. Required fields are marked *