<input type="text" data-l10n-id="email" />
<test "this is a translated text">
然后,您可以翻译这样的属性:
<test "this is a translated text" title:"this is the title">
在您的情况下,您只需要该属性,因此这将起作用:
<test placeholder:"this is a translated text">
HTML应该是
<input type="text" data-l10n-id="test" placeholder="" />