# Installation
There are multiple ways to install @pitcher/i18npackage.
# Automatic install (Recommended)
This option consists installing @pitcher/i18n package with the help of @pitcher/vue-cli-plugin-pitcherify. This approach is much more easier than installing it manually. When using this approach, you dont need to install dependencies manually. Dependencies will be installed automatically.
- Open command line in your project root and run:
vue add @pitcher/pitcherify
NOTE
Make sure you don't have any uncommitted changes.
- After executing the command, you will see a menu that shows you a couple of options. Select
i18nwith space, unselect other items and press Enter.
NOTE
The CLI might ask you that you do not have Vuetify installed. If your project is not built on Pitcherify, select No.
- When the exection is completed, the CLI should have
- installed dependencies
- created
gettext.config.js - created
localefolder withapp.pofile inside - modified
main.jsfile and added plugin initialization - modified
package.jsonand added the required scripts - replaced
vue.config.jswith the needed settings
Do not forget to double-check your
main.jsandvue.config.jsfileYou can now skip first 4 steps in Getting started section and go step 5 directly.
# Manual Install
To manually install @pitcher/i18n package, you first need to install some dependencies.
Install dependencies first
npm install @pitcher/i18n @pitcher/core @vue/composition-api
npm install -D @pitcher/easygettext gettext-parser
After installing dependencies, follow the steps in Getting started section.