Introduction


This guide explains how to translate your Shopify customer account notifications.

The customer account notifications are for example:

  • Customer Account Activation
  • Customer Account Welcome
  • Customer Password Reset



Please follow the other guide if you want to translate the other notifications like Order Confirmation.


Step 1


Before you are able to translate your customer notifications, you have to make some changes to your theme.

Please insert the following snippet:

 

<input type="hidden" name="customer[tags]" value="ly#{% assign language = cart.attributes["language"] %}{% if language == nil %}{% assign language = shop.metafields["languages"]["default"] %}{% endif %}{{ language }}ly#"/>

 

right before each occurrence of {% endform %} in the following templates:


  • customers/activate_account.liquid
  • customers/login.liquid
  • customers/register.liquid
  • customers/reset_password.liquid


Here is what your customers/activate_account.liquid should look like afterwards:



Appearance of the liquid after the snippet has been added


Step 2


Navigate to the "Translations / Shop / Customer Notifications" section in langify to open a template that you can use to translate your Shopify customer notifications:

 

 

The "Customer notification" section can be found from langify -> Theme Translations -> Shop


Step 3


Open a Text Editor of your choice and copy over the langify customer notification template:

 

 

A text editor of choice showing the pasted langify customer notification template


Step 4


Navigate to the "Settings / Notifications" section in your Shopify backend:

 

 

The Notifications settings in Shopify can be found from the left hand menu (Settings -> Notifications)


Step 5


Open the customer notification that you'd like to translate and copy the HTML email content:

 

 

The template of a Customer notification (Customer Account Welcome)


Step 6


Back in your Text Editor, search for the mention of your store's base language. If the base language is English, then look for "TEXT FOR English HERE". Replace this text with the HTML email content from your Shopify notification, like in the example below.

 

 

Content replaced with the HTML email content from the Shopify notification


Step 7


Now replace the other "TEXT FOR ... HERE" occurrences with the HTML email content of your Shopify customer notification and translate it into the corresponding language. In this example, the "TEXT FOR German HERE" has been replaced with the original customer notification translated into German (Please, do not translate any liquid code in between {% %} or {{ }} , they must remain untranslated)

 

 

Part of the snippet is replaced and its content has been translated in the corresponding language


Step 8


Finally, after you've replaced every occurrence of "TEXT FOR ... HERE" with the corresponding translations, replace your current Shopify HTML email notification with the content of your Text Editor:

 

 

Content from the text editor can now replace the previous content stored inside Shopify -> Settings -> Notification


Step 9


Click "Save" to store your new, translated, customer notification.

Your customers should now receive the translated notification matching their currently selected language.



Translating the notification subject:


You can use the very same translation template to translate the subject of your notification.

 

Simply replace "TEXT FOR ... HERE" with the corresponding subject translation so that you end up with something like:


{% assign language = customer.tags | join: '' | split: 'ly#' %}

{% case language[1] %}

{% when 'ly2315' %}

Aktivierung Ihres Kundenkontos

{% else %}

Customer Account activation

{% endcase %}

 

Afterwards, replace your Email subject in Shopify with the translation template, including your subject translations:


Translated template for the notification subject