File

core/i18n/translate.loader.ts

Index

Methods

Constructor

constructor(http: HttpClient, optionsService: OptionsService, cachedLocaleDictionaryService: CachedLocaleDictionaryService, path: string, languages: any)
Parameters :
Name Type Optional
http HttpClient No
optionsService OptionsService No
cachedLocaleDictionaryService CachedLocaleDictionaryService No
path string No
languages any No

Methods

getDictionaryWithTrimmedKeys
getDictionaryWithTrimmedKeys(dictionary: object)

We want to have translation keys unified, so they don't contain unnecessary spaces and line breaks. This way we can dynamically build keys from HTML, and match them to extracted string, that might be HTML as well.

Parameters :
Name Type Optional
dictionary object No
Returns : any
getTranslation
getTranslation(lang: string)
Parameters :
Name Type Optional
lang string No
Returns : Observable<any>

results matching ""

    No results matching ""