Skip to main content

How to translate email

There are multiple methods for translating emails. Choose one that suits your needs.

  1. Separate email templates per language:

    • Create a new email template in the desired language.
    • Create a separate trigger per store and for emails using templates in the corresponding language.
  2. Use the Magento translation mechanism:
    For example, you want to translate the text Shop Now in the Welcome email template. To translate it, copy the source string with this text to the CSV file located in your theme directory. The translation may look as follows:

    example:
    <a href="{{ store.store_url }}">Shop Now</a>   
    <a href="{{ store.store_url }}">Shop Right Now</a>

    Or if you want translate the subject:

    example

    Hello {{ customer_name }}!, Hola {{ customer_name }}!

    note

    If the string you want to translate contains commas, then you should wrap the translation string with the double quotation mark ("). But if the string in addition to comma contains a double quotation mark, then you should replace all double quotes in the original text with the single quotation mark (').