File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# rescript-react-intl-extractor
2
2
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] .
5
6
6
7
[ ![ NPM] ( https://nodei.co/npm/rescript-react-intl-extractor-bin.png?compact=true )] ( https://nodei.co/npm/rescript-react-intl-extractor-bin/ )
7
8
![ 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
60
61
or
61
62
62
63
``` rescript
63
- open ReactIntl;
64
+ open ReactIntl
64
65
...
65
66
<FormattedMessage id="some.message.id" defaultMessage="Some message" />
66
67
```
@@ -84,7 +85,7 @@ You also can pass descriptions to the records with:
84
85
let foo = @intl.description("Hello description") {id: "message.hello", defaultMessage: "Hello"}
85
86
```
86
87
87
- ## Message Definition (Reason Syntax)
88
+ ## Message Definition (Legacy Reason Syntax)
88
89
89
90
Formatted messages may be defined in your source files in one of the following ways:
90
91
You can’t perform that action at this time.
0 commit comments