vendredi 1 juin 2018

Package/command to generate lang files in Laravel 5.6

I am building a multilingual laravel 5.6 application and I have a ton of translation keys across my project defined both using @lang blade directive and trans() function.

I wish to find a way (command / package) that would allow me to scan the project for keys and generate files with the respective namespaces. I have found a package that would generate the files for keys like this:

trans('namespace.translation-string')

But I also need to support multiple level namespaces like this i.e. that it would automatically generate the nested namespace folders under each of the system's languages:

trans('namespace.another-namespace.translation-string')



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire