ottowayne/laravel-langcheck

Laravel package to find missing translation entries

dev-master 2016-04-25 14:27 UTC

This package is not auto-updated.

Last update: 2023-01-25 00:28:59 UTC


README

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.