@ngneat/transloco
Version:
The internationalization (i18n) library for Angular
22 lines (21 loc) • 875 B
TypeScript
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
import { TranslocoService } from './transloco.service';
import { HashMap, MaybeArray, TranslocoScope } from './types';
export declare class TranslocoPipe implements PipeTransform, OnDestroy {
private translocoService;
private providerScope;
private providerLang;
private cdr;
private subscription;
private lastValue;
private lastKey;
private listenToLangChange;
private path;
private langResolver;
private scopeResolver;
constructor(translocoService: TranslocoService, providerScope: MaybeArray<TranslocoScope>, providerLang: string | null, cdr: ChangeDetectorRef);
transform(key: string | null, params?: HashMap | undefined, inlineLang?: string | undefined): string;
ngOnDestroy(): void;
private updateValue;
private resolveScope;
}