Redirect to translated handle after changing language in Hydrogen

Redirect to translated handle after changing language in Hydrogen

elbacko
Visitor
3 0 0

Hello!

I set up a hydrogen app and implemented a language switcher. I have translated the handles for my collections. My problem now is that i can not figure out how to redirect to the translated handle (url) after changing language.

 

Example:

My url is http://localhost:3000/collections/elektronik-technik

I switch language to English and my url is http://localhost:3000/en/collections/elektronik-technik

What i want to achieve is this url http://localhost:3000/en/collections/electronics-technology

 

How can this be done? I can see that it is working if i use the Dawn theme so it has to be possible.

Thanks in advance!

Replies 0 (0)