In this lesson, we'll learn how to install the vue-i18n plugin through the Vue CLI Graphical User Interface (GUI).
The plugin can be installed with npm or yarn
npm install vue-i18n
# OR
yarn add vue-i18n
When using a module system, we must explicitly install the plugin with the Vue.use()
method.
import Vue from 'vue'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
For other installation instructions, please see the vue-i18n documentation