Skip to content

Installation

Compatibility Note

  • Vue.js 3.0.0+

Package managers

sh
npm install vue-i18n@10
sh
yarn add vue-i18n@10
sh
pnpm add vue-i18n@10

When using with a module system, you must explicitly install the vue-i18n via app.use():

js
import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'

const i18n = createI18n({
  // something vue-i18n options here ...
})

const app = createApp({
  // something vue options here ...
})

app.use(i18n)
app.mount('#app')

Direct Download

https://unpkg.com/vue-i18n@10

unpkg.com provides a npm-based CDN links. The above link will always point to the latest release on npm.

Global import

html
<script src="https://unpkg.com/vue@3"></script>
<script src="https://unpkg.com/vue-i18n@10"></script>

You can also use a specific version/tag via URLs like https://unpkg.com/vue-i18n@10.0.0/dist/vue-i18n.global.js

ES Modules import

html
<script type="module" src="https://unpkg.com/vue@3/dist/vue.esm-browser.js">
<script type="module" src="https://unpkg.com/vue-i18n@9/dist/vue-i18n.esm-browser.js">

You can also use a specific version/tag via URLs like https://unpkg.com/vue-i18n@10.0.0/dist/vue-i18n.esm-browser.js

Released under the MIT License.