DEV Community

Cover image for Implement a translation system into your Laravel project with Inertia and Vue

Implement a translation system into your Laravel project with Inertia and Vue

Capsules Codes on February 12, 2024

TL;DR: How to quickly set up a translation system in a Laravel project with Inertia and Vue.     A sample Laravel project can be found on this Gi...
Collapse
 
mreduar profile image
Eduar Bastidas

From my point of view this is inefficient because the middleware is going to run for each request of the application, if you have millions of requests per second searching and reading the file is very slow and the application will become slow.

Collapse
 
capsulescodes profile image
Capsules Codes

Do you have any suggestion on how to improve the behavior ? I suppose separating translations by view could be a solution.