Download the PHP package tgalopin/symfony-translations-checker without Composer
On this page you can find all versions of the php package tgalopin/symfony-translations-checker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tgalopin/symfony-translations-checker
More information about tgalopin/symfony-translations-checker
Files in tgalopin/symfony-translations-checker
Package symfony-translations-checker
Short Description Checks the coherence of the translations of a Symfony application across locales.
License MIT
Homepage https://github.com/tgalopin/symfony-translations-checker
Informations about the package symfony-translations-checker
Symfony Translations Checker
Symfony Translations Checker is a small PHP tool that checks the coherence of the translations of a Symfony application across locales. It is designed to be used as a Continuous Integration tool.
It warns about issues for:
- domains that do not have the same locales as other domains
- keys that exists in the reference locale but not in another locale
- keys that exists in another locale but do not exist in the reference locale
It understands translations domains. For the moment, it only supports the YAML format.
Note: This tool isn't an official Symfony tool. I developed it for my own needs and thought it could be useful to others, thus I open-sourced it. I plan to maintain it in the long term, so feel free to use it whever you wish.
Usage
Symfony Translations Checker is a PHAR file that you can download (on the releases page) and execute, pointing it to your translations directory:
By default, the locale acting as reference is "en". You can change this setting by passing a reference option:
All versions of symfony-translations-checker with dependencies
ext-json Version *
symfony/console Version ^5.2
symfony/finder Version ^5.2
symfony/yaml Version ^5.2