我想本地化一个placeholder
具有 L20N 属性。我在他们的文档中找不到任何内容,并且这样做(毫不奇怪)不起作用。
<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="" />
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)