Edit email content in multiple languages

I need to add a text and a link in English, Spanish and Swedish to the “Shipping Confirmation Email” I tried liquid code. but I realize that there exist one hardcoded email tamplate for each language. So I like to add liquid code or html/css to those code. But they don’t look like the liquid code that I am used to. They look like this in the attached image where I want to add the code:

I want to add it after the last content. How do i do in default A: English file and B: the Swedish file? I dont understand the patterns of “-” and “|“ in the files.

This is the “translate and adapt” app interface where it interprets HTML tags of the template and draws these dashed lines around every table and table cell.
Kinda WYSIWYG :slight_smile:

That’s why your “reference” or default language template on the left is not editable.

You’d need to edit your default language first in Settings-> Notifications-> Customer notifications-> Shipping confirmation-> Edit Shipping confirmation

And then either edit your other languages there as well, or in “translate and adapt”

Hi @MyLostIteam

Since Shopify uses separate templates for each language, you can add your custom code at the end of each file after the final closing tags.

A: English File Add this HTML at the very end of the code: <p>Thank you for your order! Track your shipment <a href="your-link-here">here</a>.</p>

B: Swedish File Add this HTML at the very end of the code: <p>Tack för din beställning! Spåra din försändelse <a href="your-link-here">här</a>.</p>

Hope this helps!

It does not work! Try it out yourself.

Go to Settings->Notifications->Customer notifications->Shipping confirmation
In the preview, change language to another language than your default language. Click the “Edit code” button. Now, the default code opens, not the selected that I want to edit.
Or try making a change to the default language (I added “test” at the very end) and then click Localize, the changes works on the default language, that works, but when you click localize, you end up in the plugin XXX and it looks like this (notice I added “test” in the English file at the very end)

In this plugin the “Autotranslate” button is not present and if you try to add “test” in the Swedish language to the right, you get an error and have to reset the “Shipping confirmation” document from Shopify Admin back to your original content.

I have been pointing this issue out several times to the Shopify team, but I only get back rather simple suggestions that do not work. It is getting frustrating losing days of work on something I expected to be quite straight forward to edit without the need for any plugin.

Customers have been complaining about this and 3 years ago A Shopify team member promised a solution.

Looking forward to a reply asap that solves my problems!

Br/Mårten Hansson; My Lost Item

"What you’re seeing is Shopify’s multi-language email template syntax"
So what do they mean? I have been a software developer for 15 years and I haven’t seen this before. Again, I attach an image from the edit view of a second language (Swedish):

What is the gray dotted line? If I try to edit the file add add the text string “test” afer {{ shop.email }} and click Save I get Error:

1 translation couldn’t be saved.

• Body html Liquid syntax error: Unknown tag ‘endunless’

So, how do I Edit second language files? At least you should provide a simple example of how to add a string like “Happy New Year” to a non default language “Shipping Confirmation” email template or any other Notification email.

Really sorry @chlara68 for my request for a sample and a bad temper, I thought you where a Shopify staff. I have struggle with the Support for many hours and I am tired. Sorry again! Hav a nice day!

Most email notifications are built upon table, tr, td tags. That’s how they look without CSS.

It is not possible to edit any other template than the default English in Shopify.
And when I try to add/edit anything to the second language in the app “Translate and Adapt”, I get an error and then I need to restore the email templates back in Shopify.

Well, this looks like a translation app glitch. The translated version is damaged in app.
You’re not alone – Order confirmation email shows wrong message for unpaid (bank transfer) orders — translation template can’t be edited

What I’d do:

  1. There is this button </> on the adapt and translate interface. This is how you can copy/paste default language notification template source code.
  2. Then you translate its outside of Shopify. Can try Google translate or Chat GPT – they are capable of preserving the liquid code.
    Or can do it manually.
  3. Paste translated version into translate app, again, using the </> button.
    Save.

For testing purposes you can paste the unmodified default language code into translation input field to see if it will be saved.

Not saying it’s normal, but you need to run your store right now, right?

YOU SAVED MY DAY! :hugs:
I’ve been chatting with several Shopify staff members the last 24hrs. No one mentioned that little button.