Skip to content

vue-i18n / general / MessageCompilerContext

类型别名: MessageCompilerContext

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

将传递给消息编译器的上下文。

类型声明

key

ts
key: string;

解析的本地化消息键

locale

ts
locale: Locale;

本地化

warnHtmlMessage?

ts
optional warnHtmlMessage: boolean;

是否允许使用 HTML 格式化的本地化消息。

Vue I18n General