Stores:
- automobile
- truck
Languages:
- German
- English
StoreViews Codes:
- automobile German: auto
- automobile English: car
- truck German: laster
- truck English: truck
Desired urls:
- automobile German: example.com/de/auto
- automobile English: example.com/en/car
- truck German: example.com/de/laster
- truck English: example.com/en/truck
Problem
I can 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.
example.com/de/