Composer Translation Validator
August 31, 2026 ยท View on GitHub
A Composer plugin that validates translation files in your project.
Provides a command validate-translations to check for translations mismatches, duplicates, schema validation and more.
Supports XLIFF, YAML, JSON and PHP translation files.
โจ Features
- Autodetect coherent language files
- Supports various translation file formats
- Provides multiple validators
- Configurable via separate configuration files
๐ฅ Installation
composer require --dev move-elevator/composer-translation-validator
Alternatively, a dependency-free standalone PHAR is available for CI or non-Composer projects.
๐ Usage
Validate your translation files by running the command:
composer validate-translations ./translations

The command validate-translations can be used to validate translation files in your project. It will automatically detect the translation files based on the supported formats and run the configured validators. See the CLI documentation for more details.
๐ Documentation
Full documentation is available at move-elevator.github.io/composer-translation-validator.
Quick Links
- Getting Started
- Configuration
- CLI Reference
- Validators
- File Formats
- File Detection
- Programmatic Usage
๐งโ๐ป Contributing
Please have a look at CONTRIBUTING.md.
โญ License
This project is licensed under GNU General Public License 3.0 (or later).