Laravel package to find missing translation entries
Adds a "lang:check" Artisan command that finds missing entries in your translation files.
This package is no longer maintained - you may look into laravel-langman
- Laravel 5.0
To install via composer add the following line to your composer.json:
I recommend using this package in local environments (require-dev) only.
Finally add the service provider to your app.php:
You may export the configuration file via
php artisan config:publish ottowayne/langcheck
and edit it as you like.
You can use the command
php artisan lang:check
to search for differences in all language files or edit the configuration settings to either log or throw an exception if an unused key is found.
If you want to define your own behaviour you can listen for the LangCheck::missingtranslation event.