Help for integrating the Laravel package
Forum rules: Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
#3384 by wenotine
17 Sep 2016, 15:26
Hello Everyone,

Please help me.

We mixed Aimeos with AsgardCMS, and our URI is different than the normal Aimeos URI.
My question is, how and where can we change the language (where exaclty is the language change happening)?
How can we change the language in the code?

Thank you very much!
#3386 by aimeos
17 Sep 2016, 17:11
If you add a "locale" route or input parameter to your URLs, you can select the language of the shown content:
https://github.com/aimeos/aimeos-laravel/blob/master/src/Aimeos/Shop/Base/Context.php#L179

The best way is configuring a route prefix:
https://aimeos.org/docs/Laravel/Add_locale_selector#Routes

If no locale is available, the first locale in the list of locales (admin interface -> expert mode -> locale tab) is used.