Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/filipponik/laravel-translate-analyzer

Translate analyzer for Laravel
https://github.com/filipponik/laravel-translate-analyzer

analyze analyzer command-line composer laravel package php translate translation

Last synced: 25 days ago
JSON representation

Translate analyzer for Laravel

Awesome Lists containing this project

README

        

# Translate analyzer for Laravel

## Installing

Install package

```shell
composer require filipponik/laravel-translate-analyzer --dev
```

Add service provider to your `config/app.php` file:
```php
...
'providers' => [
...
\Filipponik\LaravelTranslateAnalyzer\Providers\TranslateServiceProvider::class,
],
...
```

## Usage

If you want to get duplicated values in your lang files, use command below:
```shell
php artisan translate:check-duplicates
```

If you want to analyze your code and fill lang files, use command below:
```shell
php artisan translate:fill-files
```