move-elevator / composer-translation-validator
A Composer plugin that validates translations files in your project regarding mismatches between language source and target files.
Installs: 14 692
Dependents: 12
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 3
Type:composer-plugin
pkg:composer/move-elevator/composer-translation-validator
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
- composer-plugin-api: ^1.0 || ^2.0
- ext-libxml: *
- ext-mbstring: *
- ext-simplexml: *
- justinrainbow/json-schema: ^5.3 || ^6.4
- psr/log: ^1.0 || ^2.0 || ^3.0
- symfony/config: ^5.0 || ^6.0 || ^7.0 || ^8.0
- symfony/console: ^5.0 || ^6.0 || ^7.0 || ^8.0
- symfony/filesystem: ^5.0 || ^6.0 || ^7.0 || ^8.0
- symfony/translation: ^5.0 || ^6.0 || ^7.0 || ^8.0
- symfony/yaml: ^5.0 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- armin/editorconfig-cli: ^1.0 || ^2.0
- composer/composer: ^2.0
- ergebnis/composer-normalize: ^2.44
- konradmichalik/php-cs-fixer-preset: ^0.1.0
- konradmichalik/php-doc-block-header-fixer: ^0.3.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^10.2 || ^11.0 || ^12.0
- rector/rector: ^2.2
Suggests
- ext-intl: Required for validating translations regarding unicode normalization issues.
This package is auto-updated.
Last update: 2026-01-27 04:27:09 UTC
README
Composer Translation Validator
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
📊 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
🧑💻 Contributing
Please have a look at CONTRIBUTING.md.
⭐ License
This project is licensed under GNU General Public License 3.0 (or later).
