I can translate strings in Knockout html templates like this:
<!-- ko i18n: 'Email' --><!-- /ko -->
<span data-bind="i18n: 'Email'"></span>
And the translations come from pub/static/<area>/<vendor>/<theme>/xx_XX/js-translation.json
.
But I do not know how to translate a value in an HTML attribute, e.g. the placeholder attribute on an input tag, like
<input type="text" placeholder="Email" />
Best Answer
You can write like this
Run below commands