martinlindhe / laravel-vue-i18n-generator

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

v0.1.44 doesn't support symlinks anymore #108

Closed kapalla closed 4 years ago

kapalla commented 4 years ago

105 changes the behavior how folders are getting registered in an array.

  1. Directory structure packages/core/src/resources/lang/de/help.php packages/core/src/resources/lang/en/help.php packages/user/src/resources/lang/de/form.php packages/user/src/resources/lang/en/form.php

  2. Symlinks resources/lang/vendor/core -> packages/core/src/resources/lang resources/lang/vendor/user -> packages/user/src/resources/lang

php artisan vue-i18n:generate --with-vendor --ansi

shows the following error message

  1   DirectoryIterator::__construct("/Users/kai/Sites/my-project/resources/lang/vendor/lang")
      /Users/kai/Sites/my-project/vendor/martinlindhe/laravel-vue-i18n-generator/src/Generator.php:218

  2   MartinLindhe\VueInternationalizationGenerator\Generator::allocateLocaleArray("/Users/kai/Sites/my-project/resources/lang/vendor/lang")
      /Users/kai/Sites/my-project/vendor/martinlindhe/laravel-vue-i18n-generator/src/Generator.php:236

  3   MartinLindhe\VueInternationalizationGenerator\Generator::allocateLocaleArray("/Users/kai/Sites/my-project/resources/lang/vendor")
      /Users/kai/Sites/my-project/vendor/martinlindhe/laravel-vue-i18n-generator/src/Generator.php:81

  4   MartinLindhe\VueInternationalizationGenerator\Generator::generateFromPath("/Users/kai/Sites/my-project/resources/lang", "es6")
      /Users/kai/Sites/my-project/vendor/martinlindhe/laravel-vue-i18n-generator/src/Commands/GenerateInclude.php:67

  …
martinlindhe commented 4 years ago

@kapalla Alright, thanks. We'll revert that PR for now and push another release

martinlindhe commented 4 years ago

Patch reverted and released 0.1.45