upaid/translations-validator

This package provides an artisan command that validates YAML files placed in resources/lang directory in a Laravel project
4,345
Install
composer require upaid/translations-validator
Latest Version:1.0.0
License:MIT
Last Updated:Mar 5, 2018
Links: GitHub  ·  Packagist
Maintainer: uPaid

YAML translations validator

License: MIT

This package provides an artisan command that validates YAML files placed in resources/lang directory in a Laravel project.

Installation

This package can be installed through Composer:

composer require upaid/translations-validator

Or by adding the following line to the require section of your Laravel app's composer.json file:

    "require": {
        "upaid/translations-validator": "1.*"
    }

Run composer update upaid/translations-validator to install the package.

Usage

In order to validate your translation files execute the following command:

php artisan translations-validator:validate 

In case there are any errors a full list is displayed. It's good to add it to pre-commit git hook in order to prevent people from commiting syntactically invalid YAML files.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

394,964,158 4,660

Version History

Version Released Laravel License
1.0.0 >=5.5.0 MIT
0.1 ^5.6 MIT