Is there a way to get the language from a routeMatch in Drupal 8?
E.g. if I do:
$route_match = \Drupal::routeMatch();
Currently I can't find any language information in the returned object. It looks like as if all language information has been stripped out, and the route object know's nothing about the language it is in.
I've looked into using the language manager, but can't find a way to combine this with the routeMatch class.
Scenario: I'm writing my own AccessInterface class, and want to hide entities from certain languages. I need the information of the language for the route (and not the site's current language).