@o3r/localization
Version:
This module provides a runtime dynamic language/translation support and debug tools.
23 lines • 1.21 kB
TypeScript
import { DatePipe } from '@angular/common';
import { ChangeDetectorRef, OnDestroy, PipeTransform } from '@angular/core';
import { LocalizationService } from './localization.service';
import * as i0 from "@angular/core";
/**
* Native angular DatePipe taking the current lang into consideration
*/
export declare class LocalizedDatePipe extends DatePipe implements OnDestroy, PipeTransform {
private readonly localizationService;
private readonly changeDetectorRef;
private readonly onLangChange;
constructor(localizationService: LocalizationService, changeDetectorRef: ChangeDetectorRef);
/**
* @inheritdoc
*/
transform(value: Date | string | number, format?: string, timezone?: string, locale?: string): string | null;
transform(value: null | undefined, format?: string, timezone?: string, locale?: string): null;
transform(value: Date | string | number | null | undefined, format?: string, timezone?: string, locale?: string): string | null;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedDatePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedDatePipe, "date", false>;
}
//# sourceMappingURL=localized-date.pipe.d.ts.map