UNPKG

778 BTypeScriptView Raw
1import { ElementRef, OnChanges, OnInit, OnDestroy } from '@angular/core';
2import { TranslateService } from '@ngx-translate/core';
3import { JhiConfigService } from '../config.service';
4/**
5 * A wrapper directive on top of the translate pipe as the inbuilt translate directive from ngx-translate is too verbose and buggy
6 */
7export declare class JhiTranslateDirective implements OnChanges, OnInit, OnDestroy {
8 private configService;
9 private el;
10 private translateService;
11 jhiTranslate: string;
12 translateValues: any;
13 private readonly directiveDestroyed;
14 constructor(configService: JhiConfigService, el: ElementRef, translateService: TranslateService);
15 ngOnInit(): void;
16 ngOnChanges(): void;
17 ngOnDestroy(): void;
18 private getTranslation;
19}