Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@kuaizi/vue-cli-plugin-i18n

1.1.1 • Public • Published

@kuaizi/vue-cli-plugin-i18n

依赖

使用

> vue add @kuaizi/vue-cli-plugin-i18n
> 使用 @kuaizi/webpack-plugin-vue-i18n吗?(Y)
> √ @kuaizi/vue-i18n-loader
    i18n-placeholder-loader
# 执行生成中文键值对照文件 
> yarn i18n

配置启用插件

package.json

{
  "vue-cli-i18n": {
    // 开启 @kuaizi/webpack-plugin-vue-i18n
    "webpack": true,
    // 配置使用loader支持,['@kuaizi/vue-i18n-loader', 'i18n-placeholder-loader']
    "loader": "i18n-placeholder-loader"
  }
}

插件参数配置

vue.config.js

module.exports = {
  pluginOptions: {
    "vue-i18n": {
      output: "./src/i18n/newZH.js"
    }
  }
}

Keywords

none

Install

npm i @kuaizi/vue-cli-plugin-i18n

DownloadsWeekly Downloads

364

Version

1.1.1

License

MIT

Unpacked Size

5.39 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar