translation-manager-for-laravel maintained by fschirinzi
Translation Manager For Laravel
Easy to use package that helps you with the translation of your Laravel application locally.
Features
:white_check_mark: Check all locales :white_check_mark: Check nested translations :white_check_mark: Check nested directories :white_check_mark: Display where translations are found :white_check_mark: Display where translations are missing :white_check_mark: Export all translations to CSV for easy sharing with your translator
Requirements
- PHP
8.2or higher - Laravel
11,12or13
Older Laravel versions (6–10) are supported by the
1.xrelease line.
Installation
composer require fschirinzi/translation-manager-for-laravel --dev
The service provider is registered automatically via Laravel's package discovery.
Usage
Validation
Use default Laravel's path to lang files:
php artisan translations:validate
You can specify a relative or absolute path to lang directory location:
php artisan translations:validate --dir=/other/dir/with/my-custom-languages
Nested keys are displayed using a dot (.) by default. Use --separator (or -s) to change it:
php artisan translations:validate --separator=/
Export
php artisan translations:export -o /tmp/my-translations.csv
Testing
composer test
Changelog
Please see CHANGELOG.md for details on what has changed recently.
Maintainers
License
Translation Manager For Laravel is open-sourced software licensed under the MIT license.