Languages switch in combination with duplicate page methode

Hello,

i wanna finalize the language switcher of our page. The language switcher is integrate in a globel symbol navigation and im searching for a custom code that connecting the pages always with the right page. We used the methode that we are duplicating our pages and making two versions DE/EN.

Is there any solution there?

As Example:

Switcher: DE / EN

domain/
domain/en/home

domain/impressum
domain/en/imprint

I would be happy, if someone can help mi out.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)