question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Email is not completely translated

See original GitHub issue

The main part of the email(“You’re receiving this e-mail…”) is not translated. The parts after are properly translated. However, the text in text/plain is completely correctly translated. I’ve tried it with different languages (german and russian).

However, the text in text/plain is completely correctly translated:

Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit



Hi!

Sie bekommen diese E-Mail weil Sie oder jemand anders ein Passwort für Ihren Benutzeraccount auf localhost:8000 angefordert hat.
Sie können diese Nachricht ignorieren, wenn sie es nicht selber angefordert haben.
Klicken Sie unten um Ihr Passwort zurückzusetzen.


http://localhost:8000/de/account/password/reset/MQ/5ez-e13a9786c6c548232f8b/


Dies ist eine automatisch generierte E-Mail, bitte antworten Sie nicht auf diese E-Mail-Adresse.
Mit freundlichen Grüßen, Saleor e-commerce

Steps to reproduce the problem

  1. go to password reset page (e.g. /de/account/password/reset/)
  2. provide email and click on send

What I expected to happen

a fully translated email

Screenshots

email

System information Operating system: macOS Catalina & Windows 10

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
EduardoZepedacommented, Dec 13, 2020

I had the same issue, apparently the mjml parser has some problems parsing special characters inside trans blocks, you’ll notice that all translation blocks that include an < or an > present some problems with their translation.

I solved the issue enclosing all the mjml translation blocks that included special characters in an autoscape on tag, rebuilding the emails and translating them.

{% autoescape on %}         
  {% blocktrans trimmed context "Password reset e-mail text" %}
    You're receiving this e-mail because you or someone else has requested a password for your user account at {{ domain }}.<br/> It can be safely ignored if you did not request a password reset. Click the link below to reset your password.
  {% endblocktrans %}
{% endautoescape %}
1reaction
f00wlcommented, Jan 21, 2021

Thanks @NyanKiyoshi! I missed this point in the doc, my bad 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

Email is not completely translated · Issue #5374 - GitHub
It is possible the translations inside saleor are outdated. I will synchronize them on Monday, and I will check the emails are fully...
Read more >
Change your translation settings in Outlook.com and Outlook ...
Change your translation settings · At the top of the page, select Settings Settings · Under Translation, choose one of the following: Ask...
Read more >
How to translate emails - AT Language Solutions
Open an email. · Right click on any part of the message body and then select “Translate” in the context menu. · Select...
Read more >
Change your Gmail language settings - Android - Gmail Help
Open the Settings app Settings . Tap General management and then Language & input and then Language. Drag your language to the top...
Read more >
How to translate emails, documents, and more with Microsoft ...
Next, select the target language if it's not your default language. Then click the Add a Language button and select any languages for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found