[Angular] Angular i18n Pluralization Support

// Component:

this.coursesTotal = this.course,length
<div i18n>{coursesTotal, plural, =0 {No course in available.}
   =1 {One course is available.}
   other {A total of  {{coursesTotal}} courses are available.}
}
</div>

 

posted @ 2019-02-08 16:44  Zhentiw  阅读(328)  评论(0编辑  收藏  举报