Laravel (blade) @lang on Vue components

1

Recently I started using VueJs with Laravel and one of the first problems I came up with was how to use the Laravel translations (from the resource/lang folder) in the Vue Components because in the Blade it is simply to use @lang, or @choice by example.
And as my first solution I passed the translations as variables through Blade to the component, but what happens is that inside another component I call another component and did not want to be passing the translations through variables because it pollutes a lot. br> And I was thinking of using VueResource in the components to send a request to the API and the API to return an entire array with the translations I need. My question is: is this feasible to do? And if not, what should I do.

    
asked by anonymous 23.11.2018 / 17:45

0 answers