0👍
You could create your own service which generates a javscript object or json in a js file and load it via webpack then make it available to you vueJs.
I personaly use this package package which handle the generation of javascript file on the Laravel side and gives you all the helpers you need on the vueJs side too. Their may be limitation depending on your needs thow so be sure to check the doc
- [Vuejs]-Pass Data Via Object In Laravel Vue Form
- [Vuejs]-How to combine moment("from", "now") with timezone in a Vue binding
0👍
One option would be to load your translation files via an API call on load of your Vue application. Another option would be to pass the translations files’ array (json encoded) directly to a prop in your Vue application.
Source:stackexchange.com