New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

robinfranssen/analyzelocale

This scans your laravel project for used locale keys that aren't translated by your locale files.
21,231 25
Install
composer require robinfranssen/analyzelocale
Latest Version:0.1.5
PHP:>=5.4.0
License:MIT
Last Updated:May 7, 2018
Links: GitHub  ·  Packagist
Maintainer: robinfranssen

Translation helpers for Laravel 5


NOTE: As of laravel 5.2.20 you need version ^0.1.4. For laravel 5.2.19 or lower you need version 0.1.3 of this package.


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

Related Packages

tomshaw/laravel-calendar-table

A Laravel calendar table database migration and console command.

66,493 8
michael-rubel/artisan-release-command

Artisan command to create a GitHub release of your code.

1,240 15
aewebsolutions/laravel-translator

Laravel's package for managing multiple locales and translation

235 0
nicksynev/make-observer-command

Artisan command for creating Observer classes in Laravel

15,816 9
folklore/laravel-locale

Locale detection, localized routes and localized URLs for Laravel

4,362 3

Version History

Version Released PHP License
0.1.5 >=5.4.0 MIT
0.1.4 >=5.4.0 MIT
0.1.3 >=5.4.0 MIT
0.1.2 >=5.4.0 MIT
0.1.1 >=5.4.0 MIT