Skip to content

Commit 46e9972

Browse files
committed
Update README
1 parent c845ff9 commit 46e9972

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# rescript-react-intl-extractor
22

3-
Extracts messages for localization from [ReScript] or [Reason] source files.
4-
This assumes that you are using the [rescript-react-intl] 2.x bindings for [react-intl].
3+
Extracts messages for localization from [ReScript] source files. Also supports the legacy [Reason] syntax.
4+
5+
This assumes that you are using the [rescript-react-intl] bindings for [react-intl].
56

67
[![NPM](https://nodei.co/npm/rescript-react-intl-extractor-bin.png?compact=true)](https://nodei.co/npm/rescript-react-intl-extractor-bin/)
78
![Build Status](https://github.com/cca-io/rescript-react-intl-extractor/workflows/CI/badge.svg)
@@ -60,7 +61,7 @@ Formatted messages may be defined in your source files in one of the following w
6061
or
6162

6263
```rescript
63-
open ReactIntl;
64+
open ReactIntl
6465
...
6566
<FormattedMessage id="some.message.id" defaultMessage="Some message" />
6667
```
@@ -84,7 +85,7 @@ You also can pass descriptions to the records with:
8485
let foo = @intl.description("Hello description") {id: "message.hello", defaultMessage: "Hello"}
8586
```
8687

87-
## Message Definition (Reason Syntax)
88+
## Message Definition (Legacy Reason Syntax)
8889

8990
Formatted messages may be defined in your source files in one of the following ways:
9091

0 commit comments

Comments
 (0)