ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Simplify multi-language setups

Open aimeos opened this issue 4 years ago • 2 comments

At the moment, it's pretty hard to create multi-language setups in Laravel because you have to change every route() call in the auth templates and include ['locale' => app()->getLocale()], overwrite the e-mail generating methods and create a custom middleware that sets the locale correctly.

Very helpful would be if future versions of Laravel:

  • ships with a default locale middleware
  • inserts the locale parameter in all route() calls automatically if enabled

aimeos avatar Apr 15 '21 10:04 aimeos

There's also a problem with the Laravel router when mapping route variables to method arguments: https://github.com/laravel/framework/issues/36997

@taylorotwell Is there any plan to support multi-lingual routes in future versions of Laravel?

aimeos avatar Apr 15 '21 14:04 aimeos

https://laracasts.com/discuss/channels/code-review/password-reset-link-incorrect-format-and-invalid-token-laravel-57-multi-language

nl123 avatar May 26 '21 09:05 nl123