@jonathanleelx/vite-plugin-vue2-i18n
v0.0.2
Published
A vite plugin for vue2 and [email protected].
Downloads
4
Readme
Description
This vite plugin use for vue2 and [email protected].
Help you use <i18n></i18n>
block in vue sfc.
example below
<i18n>
{
"zh-CN": {
"hello": "你好"
}
}
</i18n>
Install
npm install @jonathanleelx/vite-plugin-vue2-i18n --save-dev
or
yarn add @jonathanleelx/vite-plugin-vue2-i18n -D
Usage
// in your vite.config.js file.
import { defineConfig } from 'vite'
import { createVue2I18nPlugin } from './vite-plugin-vue2-i18n'
export default defineConfig({
// ...
plugins: [createVue2I18nPlugin()]
})