Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions .github/workflows/get_filenames.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { version } = JSON.parse(packageJson);

const exeName = getExeName();
const platform = getPlatformName();
const artifactName = `bs-react-intl-extractor-${version}-${platform}`;
const artifactName = `rescript-react-intl-extractor-${version}-${platform}`;

// For passing output to subsequent GitHub actions
console.log(`::set-output name=exe_name::${exeName}`);
Expand All @@ -32,8 +32,8 @@ function getExeName() {

switch (platform) {
case "win32":
return "bs-react-intl-extractor.exe";
return "rescript-react-intl-extractor.exe";
default:
return "bs-react-intl-extractor";
return "rescript-react-intl-extractor";
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ _esy
_release
*.byte
*.native
bs-react-intl-extractor.install
rescript-react-intl-extractor.install
.DS_Store
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# bs-react-intl-extractor
# rescript-react-intl-extractor

Extracts messages for localization from [ReScript] or [Reason] source files.
This assumes that you are using the [bs-react-intl] 2.x bindings for [react-intl].
This assumes that you are using the [rescript-react-intl] 2.x bindings for [react-intl].

[![NPM](https://nodei.co/npm/bs-react-intl-extractor-bin.png?compact=true)](https://nodei.co/npm/bs-react-intl-extractor-bin/)
![Build Status](https://github.com/cknitt/bs-react-intl-extractor/workflows/CI/badge.svg)
[![NPM](https://nodei.co/npm/rescript-react-intl-extractor-bin.png?compact=true)](https://nodei.co/npm/rescript-react-intl-extractor-bin/)
![Build Status](https://github.com/cca-io/rescript-react-intl-extractor/workflows/CI/badge.svg)

## Installation

Binaries for macOS, Linux and Windows can be installed via npm or yarn. For global installation, run

```sh
npm install -g bs-react-intl-extractor-bin
npm install -g rescript-react-intl-extractor-bin
```

Alternatively, the binaries are also available for download on the [releases page].

## Usage

```sh
bs-react-intl-extractor [--allow-duplicates] [path...]
rescript-react-intl-extractor [--allow-duplicates] [path...]
```

where `path` is a ReScript (`*.res`) or Reason (`*.re`) source file or a directory containing such source files. Multiple files/directories may be specified.
Expand Down Expand Up @@ -149,7 +149,7 @@ Run the tests:

[rescript]: https://rescript-lang.org/
[reason]: https://reasonml.github.io
[bs-react-intl]: https://github.com/alexfedoseev/bs-react-intl
[rescript-react-intl]: https://github.com/cca-io/rescript-react-intl
[react-intl]: https://github.com/yahoo/react-intl
[releases page]: https://github.com/cknitt/bs-react-intl-extractor/releases
[releases page]: https://github.com/cca-io/rescript-react-intl-extractor/releases
[esy]: https://esy.sh
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Docker image for running esy and building bs-react-intl-extractor on Linux.
Docker image for running esy and building rescript-react-intl-extractor on Linux.
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(lang dune 2.0)
(name bs-react-intl-extractor)
(name rescript-react-intl-extractor)
Loading