Set locale not only by URI like /en, /ru, /lt but by domain.com, domain.ru, domain.lt
Created 8 years ago by huglesterHello,
can someone point where to search for this kind of functionality?
Thank you
ryanthompson
—
8 years ago
You could - different domains in the domains table can force a locale. I would have to double check to make sure it's hooked up properly.
It was one of those things I knew I would need but didn't need at the time and might have not finished.
maxximus007
—
7 years ago
This would be very interesting for me too.. Can handle it myself, but it's way cleaner if it's working out of the box.
So this is called locale hinting: https://github.com/anomalylabs/streams-platform/blob/master/resources/config/locales.php#L21
By default both sub-domain and URI segment hinting will apply. So
yourdomain.com/lt/*
will triggerlt
locale. Same withlt.yourdomain.com/*
.