An Adobe Commerce developer has been asked to add text to an email template that supports translations. Which two options would they use during their implementation? (Choose two.)
To add text to an email template that supports translations, the developer should use the {{trans}} directive with the text enclosed in double quotes. For example:
{{trans ''Lorem Ipsum is simply dummy text of the printing''}}
This will render the text as it is, or translate it if a translation file is available for the current locale. If the text contains a variable, the developer should use a placeholder with a percent sign and pass the variable name as an argument. For example:
{{trans ''%items items'' items=''numItems''}}
This will render the text with the value of numItems replacing the %items placeholder, or translate it if a translation file is available for the current locale. The {{translations}} directive is not valid and will not work. Reference: [Translate email templates], [Email template syntax]
Arminda
4 months agoVelda
4 months agoMireya
4 months agoGail
4 months agoNaomi
3 months agoLatrice
3 months agoElli
4 months agoOlen
4 months agoMi
3 months agoCandra
4 months agoDino
5 months agoStefan
5 months agoVallie
5 months agoCyril
4 months agoPenney
4 months agoAlpha
4 months ago