0.1.0 • Published 3 years ago
@psycle/intl-maintainer v0.1.0
intl-maintainer
Easy update for your INTL files
Usage
npx @psycle/intl-maintainer <command> [options] <parameters...>| Command | Description |
|---|---|
help | Shows an help message |
update [options] <source> <destinations...> | Extract keys from source files and update destination files prompting the user to input translations |
update [options] <source> <destinations...> Command
| Options | Description |
|---|---|
-d, --dry-run | Run the command without touching the files |
--output-to-cli | Print the command output to the CLI |
| Parameters | Description |
|---|---|
<source> | Source file for translations |
<destinations...> | Destination files for translations |
Build
yarn buildTest locally
You can test the tool by running :
yarn useor
npx ts-node src/index.tsROADMAP
- More unit tests
- Integration tests
- Use Format.JS Node API to compile messages
- Use prompt to allow user to write new translations in the CLI
- Use Format.JS Node API to check messages syntax