1.0.2 • Published 4 years ago
ngx-search-translations-duplicates v1.0.2
NgxSearchTranslationsDuplicates
The library for searching a duplicate in translations
Install
$ npm install ngx-search-translations-duplicates --save-dev- create config file (JSON format):
$ touch .duplicatesconfigUsage
- add command to package.json:
"scripts": {
"translations:duplicates": "npx ngx-search-translations-duplicates"
}npm run translations:duplicates- or
npx ngx-search-translations-duplicatesConfiguration
| Key | Value | Required | Default | Description |
|---|---|---|---|---|
| translationFile | string | yes | path to file with translations | |
| showTotalCount | boolean | no | false | show total of searched zombies keys |
| orderByCount | boolean | no | false | sorting a keys from a most number of duplicates to the less |
| outputFile | string | no | ./translations_duplicates.json | path to file where result should be written |
| minCount | number | no | 2 | minimum number of matches |
Example
{
"translationFile": "./src/assets/translations/en.json",
"showTotalCount": true,
"outputFile": "./zombies_translations.txt"
}