ngx-translate-messageformat-compiler
Version:
> Compiler for ngx-translate that uses messageformat.js to compile translations using ICU syntax for handling pluralization and gender
16 lines (15 loc) • 519 B
TypeScript
import { InjectionToken } from "@angular/core";
import { CustomFormatter } from "@messageformat/core";
export declare const MESSAGE_FORMAT_CONFIG: InjectionToken<MessageFormatConfig>;
export interface MessageFormatConfig {
biDiSupport?: boolean;
formatters?: {
[key: string]: CustomFormatter;
};
strictNumberSign?: boolean;
currency?: string;
strictPluralKeys?: boolean;
throwOnError?: boolean;
fallbackPrefix?: string;
}
export declare const defaultConfig: MessageFormatConfig;