ottowayne / laravel-langcheck by ottowayne

Laravel package to find missing translation entries
59
6
2
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-12-23 03:25:53
Package Statistics
Total Downloads: 59
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 6
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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.