I'd like to localize a placeholder
attribute with L20N. I can't find anything in their documentation, and doing this (unsurprisingly) doesn't work.
<input type="text" data-l10n-id="email" />
A normal translation (meaning you want to replace the content) is written like this:
<test "this is a translated text">
You can then translate attributes like this:
<test "this is a translated text" title:"this is the title">
In your case, you only want the attribute, so this will work:
<test placeholder:"this is a translated text">
The HTML should be
<input type="text" data-l10n-id="test" placeholder="" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With