In laravel the language files are loaded before the route files, making using the translation files possible in the route paths. Trying the same with the route files in modules revealed that when loading the routes the module language files had not been loaded yet, resulting in unknown routes. I've written a workaround preloading all the translation files named route.php from every module and merging them. It would make more sense if changing the loading order was possible. Is there a solution that lets you do this?
In laravel the language files are loaded before the route files, making using the translation files possible in the route paths. Trying the same with the route files in modules revealed that when loading the routes the module language files had not been loaded yet, resulting in unknown routes. I've written a workaround preloading all the translation files named route.php from every module and merging them. It would make more sense if changing the loading order was possible. Is there a solution that lets you do this?