A normal translation (meaning you want to replace the content) is written as follows:
<test "this is a translated text">
Then you can translate the attributes as follows:
<test "this is a translated text" title:"this is the title">
In your case, you only need the attribute, so it will work:
<test placeholder:"this is a translated text">
HTML should be
<input type="text" data-l10n-id="test" placeholder="" />
Johnkiller
source share