xiCO2k / laravel-vue-i18n

Allows to connect your `Laravel` Framework translation files with `Vue`.
MIT License
619 stars 51 forks source link

Resolve callback is required with Laravel Mix Plugin #26

Closed stevebauman closed 2 years ago

stevebauman commented 2 years ago

Hi @xiCO2k, thanks for the great plugin! 🙏

I'm wondering if/why the resolve callback is required even if we use the Laravel Mix plugin to import PHP files?

Is it possible to make this optional if my application only utilizes PHP based language files?

Thanks again for your time!

xiCO2k commented 2 years ago

Definitely something I should look on it. Great suggestion 💪.

Will dig in on that.

stevebauman commented 2 years ago

Awesome, thank you for the quick reply! 🙏

xiCO2k commented 2 years ago

Hey @stevebauman after digging it a lot on that, can't find a good way to have it full working.

If all the lang's are generated to the final build it can work, but if we want to use the lazy load when switching lang's, the import needs to be on the client side 😞 .

stevebauman commented 2 years ago

No worries man, thanks for following up 😄 ❤️