@ogs-gmbh/ngx-translate
Version:
A lightweight, REST-based Angular i18n library designed for seamless internationalization with minimal setup. It supports dynamic language switching & flexible translation management via RESTful APIs.
18 lines (17 loc) • 806 B
TypeScript
import { OnDestroy, PipeTransform } from "@angular/core";
import * as i0 from "@angular/core";
export declare class TranslationPipe implements PipeTransform, OnDestroy {
private _translationServiceSubscription;
private _lastValue;
private _hasTranslationChanged;
private readonly _translationService;
private readonly _changeDetectorRef;
private readonly _translationScopeToken;
private readonly _translationConfig;
transform(value: string, token: string, scope?: Readonly<Array<string | null> | string | null>, fallback?: boolean): string;
ngOnDestroy(): void;
private _resolveScope;
private _updateLastValue;
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<TranslationPipe, "translate", false>;
}