UNPKG

@ngx-translate/http-loader

Version:

14 lines (13 loc) 455 B
import { HttpClient } from "@angular/common/http"; import { TranslateLoader } from "@ngx-translate/core"; import { Observable } from 'rxjs'; 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<Object>; }