Best laravel framework open-source packages.

Laravel langcheck

Adds a "lang:check" Artisan command that finds missing entries in your translation files.
Updated 3 years ago

Laravel LangCheck

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

Compatibility

  • Laravel 5.0

Installation

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',

Configuration

You may export the configuration file via

php artisan config:publish ottowayne/langcheck

and edit it as you like.

Usage

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.