Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed Nov 29, 2020
1 parent 0b79b33 commit 082cf51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ export function initL10n(l10nLoader: L10nLoader): () => Promise<void> {
const i18nAsset = {
'en-US': {
greeting: 'Hello world!',
whoIAm: 'I am {{name}}'
whoIAm: 'I am {{name}}',
one: 'software developer'
},
'it-IT': {
greeting: 'Ciao mondo!',
whoIAm: 'Sono {{name}}'
whoIAm: 'Sono {{name}}',
one: 'sviluppatore software'
}
};
```
Expand Down Expand Up @@ -98,7 +100,7 @@ export class AppModule { }

<p>{{ value | l10nNumber:locale.language:{ digits: '1.2-2', style: 'currency' } }}</p>

<p>1 {{ 1 | l10nPlural:locale.language:'home':{ type: 'cardinal' } }}</p>
<p>1 {{ 1 | l10nPlural:locale.language }}</p>

<button *ngFor="let item of schema"
(click)="setLocale(item.locale)">{{ item.locale.language | l10nDisplayNames:locale.language:{ type: 'language' } }}</button>
Expand Down Expand Up @@ -145,7 +147,7 @@ export class AppComponent implements OnInit {
this.formattedToday = this.intl.formatDate(this.today, { dateStyle: 'full', timeStyle: 'short' });
this.formattedTimeAgo = this.intl.formatRelativeTime(this.timeAgo, 'second', { numeric: 'always', style: 'long' });
this.formattedValue = this.intl.formatNumber(this.value, { digits: '1.2-2', style: 'currency' });
this.formattedOnePlural = this.intl.plural(1, 'home', { type: 'cardinal' });
this.formattedOnePlural = this.intl.plural(1);
}
});
}
Expand Down
6 changes: 3 additions & 3 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
]
},
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true
, "variable-name": {
"use-pipe-transform-interface": true,
"variable-name": {
"options": [
"ban-keywords",
"check-format",
Expand All @@ -146,5 +146,5 @@
"check-typecast"
]
}
}
}
}

0 comments on commit 082cf51

Please sign in to comment.