Properties
Private
_currentLanguage
_currentLanguage: string
Private
_eventbusRemovers
Private
_labelLookup
_labelLookup: Record<string, ILabel[]> Methods
_addEventbusListeners
- _addEventbusListeners(eventbus): void
Returns void
_createLabelLookup
- _createLabelLookup(labels): Record<string, ILabel[]>
Returns Record<string, ILabel[]>
_extractLanguageFromCulture
_handleLanguageChange
- _handleLanguageChange(language): void
Returns void
_handleRequestCurrentLanguage
- _handleRequestCurrentLanguage(resultCallback): void
Returns void
_handleRequestLabelCollection
- _handleRequestLabelCollection(labelId, resultCallback): void
Returns void
_handleRequestLabelCollections
- _handleRequestLabelCollections(labelIds, resultCallback): void
Returns void
_setRootElementLang
- _setRootElementLang(language): void
Returns void
destroy
- destroy(): void
Returns void
This class manages the labels for an IEligiusEngine instance.
It handles the TimelineEventNames.REQUEST_LABEL_COLLECTION, TimelineEventNames.REQUEST_LABEL_COLLECTIONS, TimelineEventNames.REQUEST_CURRENT_LANGUAGE and TimelineEventNames.LANGUAGE_CHANGE events.