UNPKG

1.09 kBTypeScriptView Raw
1import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
2import { TranslateService } from './translate.service';
3import { Subscription } from 'rxjs';
4import * as i0 from "@angular/core";
5export declare class TranslatePipe implements PipeTransform, OnDestroy {
6 private translate;
7 private _ref;
8 value: string;
9 lastKey: string | null;
10 lastParams: any[];
11 onTranslationChange: Subscription | undefined;
12 onLangChange: Subscription | undefined;
13 onDefaultLangChange: Subscription | undefined;
14 constructor(translate: TranslateService, _ref: ChangeDetectorRef);
15 updateValue(key: string, interpolateParams?: Object, translations?: any): void;
16 transform(query: string, ...args: any[]): any;
17 /**
18 * Clean any existing subscription to change events
19 */
20 private _dispose;
21 ngOnDestroy(): void;
22 static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
23 static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate">;
24 static ɵprov: i0.ɵɵInjectableDeclaration<TranslatePipe>;
25}