diglabby / laravel-find-missing-translations
A console command to find missing translations for Laravel projects
Fund package maintenance!
doika.falanster.by/#history
Installs: 4 417
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 5
Forks: 7
Open Issues: 0
Requires
- php: ^8.1
- illuminate/console: ^10.0 || ^11.0
- illuminate/support: ^10.0 || ^11.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.50
- orchestra/testbench: ^8.0 || ^9.0
- phpunit/phpunit: ^10.5 || ^11.0
- vimeo/psalm: ^5.22
This package is not auto-updated.
Last update: 2024-11-19 22:52:22 UTC
README
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
composer require diglabby/laravel-find-missing-translations --dev
The package works with Laravel 5 and higher, PHP 7.1 and higher.
Usage
Use default locate as base and default Laravel’s path to lang files:
php artisan translations:missing
You can specify a base locale:
php artisan translations:missing --base=es
You can specify a list of locales to check:
php artisan translations:missing --base=es --only=be,en
You can specify a list of locales to exclude:
php artisan translations:missing --base=es --exclude=fr,de
You can specify a relative or absolute path to lang
directory location:
php artisan translations:missing --dir=/resources/my-custom-lang-dirname
Contributing
Testing
composer test
Thanks
Inspired by VetonMuhaxhiri/Laravel-find-missing-translations