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
11 months agoVelda
11 months agoMireya
11 months agoGail
11 months agoNaomi
10 months agoLatrice
10 months agoElli
11 months agoOlen
11 months agoMi
10 months agoCandra
11 months agoDino
12 months agoStefan
12 months agoVallie
12 months agoCyril
11 months agoPenney
11 months agoAlpha
11 months ago