martinlindhe / laravel-vue-i18n-generator

Generates a vue-i18n compatible include file from your Laravel translations
MIT License
306 stars 207 forks source link

Package ignores json language files when --multi-locales is present #122

Open adam-boduch opened 4 years ago

adam-boduch commented 4 years ago

php artisan vue-i18n:generate --multi-locales ignores JSON lang files. Output contains only data from resource/lang subdirectories.

Without this flag, everything works as expected.

Version: 0.1.46

haringsrob commented 4 years ago

I have a similar issue, I believe it lies in allocateLocaleJSON not doing its job properly.

I added for testing something like this $this->filesToCreate[$filePath][$lastLocale] = $this->adjustArray($tmp); but I don't feel like its the correct solution.