upaid / translations-validator
This package provides an artisan command that validates YAML files placed in resources/lang directory in a Laravel project
Installs: 4 344
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- illuminate/console: >=5.5.0
- illuminate/filesystem: >=5.5.0
- illuminate/support: >=5.5.0
- symfony/yaml: >=3.2.0
Requires (Dev)
- phpunit/phpunit: >=5.5.0
This package is not auto-updated.
Last update: 2024-12-13 23:20:59 UTC
README
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.