项目作者: diglabby

项目描述 :
Artisan command to find missing translations
高级语言: PHP
项目地址: git://github.com/diglabby/laravel-find-missing-translations.git


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

  1. 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:

  1. php artisan translations:missing

You can specify a base locale:

  1. php artisan translations:missing --base=es

You can specify a list of locales to check:

  1. php artisan translations:missing --base=es --only=be,en

You can specify a list of locales to exclude:

  1. php artisan translations:missing --base=es --exclude=fr,de

You can specify a relative or absolute path to lang directory location:

  1. php artisan translations:missing --dir=/resources/my-custom-lang-dirname

Contributing

Testing

  1. composer test

Thanks

Inspired by VetonMuhaxhiri/Laravel-find-missing-translations