1.0.1 • Published 1 year 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-cli
yarn add @boergrp/missing-locales-cli
pnpm add @boergrp/missing-locales-cli
Usage
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: 2
License
MIT