Skip to content

vue-i18n / general / MessageCompilerContext

Type Alias: MessageCompilerContext

ts
type MessageCompilerContext = Pick<CompileOptions, "onError" | "onCacheKey"> & object;

Vue I18n General

The context that will pass the message compiler.

Type Declaration

key

ts
key: string;

The resolved locale message key

locale

ts
locale: Locale;

The locale

warnHtmlMessage?

ts
optional warnHtmlMessage: boolean;

Whether to allow the use locale messages of HTML formatting.

Released under the MIT License.