UNPKG

448 BPlain TextView Raw
1import {Injectable} from "@angular/core";
2import {Observable, of} from "rxjs";
3
4export abstract class TranslateLoader {
5 abstract getTranslation(lang: string): Observable<any>;
6}
7
8/**
9 * This loader is just a placeholder that does nothing, in case you don't need a loader at all
10 */
11@Injectable()
12export class TranslateFakeLoader extends TranslateLoader {
13 getTranslation(lang: string): Observable<any> {
14 return of({});
15 }
16}