Routing for controller with multilingual enabled
The language is detected and the prefix removed before routing. So you have a static route without parameter and in the controller you can get the prefix from the language manager:

  $langcode = $this-&gt;languageManager()-&gt;getCurrentLanguage()-&gt;getId();