Skip to content

Commit

Permalink
chore: use directory argument for source dir and update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
blurrah committed Jul 1, 2024
1 parent a05d1fa commit 5c7cc70
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# intl-extractor

Extracts `next-intl` labels from TypeScript files and merges them to a given output json file.

This automates away manually setting labels in a `source.json` file.

## How to use

```bash
npx @labdigital/intl-extractor -d ./path/to/files -o ./path/to/output.json
```
4 changes: 2 additions & 2 deletions src/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import { processFiles } from "../main";

async function main() {
yargs(hideBin(process.argv))
.usage("$0 --source [path] --output [json file]")
.usage("$0 --directory [path] --output [json file]")
.options({
source: {
directory: {
type: "array",
alias: "s",
describe: "Source directories to process",
Expand Down

0 comments on commit 5c7cc70

Please sign in to comment.