rmariuzzo / Laravel-JS-Localization

🌐 Convert your Laravel messages and consume them in the front-end!
https://github.com/rmariuzzo/laravel-js-localization
MIT License
596 stars 170 forks source link

Add support for "path must contain name" #114

Closed JBtje closed 3 years ago

JBtje commented 7 years ago

With this, you can place all language files used by JS, in a specific directory, or give the files a specific name. This is a more dynamic method than "$messagesIncluded" (of which I think the name makes no sense)

JBtje commented 7 years ago

I agree with you that merging would be the best option. includes would be a better name, compared to the ones currently used. The code should be altered to allow regular expression as well, so you can use a regex to define what path's/files to include (and thus which ones not).

I'm rather new to github and so far I've been including a project into my own project on my PC, alter code on my PC, make a fork on github, manually edit the code there and send a pr. I guess there is a better way of doing this?