core/i18n/pattern-messages.service.ts
A service to translate messages by using regexp patterns.
Properties |
Methods |
constructor(patterns)
|
||||
Parameters :
|
translate | ||||||
translate(message: string)
|
||||||
Parameters :
Returns :
any
|
patterns |
Type : any
|
Default value : {}
|
pipes |
Type : object
|
Default value : {
absoluteDate: (date: string|number|Date) =>
formatDate(date, 'medium', this.translateService.currentLang),
translate: (key) =>
this.translateService.instant(key)
}
|
translateService |
Type : TranslateService
|