我想将placeholder属性本地化为L20N。我在他们的文档中找不到任何东西,而这样做(并不奇怪)是行不通的。
<input type="text" data-l10n-id="email" />发布于 2015-04-03 15:08:42
正常翻译(意思是要替换内容)如下所示:
<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="" />https://stackoverflow.com/questions/29329204
复制相似问题