How to translate email
There are multiple methods for translating emails. Choose one that suits your needs.
-
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.
-
Use the Magento translation mechanism:
For example, you want to translate the textShop Now
in theWelcome 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:
exampleHello {{ customer_name }}!, Hola {{ customer_name }}!
noteIf 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 (').