Skip to content

vue-i18n / general / I18nPluginOptions

接口:I18nPluginOptions ​

Vue I18n 插件选项

备注 ​

在使用 app.use 安装 Vue I18n 作为 Vue 插件时指定的选项。

Vue I18n 通用 ​

属性 ​

globalInstall? ​

ts
optional globalInstall: boolean;

是否全局安装 Vue I18n 提供的组件

备注 ​

如果启用了此选项,组件将在 app.use 时全局安装。

如果您希望在 import 语法中手动安装,可以将其设置为 false 以按需安装。

默认值 ​

true