@obliczeniowo/elementary
Version:
Library made in Angular version 19
23 lines (22 loc) • 858 B
TypeScript
import { PipeTransform } from '@angular/core';
import * as i0 from "@angular/core";
export declare class TranslationPipe implements PipeTransform {
/**
* Transforming key by translations mapping object
* @param value string key to translate
* @param translations translations map
* @param params params for translations
* @param def override default
* @returns translated string
*/
transform(value: string, translations: {
[en: string]: string | undefined;
}, params?: {
[param: string]: string | number;
}, def?: string): string;
setParams(translation: string, params?: {
[param: string]: string | number;
}): string;
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<TranslationPipe, "oblTranslation", false>;
}