title: Using Polylang to return terms in currently selected language
body: <p>I'm using this basic loop to retrieve the category name:</p>
  
  <pre><code>$terms = get_the_terms( $product_id, 'product_cat' );
  //var_dump ($terms);
  if($items){
      foreach ( $terms as $term ) {
          //$cat_id = $term-&gt;id;
          $cat_name = $term-&gt;name; //returns category name, but only in original language booking was made in.
          }
      }
  }
  </code></pre>
  
  <p>I'm returning these results in a custom WooCommerce dashboard.php template, in order to display the client order history. The code works but it returns the category name ($cat_name) but not in the currently selected language, only in the language the booking was originally made in. The function I have tried to use is pll_get_term() but I am not sure of the best way of implementing it. </p>
  
  <p>Thanks for looking. </p>