How to translate a node in a custom block?
You need to pass the loaded nodes/countries through the following so that Drupal marks the best available translation as active, then do not use t() in the template. That is a security risk, you must never pass user input to t().

$country = \Drupal::service('entity.repository')-&gt;getTranslationFromContext($country).


Do that in a loop on $countries for example, or use array_walk()/array_map().