0.1.2 • Published 6 years ago
react-intl-cli v0.1.2
React-Intl CLI for your React App
react-intl-cli - command line tools for manipulating
react-intl message catalogues.
Installation
You could install react-intl-cli global or local.
Global Installation
Using npm:
npm install --global react-intl-cliUsing yarn:
yarn global add react-intl-cliLocal Installation
Using npm:
npm install -D react-intl-cliUsing yarn:
yarn add -D react-intl-cliand add script to your package.json file:
{
"scripts": {
"extract-translations": "react-intl-cli extract"
}
}Usage
For now react-intl-cli provides the only extarct command.
Extract command
Extracts messages from source files and creates a message catalog for each language.
If you install react-intl-cli globally you could run it in your command line:
react-intl-cli extractor with custom options:
react-intl-cli extract [option] [glob-patterns...]to show available options run help:
react-intl-cli extract -hIf you install locally just run:
npm run extract-translationsLicense
This package is licensed under MIT license.