1.0.1 • Published 6 years ago

validate-po v1.0.1

Weekly downloads
64
License
MIT
Repository
github
Last release
6 years ago

validate-po

Build Status Coverage Status

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

License

MIT