Aimeos Language from URL

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
wenotine
Posts: 10
Joined: 17 Sep 2016, 15:17

Aimeos Language from URL

Post 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!

User avatar
aimeos
Administrator
Posts: 7889
Joined: 01 Jan 1970, 00:00

Re: Aimeos Language from URL

Post 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-larave ... t.php#L179

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

If no locale is available, the first locale in the list of locales (admin interface -> expert mode -> locale tab) is used.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply