Redirect to translated handle after changing language in Hydrogen

Topic summary

Main issue: In a Shopify Hydrogen app with a language switcher and translated collection handles, switching the site language does not update the URL to the localized (translated) handle.

Context: The user has collections translated (e.g., German to English). In Dawn theme this behavior works automatically, but in Hydrogen the URL keeps the original handle after a locale switch.

Example URLs:

  • Current (DE): /collections/elektronik-technik
  • After switch (EN, undesired): /en/collections/elektronik-technik
  • Desired (EN): /en/collections/electronics-technology

Ask: How to implement a redirect so that, upon language change, the app navigates to the corresponding translated handle in Hydrogen.

Status: No responses or solution yet; the question remains open.

Summarized with AI on December 18. AI used: gpt-5.

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!