- automobile German: auto
- automobile English: car
- truck German: laster
- truck English: truck
- automobile German: example.com/de/auto
- automobile English: example.com/en/car
- truck German: example.com/de/laster
- truck English: example.com/en/truck
I am able to get the store view code in the url but I am not able to get the language tag in the url. How can I build the aforementioned urls in Magento 2?
Edit: From my point of view, this is not a duplicate since I don't want to have multiple websites. I want one website and multiple stores with store codes in the url AND the language tag in the url.