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
10 months agoPamella
10 months agoGayla
10 months agoVan
10 months agoAron
11 months agoVelda
11 months agoKizzy
11 months agoMinna
11 months agoWerner
11 months agoNelida
11 months agoFabiola
11 months agoPortia
11 months agoAshley
11 months agoColette
11 months agoBeckie
12 months agoSherly
12 months agoCortney
12 months agoKanisha
12 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