i'm making multi language site that can be run from different hosts.
some hosts can only have one language.
i'm having trouble figuring out how to redirect users from one language to another
for example:
if site.com only has de languge (site.com/de)
and someone tries to go directly to site.com/en i want redirect them to site.com/de straight away.
or how to restrict locale prefix based on host(should be dynamic)?
i think there is a way to do that from service listener but i dont know what to pass to it to be able to redirect from it.