sdlab / laravel-translation-files-generator
Create translation json files containing all project needed translations
dev-master
2020-05-01 18:26 UTC
Requires
- php: >=7.0
- ext-json: *
- illuminate/console: ^6.0|^7.0
- illuminate/support: ^6.0|^7.0
This package is auto-updated.
Last update: 2025-05-29 01:25:30 UTC
README
Very simple command which generate missing keys in translation files. Parse blade, and laravel files. Compatible with laravel 6.x and 7.x.
Note: grep
command must be available. It is used to search translations in files.
Installation
composer require --dev sdlab/laravel-translation-files-generator
Usage
php artisan translation:generate-files --locale=fr --locale=en --origin=fr
The command will parse all the translation function calls from blade and php files, and add the missing one in the specified files transations files.
- locale: each locale specified will create associated translation file
- origin: will fill the value also for the specified language. Useful when the expressions used in code are already translated in one language
License
The MIT License (MIT). Please see License File for more information.