varovas
1100
2
Tips

Laravel and Vue.JS 2 Multilingual

Posted 2 years ago by varovas

Hi guys, I just wanted any tips, to do multilingual front end with vue.js when I'm loading forms or any data within component. And also is it a good practice to load an entire laravel blade view? For example, Instead of getting Array ['Name' => 'John', 'Name' => 'Ted'] and forming, lets say, contact form in vue component, I could return whole laravel view and put it in the dom with . Returning whole laravel view, cures the headache when I need to have translations on front end, so returned view would be translated with laravel's native trans(filename.translation). Is this a good practice, or should I avoid it? And Is there any other solutions to do multilingual front end translations in Vue.JS?

Please sign in or create an account to participate in this conversation.