LaravelPackages.net
Acme Inc.
Toggle sidebar
sdlab/laravel-translation-files-generator

Create translation json files containing all project needed translations

99
1
About sdlab/laravel-translation-files-generator

sdlab/laravel-translation-files-generator is a Laravel package for create translation json files containing all project needed translations. It currently has 1 GitHub stars and 99 downloads on Packagist. Install it with composer require sdlab/laravel-translation-files-generator. Discover more Laravel packages by sdlab or browse all Laravel packages to compare alternatives.

Last updated

Laravel translation files generator

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.

Star History Chart