UNPKG

@cloarec/transloco-mf2

Version:

The implementation of the TranslocoTranspiler interface in this project uses [messageformat V4](https://messageformat.github.io/documents/Project_Overview.html). Since V4, the library [messageformat](https://github.com/messageformat/messageformat) provi

18 lines (17 loc) 802 B
import { InjectionToken } from '@angular/core'; import { DefaultTranspiler, TranspileParams } from '@jsverse/transloco'; import { MessageFormatOptions } from 'messageformat'; import * as i0 from "@angular/core"; export interface TranslocoMF2Config extends MessageFormatOptions<string> { includeDraftFunctions: boolean; } export declare const TRANSLOCO_MF2_CONFIG: InjectionToken<TranslocoMF2Config>; export declare class TranslocoMF2Transpiler extends DefaultTranspiler { mf2Config: TranslocoMF2Config | null; private locale?; constructor(); onLangChanged(lang: string): void; transpile(transpileParams: TranspileParams): any; static ɵfac: i0.ɵɵFactoryDeclaration<TranslocoMF2Transpiler, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TranslocoMF2Transpiler>; }