@ngx-translate/http-loader
Version:
http loader for dynamically loading translation files for @ngx-translate/core
17 lines (16 loc) • 665 B
TypeScript
import { TranslateLoader, TranslationObject } from "@ngx-translate/core";
import { HttpClient } from "@angular/common/http";
import { Observable } from 'rxjs';
import * as i0 from "@angular/core";
export declare class TranslateHttpLoader implements TranslateLoader {
private http;
prefix: string;
suffix: string;
constructor(http: HttpClient, prefix?: string, suffix?: string);
/**
* Gets the translations from the server
*/
getTranslation(lang: string): Observable<TranslationObject>;
static ɵfac: i0.ɵɵFactoryDeclaration<TranslateHttpLoader, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<TranslateHttpLoader>;
}