1.0.1 • Published 3 years ago
@boergrp/missing-locales-cli v1.0.1
@boergrp/missing-locales-cli
A command line interface for finding missing keys in locales using the @boergrp/missing-locales-core package.
Installation
npm install @boergrp/missing-locales-cliyarn add @boergrp/missing-locales-clipnpm add @boergrp/missing-locales-cliUsage
missing-locales-cli [options]Options
- -p, --path <path>: Path to the locales folder.
- -l, --log-prefix <prefix>: Log prefix for the output.
API
- path- Type:- string(optional, default is- './src/locales'): the path to the locales directory.
- logPrefix- Type:- string(optional, default is- [missing-locales/cli]): Log prefix for the output.
Output
Object containing the output string and the missing keys array.
Example
[missing-locales/cli] en/main.json:
--> 'any.key1'
--> 'any.key2'
[missing-locales/cli] Total: 2License
MIT