validate-po

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i validate-po

Weekly Downloads

27

Version

1.0.1

License

MIT

Unpacked Size

12.2 kB

Total Files

8

Last publish

Collaborators

  • _frsv