# Installation
# Using a package manager
If you use some bundler like Webpack, Vite, etc. you can install i18next-vue like this:
You need to explicitly install the i18next-vue
plugin via Vue.use()
:
import Vue from 'vue';
import i18next from 'i18next';
import I18NextVue from 'i18next-vue';
i18next.init({/*...*/});
Vue.use(I18NextVue, { i18next });
# Direct Download / CDN
https://unpkg.com/i18next/i18next-vue/dist/index.js (opens new window)
unpkg.com (opens new window) provides NPM-based CDN links. The above link will always point to the latest release on NPM. You can also use a specific version/tag via URLs like https://unpkg.com/i18next/i18next-vue@1.0.0/dist/index.js (opens new window)
<script src="https://unpkg.com/vue@2/dist/vue.js"></script>
<script src="https://unpkg.com/i18next@21/i18next.js"></script>
<script src="https://unpkg.com/i18next/i18next-vue@1/dist/index.js"></script>
You need to explicitly install the i18next-vue
plugin via Vue.use(I18NextVue, { i18next });
# Dev Build
You can clone directly from GitHub and build i18next-vue
yourself if you want to use the latest dev build.
git clone https://github.com/i18next/i18next-vue.git node_modules/i18next-vue
cd node_modules/i18next-vue
npm i
npm run build