1 | import {Injectable} from "@angular/core";
|
2 | import {Observable, of} from "rxjs";
|
3 |
|
4 | export 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 | ()
|
12 | export class TranslateFakeLoader extends TranslateLoader {
|
13 | getTranslation(lang: string): Observable<any> {
|
14 | return of({});
|
15 | }
|
16 | }
|