Support the ongoing development of →
posted 8 years ago
Last updated 2 years ago.

Typically you would prefix your routes with the locale - there is one method here



Thanks for the suggestion. I downloaded the project from GITHub and trying in local machine. I am getting the error as

Warning: require(C:\xampp\htdocs\laravelsample\laravel-multiple-locales-master\laravel-multiple-locales-master\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\laravelsample\laravel-multiple-locales-master\laravel-multiple-locales-master\bootstrap\autoload.php on line 17

Any idea why this happens.

Thanks, Sreejith


windows ... don't know ....

in Linux type: command:

composer dump-autoload

have you done "composer install" or "composer update"?

I'm redoing my locale setup to update to L5.1.x right now.

But take a look at my older setup which works.

I do not translate my slugs but the goal is to have everything else multi-lingual/

If you want to try out my code refactor that is still being worked on: and you will need to put this in the modules directory:


I've written a tutorial and created an open source package especially for this.


Open source language switcher package:


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.