How to load a node title of different language? In my case the noads are stored in three different languages. How can add a condition, where I specify the language for the title that need to be loaded? 

foreach($references as $reference){
    if($node = Node::load($reference-&gt;nid)){
      $url = Url::fromRoute('entity.node.canonical', array('node' =&gt; $node-&gt;id()))-&gt;toString();
      $link = '&lt;a href="'.$url.'"&gt;'.$this-&gt;t($node-&gt;getTitle()).'&lt;/a&gt;';
      $render .= '&lt;li&gt;'.$link.'&lt;/li&gt;';
    }


Where $references is an array of nids.
You can load the translation separately with ContentEntityBase::getTranslation, e.g.:

if ($node-&gt;hasTranslation('es')) {
  $translation = $node-&gt;getTranslation('es');
  $translated_title = $translation-&gt;label();
}