Language helper commands for Laravel-based application
apih/laravel-lang-helper is a Laravel package for language helper commands for laravel-based application.
It currently has 3 GitHub stars and 5.228 downloads on Packagist (latest version v1.1.6).
Install it with composer require apih/laravel-lang-helper.
Discover more Laravel packages by apih
or browse all Laravel packages to compare alternatives.
Last updated
This package provides helper commands that can be used in managing and organizing language localization messages.

^8.0^8.0|^9.0|^10.0|^11.0|^12.0|^13.0You can install the package via Composer:
composer require apih/laravel-lang-helper --dev
The Apih\LangHelper\LangHelperServiceProvider class is auto-discovered and registered by default.
If you want to register it yourself, add the service provider in config/app.php:
'providers' => [
/*
* Package Service Providers...
*/
Apih\LangHelper\LangHelperServiceProvider::class,
],
You can find messages with missing translations with:
php artisan lang:missing --locale=ms
This command will list all messages with missing translations for the target locale.
By default, this command will scan the following directories:
app, config, database, public, resources, routes
If you need to add additional directories, use add-dirs option:
php artisan lang:missing --locale=ms --add-dirs=src
You can find keys which have same translation message in JSON files with:
php artisan lang:json:duplicates
You can sort translation messages alphabetically in JSON files with:
php artisan lang:json:sort
If you discover any security related issues, please email [email protected] instead of using the issue tracker. Please prefix the subject with Laravel Lang Helper:.
The MIT License (MIT). Please see License File for more information.