gettext-validator
v1.1.2
Published
CLI tool to validate gettext PO files
Maintainers
Readme
gettext-validator
CLI tool to validate gettext PO files.
Usage
npx gettext-validator ./locales
pnpx gettext-validator ./locales
bunx gettext-validator ./localesValidates all .po files in the given directory (recursively) and reports errors.
Example
$ npx gettext-validator ./locales
Found 3 .po file(s) to validate
OK /project/locales/en.po
OK /project/locales/de.po
FAIL /project/locales/fr.po
Duplicate msgid error: entry "Hello" in "" context has already been declared.
Validation failed: 1 file(s) with errorsExit code is 1 if any errors, 0 otherwise.
Contributing
bun install
bun run check # lint + format
bun run buildLicense
MIT © 2026 Mikael Siidorow
