# Installation

There are multiple ways to install @pitcher/i18npackage.

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.

  1. Open command line in your project root and run:
vue add @pitcher/pitcherify

NOTE

Make sure you don't have any uncommitted changes.

  1. After executing the command, you will see a menu that shows you a couple of options. Select i18n with 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.

  1. When the exection is completed, the CLI should have
  • installed dependencies
  • created gettext.config.js
  • created locale folder with app.po file inside
  • modified main.js file and added plugin initialization
  • modified package.json and added the required scripts
  • replaced vue.config.js with the needed settings
  1. Do not forget to double-check your main.js and vue.config.js file

  2. You 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.