How to render Entity Reference fields in the current language I am trying to render fields from an entity reference in a twig template but they are displaying in the default language instead of the selected one. My twig code:

{% for location in node.field_locations %}
  &lt;div class="home-location"&gt;
    &lt;div class="wording"&gt;
      {{ location.entity.title.value }}
       &lt;span&gt;{{ location.entity.field_sub_title.value }}&lt;/span&gt;
     &lt;/div&gt;
   &lt;/div&gt;
 {% endfor %}
You can use the following procedure for translated fields 

Add language in your THEMENAME.theme

function dru8_preprocess_node(&amp;$vars) {
  $language = \Drupal::languageManager()-&gt;getCurrentLanguage()-&gt;getId();
  $vars['lang'] = $language;
}


And in your node.html.twig to get translated fields 

{% if node.field_stories.entity.hastranslation(lang) %}
  &lt;p&gt;{{ node.field_stories.entity.translation(lang).title.value }}&lt;/p&gt;
{% else %}
  &lt;p&gt;No translation&lt;p/&gt;
{% endif %}


Thus in your case you will need 

{% for location in node.field_locations %}
  &lt;div class="home-location"&gt;
    &lt;div class="wording"&gt;
      {{ location.entity.translation(lang).title.value }}
       &lt;span&gt;{{ location.entity.translation(lang).field_sub_title.value }}&lt;/span&gt;
     &lt;/div&gt;
   &lt;/div&gt;
 {% endfor %}