Menu entry to switch the language

what I have prepared so far is:

  1. setting names for all folders for both languages in the menu bar
  2. moved content to /en/ and /de/

how can I create the link in the menu?
If I create a menu entry like this it jumps to the defined URL instead of only translating

[[languages.en.menu.main]]
name = "DE"
url = "/"
weight = 6

2 posts were merged into an existing topic: Language switcher in menu