Package Data | |
---|---|
Maintainer Username: | ottowayne |
Maintainer Contact: | mr.ottowayne@gmail.com (Ottowayne) |
Package Create Date: | 2015-03-26 |
Package Last Update: | 2016-04-25 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:22:45 |
Package Statistics | |
---|---|
Total Downloads: | 59 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 6 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
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
To install via composer add the following line to your composer.json:
"ottowayne/laravel-langcheck": "dev-master"
I recommend using this package in local environments (require-dev) only.
Finally add the service provider to your app.php:
'Ottowayne\LangCheck\LangCheckServiceProvider',
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.