我无法翻译带有间距的动态文本,请参见下面的示例。
sample.ts
(9, 0)
sample.html
for (i = 0; i < data_node.children_d.length; i++) {
var node = $(_selector).jstree(true).get_node(data_node.children_d[i]);
messages.xlf
dynamicTexts = ['Date','Hello World']
sample.html当前结果
<span i18n="@@sample" *ngFor="let dynamicText of dynamicTexts">
{dynamicText, select, other { {{ dynamicText }} } }
</span>
sample.html预期结果
<trans-unit id="sample" datatype="html">
<source>{VAR_SELECT, select, other {<x id="INTERPOLATION" equiv-text="{{ dynamicText }}"/> } }</source>
<target>{VAR_SELECT, select, Date {Translated Date} Hello World {Translated Hello World} other {<x id="INTERPOLATION" equiv-text="{{ dynamicText }}"/>} }</target>
</trans-unit>
请帮助