|
Post by account_disabled on Feb 18, 2024 4:13:59 GMT
Here's another example for translating emails specifically into German: {% case atributet.lang %} {% when 'de' %} EMAIL IN DEUTSCH HIER {% else %} EMAIL IN ORIGINAL LANGUAGE HERE {% endcase %} Implementing code, if an order is placed in German, the customer will receive the content between the lines of code starting with "when 'de'" and "next".
On the other hand, if the customer places latestdatabase.com an order in a language other than German, they will receive the content between the "else" and "endcase" lines of code. This ensures appropriate language-specific email content for different order scenarios. {% case attributes.lang %} {% when 'fr' %} FRENCH TEXT {% when 'es' %} SPANISH TEXT {% when 'pt' %} PORTUGUESE TEXT {% else %} ENGLISH TEXT {% endcase %} 2.
Login to your Shopify admin area and navigate to Settings > Notifications. Find the specific email notification you want to translate. For example, let's consider the "Order Confirmation" email that needs to be translated. img post 05 3. Copy the email body content img post 06 4. Go back to your text editor and replace the placeholder text In this example, since the original language is English, you need to replace the placeholder text ' EMAIL IN THE ORIGINAL LANGUAGE HERE' with the code you copied.
|
|