Get current country pathPrefix
You can call PathProcessorManager::processOutbound() for the internal path and you get the path alias and the prefix at the same time:

$options = ['prefix' =&gt; ''];
$path = \Drupal::service('path_processor_manager')-&gt;processOutbound('/node/1', $options);
$prefix = $options['prefix'];