andywer / laravel-js-localization

Simple, ease-to-use and flexible package for the Laravel web framework. Allows you to use localized messages of the Laravel webapp (see `resources/lang` directory) in your Javascript code.
MIT License
143 stars 51 forks source link

Quick-fix new generateMessageFiles() #49

Closed andywer closed 6 years ago

andywer commented 6 years ago

Seems like the latest feature's code has a bug. The output JS file that we create might end up empty.

bildschirmfoto 2018-05-03 um 20 31 32
andywer commented 6 years ago

@carestad Maybe you have a quick fix at hand?

And a bit of shame on me that I didn't notice when reviewing 😉

carestad commented 6 years ago

Oh! Well, I suppose moving the two lines below the if (key_exists()) into the if there would do the trick. Let me fix :)