File

core/i18n/pattern-messages.service.ts

Description

A service to translate messages by using regexp patterns.

Index

Properties
Methods

Constructor

constructor(patterns)
Parameters :
Name Optional
patterns No

Methods

translate
translate(message: string)
Parameters :
Name Type Optional
message string No
Returns : any

Properties

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

results matching ""

    No results matching ""