Skip to content

vue-i18n / general / MessageCompilerContext

Type Alias: MessageCompilerContext ​

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

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.

Vue I18n General ​

Released under the MIT License.