validate-po
v1.0.1
Published
Validate po files for string translations, correct interpolations and errors
Downloads
66
Maintainers
Readme
validate-po
Validate .po files for string translations, correct interpolations and other errors
Installation
yarn add --dev validate-po
or
npm install --save-dev validate-po
Add 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 --help
You can pass paths to some files:
yarn run validate-po /home/localizations/en.po /home/localizations/ru.po
Or even entire directory:
yarn run validate-po /home/localizations
Todo
- Custom validators
- Group output
- More examples
Contributing
Contribution guidelines for this project