This package provides an option to extend Laravels Translator to write missing
translation keys to their respective translation files.
This is especially useful if you have dynamic translation keys where static dumpers do not work.
You can install the package via composer.
Since this package should only be used in development, you should add the --dev
flag.
composer require --dev bambamboole/laravel-translation-dumper
To enable the dumper, you have to set the environment variable `DUMP_TRANSLATIONS` to `true`.
Just write your templates and use the __()
helper as usual with your preferred
translation key pattern. As soon as you visit the page, the missing translation keys,
they will be written to the respective translation files in the structure that the first
part of the key is the file name and the rest is the nested path of a PHP array.
As value it takes the translation key itself prefixed by a configurable prefix.
composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email manuel@christlieb.eu instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.