UNPKG

@igo2/core

Version:
22 lines (21 loc) 883 B
import { HttpBackend } from '@angular/common/http'; import { ConfigService } from '@igo2/core/config'; import { Observable } from 'rxjs'; import { LanguageLoaderBase, LanguageOptions } from './language.interface'; export declare class LanguageLoader implements LanguageLoaderBase { private httpClient; private _isLoaded$; isLoaded$: Observable<boolean>; suffix: string; prefix?: string | string[]; options: LanguageOptions; baseUrl: string; constructor(handler: HttpBackend, options: LanguageOptions); private getServerUrl; getTranslation(lang: string): Observable<any>; } export declare class LanguageLoaderWithAsyncConfig extends LanguageLoader { private configService; constructor(handler: HttpBackend, configService: ConfigService, prefix?: string | string[], suffix?: string); getTranslation(lang: string): Observable<any>; }