2017-02-22 18:13:21 +00:00
|
|
|
<!--#docregion-->
|
|
|
|
<!--#docregion i18n-attribute-meaning-->
|
2017-05-01 23:01:20 -07:00
|
|
|
<h1 i18n="User welcome|An introduction header for this sample@@introductionHeader">
|
|
|
|
Hello i18n!
|
|
|
|
</h1>
|
2017-02-22 18:13:21 +00:00
|
|
|
<!--#enddocregion i18n-attribute-meaning-->
|
|
|
|
|
|
|
|
<!--#docregion i18n-ng-container-->
|
|
|
|
<ng-container i18n>I don't output any element</ng-container>
|
|
|
|
<!--#enddocregion i18n-ng-container-->
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<!--#docregion i18n-title-translate-->
|
|
|
|
<img [src]="logo" i18n-title title="Angular logo" />
|
|
|
|
<!--#enddocregion i18n-title-translate-->
|
|
|
|
<br>
|
|
|
|
<button (click)="inc(1)">+</button> <button (click)="inc(-1)">-</button>
|
|
|
|
<!--#docregion i18n-plural-->
|
2017-11-02 22:22:09 +01:00
|
|
|
<span i18n>Updated {minutes, plural, =0 {just now} =1 {one minute ago} other {{{minutes}} minutes ago}}</span>
|
2017-02-22 18:13:21 +00:00
|
|
|
<!--#enddocregion i18n-plural-->
|
2017-11-02 22:22:09 +01:00
|
|
|
({{minutes}})
|
2017-02-22 18:13:21 +00:00
|
|
|
<br><br>
|
2017-11-02 22:22:09 +01:00
|
|
|
<button (click)="male()">♂</button> <button (click)="female()">♀</button> <button (click)="other()">⚧</button>
|
2017-02-22 18:13:21 +00:00
|
|
|
<!--#docregion i18n-select-->
|
2018-01-22 13:58:59 -08:00
|
|
|
<span i18n>The author is {gender, select, male {male} female {female} other {other}}</span>
|
2017-02-22 18:13:21 +00:00
|
|
|
<!--#enddocregion i18n-select-->
|
2017-05-01 23:01:20 -07:00
|
|
|
<br><br>
|
|
|
|
<!--#docregion i18n-nested-->
|
2017-11-02 22:22:09 +01:00
|
|
|
<span i18n>Updated: {minutes, plural,
|
|
|
|
=0 {just now}
|
|
|
|
=1 {one minute ago}
|
2018-01-22 13:58:59 -08:00
|
|
|
other {{{minutes}} minutes ago by {gender, select, male {male} female {female} other {other}}}}
|
2017-11-02 22:22:09 +01:00
|
|
|
</span>
|
2017-05-01 23:01:20 -07:00
|
|
|
<!--#enddocregion i18n-nested-->
|