andywer/laravel-js-localization

Quick-fix new generateMessageFiles()

andywer opened this issue · 2 comments

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

@carestad Maybe you have a quick fix at hand?

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

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