Skip to content

Type Alias: MessageCompilerContext

The context that will pass the message compiler.

Signature

ts
export type MessageCompilerContext = Pick<CompileOptions, 'onError' | 'onCacheKey'> & { warnHtmlMessage?: boolean; key: string; locale: Locale }

Properties

NameTypeDescription
keystringThe resolved locale message key
localeLocaleThe locale
warnHtmlMessage (optional)booleanWhether to allow the use locale messages of HTML formatting.

Tags

  • @VueI18nGeneral

Released under the MIT License.