There was an example, but I can no longer find it.
You can use i18n-attributename . For example:
<input type="number" placeholder="From" i18n-placeholder="From placeholder"/>
To do this, you need the following entry:
<trans-unit id="generatedId" datatype="html"> <source>From</source> <target state="translated">Van</target> <note priority="1" from="description">From placeholder</note> </trans-unit>
In your messages.xlf file. I could not get it to work without translation. Therefore, you will need to add state = translated and value.
Even if we do not give a value in i18n-placeholder , then this is also fine. just do:
<input type="number" placeholder="From" i18n-placeholder/>
it will work fine.
evandongen
source share