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]
Brittni
3 months agoPamella
3 months agoGayla
3 months agoVan
4 months agoAron
4 months agoVelda
4 months agoKizzy
4 months agoMinna
4 months agoWerner
5 months agoNelida
5 months agoFabiola
5 months agoPortia
5 months agoAshley
5 months agoColette
5 months agoBeckie
5 months agoSherly
5 months agoCortney
5 months agoKanisha
5 months agoArminda
2 years agoVelda
2 years agoMireya
2 years agoGail
2 years agoNaomi
2 years agoLatrice
2 years agoElli
2 years agoOlen
2 years agoMi
2 years agoCandra
2 years agoDino
2 years agoStefan
2 years agoVallie
2 years agoCyril
2 years agoPenney
2 years agoAlpha
2 years ago