apih/laravel-lang-helper

Language helper commands for Laravel-based application
5,427 3
Install
composer require apih/laravel-lang-helper
Latest Version:v1.1.6
PHP:^8.0
License:MIT
Last Updated:Apr 12, 2026
Links: GitHub  ·  Packagist
Maintainer: apih

Laravel Language Helper

Latest Version on Packagist Total Downloads License

This package provides helper commands that can be used in managing and organizing language localization messages.

php artisan lang:missing

Requirements

  • PHP: ^8.0
  • Laravel: ^8.0|^9.0|^10.0|^11.0|^12.0|^13.0

Installation

You 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,
],

Usage

Find Missing Translations

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

Find Duplicates In JSON Files

You can find keys which have same translation message in JSON files with:

php artisan lang:json:duplicates

Sort Messages In JSON Files

You can sort translation messages alphabetically in JSON files with:

php artisan lang:json:sort

Security Vulnerabilities

If you discover any security related issues, please email hafizuddin_83@yahoo.com instead of using the issue tracker. Please prefix the subject with Laravel Lang Helper:.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

apih/laravel-jslang

Language localization in JavaScript, for Laravel-based application

3,078 0
opgginc/codezero-laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

144,344 29
clusteramaryllis/gettext

Adds localization support to laravel applications with PoEdit and Gettext

657 4
menarasolutions/fluent-laravel

Laravel package for Fluent translations (application localisation)

27 1
codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

679,522 545