Skip to content

This scans your laravel project for used locale keys that aren't translated by your locale files.

Notifications You must be signed in to change notification settings

WISHPRO/laravel-analyze-locale

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Translation helpers for Laravel 5


This package provides you with commands to analyze the translation keys used in your Laravel 5 application.

These commands can detect untranslated and invalid keys.

Alt text

Installation

composer require robinfranssen/analyzelocale --dev

Add the service provider:

// config/app.php

'providers' => [
	...
	'RobinFranssen\AnalyzeLocale\Providers\ServiceProvider',
	...
],

Usage

From the command line, run php artisan locale:scan to see a full overview of the analyzation. This will show you all information provided by the three other locale commands.

Alt text

php artisan locale:invalid will show you the invalid keys.

Alt text

php artisan locale:untranslated will show you the untranslated keys.

Alt text

php artisan locale:allkeys will show you a table with untranslated and invalid keys.

Alt text

Every command supports the --locale flag. For example: php artisan locale:allkeys --locale=nl

Alt text

About

This scans your laravel project for used locale keys that aren't translated by your locale files.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%