1.0.1 • Published 8 years ago
validate-po v1.0.1
validate-po
Validate .po files for string translations, correct interpolations and other errors
Installation
yarn add --dev validate-poor
npm install --save-dev validate-poAdd script to your package.json:
"scripts": {
+ "validate-po": "validate-po",
+ "test": "jest && eslint . && yarn run validate-po ./localizations"
}Usage
For all available options run:
yarn run validate-po --helpYou can pass paths to some files:
yarn run validate-po /home/localizations/en.po /home/localizations/ru.poOr even entire directory:
yarn run validate-po /home/localizationsTodo
- Custom validators
- Group output
- More examples
Contributing
Contribution guidelines for this project