2017-04-05 59 views
0

我正在将我的应用程序从ng2-translate移动到本地i18n支持。面对一个问题,当谈到与几个选项翻译了:Angular 2 i18n:翻译<option>值

<md-select placeholder="Salutation" i18n-placeholder> 
     <md-option *ngFor="let s of salutations" [value]="s.value">{{s.name}}</md-option> 
</md-select> 

documentation没有规定如何获取选项值进入我的XLF文件时,它们通过TS服务。任何帮助非常感谢

回答

0

答案我猜是在配置错误。现在所有作品 <target>{testRandom, plural, =0 {none} =1 {single} other {several}}</target>