UNPKG

1.28 kBTypeScriptView Raw
1import { AfterViewChecked, ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
2import { Subscription } from 'rxjs';
3import { TranslateService } from './translate.service';
4import * as i0 from "@angular/core";
5export declare class TranslateDirective implements AfterViewChecked, OnDestroy {
6 private translateService;
7 private element;
8 private _ref;
9 key: string;
10 lastParams: any;
11 currentParams: any;
12 onLangChangeSub: Subscription;
13 onDefaultLangChangeSub: Subscription;
14 onTranslationChangeSub: Subscription;
15 set translate(key: string);
16 set translateParams(params: any);
17 constructor(translateService: TranslateService, element: ElementRef, _ref: ChangeDetectorRef);
18 ngAfterViewChecked(): void;
19 checkNodes(forceUpdate?: boolean, translations?: any): void;
20 updateValue(key: string, node: any, translations: any): void;
21 getContent(node: any): string;
22 setContent(node: any, content: string): void;
23 ngOnDestroy(): void;
24 static ɵfac: i0.ɵɵFactoryDeclaration<TranslateDirective, never>;
25 static ɵdir: i0.ɵɵDirectiveDeclaration<TranslateDirective, "[translate],[ngx-translate]", never, { "translate": "translate"; "translateParams": "translateParams"; }, {}, never>;
26}