2017 © Pedro Peláez
 

library transchecker

Laravel 5,1 Languagefile checker

image

sleepybuildings/transchecker

Laravel 5,1 Languagefile checker

  • Thursday, October 8, 2015
  • by sleepybuildings
  • Repository
  • 1 Watchers
  • 4 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

laravel-transchecker

Simple Laravel Artisan command to check your language files for inconsistencies., (*1)

What it does

Transchecker checks your languagefiles and can report the following errors:, (*2)

  • missing language files
  • missing entries
  • empty entries

Installation

Install through Composer: https://packagist.org/packages/sleepybuildings/transchecker, (*3)

Then add the Transchecker serviceprovider to the your app config:, (*4)

providers' => [
    ...
    \Sleepybuildings\Transchecker\TranscheckerServiceProvider::class,
    ...

]

Languagefiles needs to be in the resources/lang directory., (*5)

Usage

Run the check by executing the following artisan command:, (*6)

php artisan lang:check, (*7)

Sample output

>> php artisan lang:check
Languages found: en, nl
Namespaces found: auth, pagination, passwords, validation
Checking files...
There is 1 missing file:
+----------+------------+
| Language | Namespace  |
+----------+------------+
| nl       | validation |
+----------+------------+
There are 4 missing entries:
+----------+------------+----------+---------+
| Language | Namespace  | Entry    | Error   |
+----------+------------+----------+---------+
| nl       | pagination | previous | Missing |
| nl       | pagination | next     | Missing |
| en       | passwords  | sent     | Empty   |
| nl       | passwords  | token    | Missing |
+----------+------------+----------+---------+
Finished with 5 errors

Still todo...

  • Adding support for deeply nested arrays
  • Crosschecking parameters and pluralizations
  • Add ready-to-use unittesting possibilities
  • Add more comments in the sourcecode...
  • Add support for vendor languagefiles

The Versions

08/10 2015

dev-develop

dev-develop

Laravel 5,1 Languagefile checker

  Sources   Download

The Requires

 

by Thomas Smit

laravel language trans lang

08/10 2015

dev-master

9999999-dev

Laravel 5,1 Languagefile checker

  Sources   Download

The Requires

 

by Thomas Smit

laravel language trans lang

08/10 2015

1.0.0

1.0.0.0

Laravel 5,1 Languagefile checker

  Sources   Download

The Requires

 

by Thomas Smit

laravel language trans lang