diglabby/laravel-find-missing-translations

A console command to find missing translations for Laravel projects

1.3.0 2024-02-27 18:58 UTC

This package is not auto-updated.

Last update: 2024-04-09 19:52:36 UTC


README

Latest Version on Packagist Total Downloads Test Type coverage Psalm level

Find missing Laravel Translations

Artisan command to find missing translations. It takes a basic locale and finds missing keys/translations in other locales.

Package logo

Output example:

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 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