Localizator is a small tool for Laravel that gives you the ability to extract untranslated strings from project files. It works using the artisan command line and the provided localize command.
You can install the package via composer:
composer require --dev amirami/localizator
You can publish the config file with:
php artisan vendor:publish --provider="Amirami\Localizator\ServiceProvider" --tag="config"
To extract all the strings, it’s as simple as running:
php artisan localize de,fr
This commands will create (if don’t exist)
fr.json files inside the
You can also run the artisan command without the country code arguments.
php artisan localize
In this case translation strings will be generated for the language specified in
You can learn more about this package, get full installation instructions, and view the source code on GitHub.