How to get attribute name instead of slug in variation? : <p>I need to get attribute from woocommerce product variation. </p>

<pre><code>$terms = get_post_meta($value['variation_id'], 'attribute_pa_color', true);
</code></pre>

<p>This code is giving me an attribute slug instead of name. How can I get attribute name?</p>

<p>Thank you so much in advance!</p>
