diff --git a/app/code/Magento/Catalog/Block/Product/View/Attributes.php b/app/code/Magento/Catalog/Block/Product/View/Attributes.php index 4fb047d7a922b..8277d2b2dfa29 100644 --- a/app/code/Magento/Catalog/Block/Product/View/Attributes.php +++ b/app/code/Magento/Catalog/Block/Product/View/Attributes.php @@ -12,6 +12,7 @@ namespace Magento\Catalog\Block\Product\View; use Magento\Catalog\Model\Product; +use Magento\Framework\Phrase; use Magento\Framework\Pricing\PriceCurrencyInterface; class Attributes extends \Magento\Framework\View\Element\Template @@ -85,8 +86,8 @@ public function getAdditionalData(array $excludeAttr = []) } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) { $value = $this->priceCurrency->convertAndFormat($value); } - - if (is_string($value) && strlen($value)) { + + if ($value instanceof Phrase || (is_string($value) && strlen($value))) { $data[$attribute->getAttributeCode()] = [ 'label' => __($attribute->getStoreLabel()), 'value' => $value,