0.1.0 • Published 1 year ago

@psycle/intl-maintainer v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

intl-maintainer

Easy update for your INTL files

Usage

npx @psycle/intl-maintainer <command> [options] <parameters...>
CommandDescription
helpShows 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

OptionsDescription
-d, --dry-runRun the command without touching the files
--output-to-cliPrint the command output to the CLI
ParametersDescription
<source>Source file for translations
<destinations...>Destination files for translations

Build

yarn build

Test locally

You can test the tool by running :

yarn use

or

npx ts-node src/index.ts

ROADMAP

  • 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