File tree Expand file tree Collapse file tree 2 files changed +25
-23
lines changed Expand file tree Collapse file tree 2 files changed +25
-23
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.4.0 - 2018-05-25
4
+
5
+ * Directly use Reason parser api instead of forking the refmt exe for each file.
6
+ Message extraction is now lightning fast! 😀
7
+ * Command line args
8
+ * allow multiple source directories to be specified
9
+ * support -v and -help options
10
+ * Support message extraction when ` open ReactIntl; ` was used.
11
+ * Added tests + Travis CI.
12
+
3
13
## 0.3.0 - 2018-05-16
4
14
5
15
* Support ` [@intl.messages] ` for marking messages for extraction.
11
21
12
22
## 0.1.0 - 2018-05-13
13
23
14
- Initial Release.
24
+ * Initial Release.
Original file line number Diff line number Diff line change 3
3
[ ![ Build Status] ( https://travis-ci.org/cknitt/bs-react-intl-extractor.svg?branch=master )] ( https://travis-ci.org/cknitt/bs-react-intl-extractor )
4
4
5
5
Extracts messages for localization from [ Reason] source files.
6
+ This assumes that you are using the [ bs-react-intl] bindings for [ react-intl] .
6
7
7
- This assumes that you are using the [ bs-react-intl] bindings for [ react-intl]
8
- and your source files define formatted messages in one of the following three ways:
8
+ ## Installation
9
+
10
+ macOS and Linux binaries are available for download on the [ releases page] .
11
+
12
+ ## Usage
13
+
14
+ ``` sh
15
+ bs-react-intl-extractor [path...]
16
+ ```
17
+
18
+ where ` path ` is a Reason source file or a directory containing Reason source files. Multiple files/directories may be specified.
19
+
20
+ Formatted messages may be defined in your source files in one of the following three ways:
9
21
10
22
1 . inline in ` FormattedMessage ` :
11
23
@@ -91,26 +103,6 @@ The output (a JSON array of all extracted messages sorted by id) is written to s
91
103
]
92
104
```
93
105
94
- ## Download
95
-
96
- macOS and Linux binaries are available for download on the [ releases page] .
97
-
98
- After you have downloaded a binary, make it executable using ` chmod +x ` .
99
-
100
- ## Usage
101
-
102
- ``` sh
103
- bs-react-intl-extractor directory ...
104
- ```
105
-
106
- where ` directory ` is a directory containing Reason source files. Multiple directories may be specified.
107
-
108
- The reason formatter (` refmt ` ) needs to be on the path.
109
-
110
- ## Known Issues
111
-
112
- Performance is not optimal right now as the ` refmt ` executable is forked for the processing of each file.
113
-
114
106
## How to build
115
107
116
108
Install [ esy] as follows:
You can’t perform that action at this time.
0 commit comments