Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

update readme after 3.0 release #150

Merged
merged 1 commit into from
Sep 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# babel-plugin-react-intl

Extracts string messages for translation from modules that use [React Intl][].
## Dependencies

_**Note:** This Babel plugin works with React Intl v2.x, and **1.x of this plugin works with Babel 5, 2.x works with Babel 6**._
### React Intl
This Babel plugin works with React Intl v2.x

### Babel
- **3.x** of this plugin works with Babel 7
- **2.x** works with Babel 6
- **1.x** works with Babel 5

## Installation

Expand Down Expand Up @@ -47,7 +54,7 @@ If a message descriptor has a `description`, it'll be removed from the source af
The extract message descriptors are available via the `metadata` property on the object returned from Babel's `transform()` API:

```javascript
require('babel-core').transform('code', {
require('@babel/core').transform('code', {
plugins: ['react-intl']
}) // => { code, map, ast, metadata['react-intl'].messages };
```
Expand Down