Download the PHP package diglabby/laravel-find-missing-translations without Composer
On this page you can find all versions of the php package diglabby/laravel-find-missing-translations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download diglabby/laravel-find-missing-translations
More information about diglabby/laravel-find-missing-translations
Files in diglabby/laravel-find-missing-translations
Package laravel-find-missing-translations
Short Description A console command to find missing translations for Laravel projects
License MIT
Informations about the package laravel-find-missing-translations
Find missing Laravel Translations
Artisan command to find missing translations. It takes a basic locale and finds missing keys/translations in other locales.

Output example:

Installation
The package requires PHP 8.3 or higher and Laravel 12 or 13. For Laravel 10 or 11 use ^1.6.
Usage
Use the application locale as base and the application lang path (lang/ since Laravel 9, resources/lang/ before that):
The command exits with code 1 when a locale is missing a key or a whole translation file, so it can gate a CI build.
You can specify a base locale:
You can specify a list of locales to check:
You can specify a list of locales to exclude:
You can specify a relative or absolute path to the lang directory location:
The lang/vendor directory, where package translation overrides live, is skipped.
What is compared
Both translation formats:
- PHP group files,
lang/{locale}/{group}.php, including files in nested group directories such aslang/{locale}/admin/orders.php. - JSON string keyed files,
lang/{locale}.json. They are compared only when the base locale has one, so projects that use PHP groups only see no difference.
A locale counts as declared when it has either a directory or a JSON file, and both formats are then expected of it. A locale with be.json but no be/ directory has translated none of the group keys, so the missing directory is reported, and the same holds the other way round. The base locale needs at least one of the two.
Contributing
Testing
Thanks
Inspired by VetonMuhaxhiri/Laravel-find-missing-translations
All versions of laravel-find-missing-translations with dependencies
illuminate/console Version ^12.0 || ^13.0
illuminate/support Version ^12.0 || ^13.0