packages/core/src/lib/services/i18n/i18n.service.mock.ts
Methods |
Accessors |
constructor()
|
| addResources |
addResources()
|
|
Returns :
Observable<EuiServiceStatus>
|
| getState |
getState()
|
|
Returns :
Observable<I18nState>
|
| init | ||||||
init(i18nState?: I18nState)
|
||||||
|
Parameters :
Returns :
Observable<EuiServiceStatus>
|
| lazyLoadInit |
lazyLoadInit()
|
|
Returns :
Observable<EuiServiceStatus>
|
| updateState | ||||||
updateState(i18nState: I18nState)
|
||||||
|
Parameters :
Returns :
void
|
| getSignal |
getSignal()
|
|
This method is used to get the state as readonly signal.
Returns :
Signal<T>
|
| Public lazyLoad | ||||||
lazyLoad(config: I18nLoaderConfig)
|
||||||
|
Parameters :
Returns :
Observable<EuiServiceStatus>
|
| onReady | ||||||||
onReady(moduleName?: string)
|
||||||||
|
A pipe function that could serve as a wrapper of another observable e.g. ngx-translate i18n.onReady('my_module').pipe(switchMap(()=>translate.get('eui.KEY'))); WARNING: onReady will emit only once for a loaded Module, going to another and then going back will not result into another emission. fetch module name from the state.
Parameters :
Returns :
Observable<ModuleLoadEvent>
|
| onLangChange |
getonLangChange()
|
| currentLanguage |
getcurrentLanguage()
|