File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 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
6061or
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:
8485let foo = @intl.description("Hello description") {id: "message.hello", defaultMessage: "Hello"}
8586```
8687
87- ## Message Definition (Reason Syntax)
88+ ## Message Definition (Legacy Reason Syntax)
8889
8990Formatted messages may be defined in your source files in one of the following ways:
9091
You can’t perform that action at this time.
0 commit comments