nestjs-i18n
Version:
The i18n module for Nest.
10 lines (9 loc) • 386 B
TypeScript
import { type MessageFunction } from '@messageformat/core';
import { I18nOptions } from '../interfaces/i18n-options.interface';
export declare class I18nMessageFormat {
private readonly i18nOptions;
private readonly messageFormats;
constructor(i18nOptions: I18nOptions);
get enabled(): boolean;
compile(message: string, locale: string): MessageFunction<'string'>;
}