Skip to content

Commit

Permalink
docs(validator): update install instructions and validation path (#542)
Browse files Browse the repository at this point in the history
- indicate validation package as a dev dependency
- add missing assets in path for linting
  • Loading branch information
pavliy authored Jan 15, 2022
1 parent 0d59bc9 commit c10c4ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/tools/validator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This package provides validation for translation files. It validates that the JS
### Installation

- Set up [husky](https://github.com/typicode/husky) and [lint-staged](https://github.com/okonet/lint-staged#examples)
- Run `npm i @ngneat/transloco-validator`
- Run `npm i @ngneat/transloco-validator --save-dev`

### Usage
```json file="package.json"
Expand All @@ -19,7 +19,7 @@ This package provides validation for translation files. It validates that the JS
}
},
"lint-staged": {
"src/i18n/*.json": ["transloco-validator"]
"src/assets/i18n/*.json": ["transloco-validator"]
}
}
```
Expand Down

0 comments on commit c10c4ed

Please sign in to comment.