FROM CACHE - en_header

Localise (translate) notifications

New Member
2 0 0

Dear Community,

I'm working on localising a shop. At the moment, the main language of the shop is German, with additional languages being English, French and Spanish.

I would like to start offering the shop in all four languages (I'm using an app for it), but the notifications in German for customers who have language set to "de", and English for everyone else.

I can see that Shopify already adds under "Additional Details" of an order a language attribute "de" for when they place the order from the main site, "en" for English and so on.

I then added in the order confirmation email the following code, but with no luck, since I always get the email in English, being (I guess) the content I set for the {% else %} case.

{% case attributes.language %}
{% when 'de' %}
{% else %}
{% endcase %}

I also tried to use {% case attributes.lang %}, but that also brought me nowhere. Ideas?

Thank you!


Replies 2 (2)
New Member
1 0 0

This might have been resolved already but you need to insert your content (the complete html e-mail) where it says "GERMAN TEXT", "SPANISH TEXT" and so on 🙂

It is annoying but in most cases it needs to be done only once.

New Member
2 0 1

Did you ever figure this out? I am having the same issue.