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...
For further actions, you may consider blocking this person and/or reporting abuse
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.
Do you have any suggestion on how to improve the behavior ? I suppose separating translations by view could be a solution.