File

src/app/services/acronym-catalog.service.ts

Description

The Acronym Translation Service replaces hard to understans acronyms or names used directly on a model's source code. This service therefore provides significant labels when presenting information for end users.

Index

Properties
Methods

Constructor

constructor(http: HttpClient, locale: string, errorHandler: ErrorHandlerService)

Class contructor user http client class

Parameters :
Name Type Optional
http HttpClient No
locale string No
errorHandler ErrorHandlerService No

Methods

getAcronymCatalog
getAcronymCatalog(modelID: string, lang: string)

Get model acronym catalog by model id and target language

Parameters :
Name Type Optional Description
modelID string No

model identification string

lang string No

language identification string (en-us or es-mx)

Returns : void
getAcronymDictionary
getAcronymDictionary()

Return a copy of the acronym dictionary

Returns : any
getAcronymUpdateListener
getAcronymUpdateListener()

Return acronym dictionary updated subject

Returns : any

Properties

Private acronymCatalog
Type : any

Holds the current acronym dictionary

Private acronymCatalogUpdated
Default value : new Subject<any>()

Subscription subject to the dictionary

Public locale
Type : string
Decorators :
@Inject(LOCALE_ID)

results matching ""

    No results matching ""