1.0.2 • Published 3 years ago

ngx-search-translations-duplicates v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

NgxSearchTranslationsDuplicates

The library for searching a duplicate in translations

NPM Version NPM Size

Install

$ npm install ngx-search-translations-duplicates --save-dev
  • create config file (JSON format):
$ touch .duplicatesconfig

Usage

  • add command to package.json:
"scripts": {
    "translations:duplicates": "npx ngx-search-translations-duplicates"
}
npm run translations:duplicates
  • or
npx ngx-search-translations-duplicates

Configuration

KeyValueRequiredDefaultDescription
translationFilestringyespath to file with translations
showTotalCountbooleannofalseshow total of searched zombies keys
orderByCountbooleannofalsesorting a keys from a most number of duplicates to the less
outputFilestringno./translations_duplicates.jsonpath to file where result should be written
minCountnumberno2minimum number of matches

Example

{
  "translationFile": "./src/assets/translations/en.json",
  "showTotalCount": true,
  "outputFile": "./zombies_translations.txt"
}