DEV Community

Discussion on: How to use Laravel translations in JS (vue) files?

Collapse
 
barraxas profile image
bArraxas

Great post !
I had just need edit this line to be supported by windows too :

Before : $path = resource_path("lang/$locale");
After : $path = resource_path("lang" . DIRECTORY_SEPARATOR . $locale);

(markdown of the hell, 10 minutes lost for nothing...)