QuestionQ27

VerifiedAdobe Experience Manager Sites

An Adobe Commerce developer is working on a custom Knockout UI component and needs to add the text Happy Birthday. for translation inside an .html template.

How should the developer add the text?

Explanation

Adobe Commerce marks text in UI-component .html templates for translation with the i18n custom Knockout binding. The binding value is a string literal, so the text must be enclosed in quotes, as in data-bind="i18n: 'Happy Birthday.'".

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!