I'm trying to display something in the product page if a YES/NO attribute is set to YES. Actually the only way I found to do this in multilingual magento 2.1.8 is :
if($_product->getAttributeText('MY_ATTRIBUTE') == 'Oui' || $_product->getAttributeText('MY_ATTRIBUTE') == 'Yes') {
echo "Set to Yes";
} else {
echo "Set to No";
};
This method needs to test the YES/NO answer for every language but I'm pretty sure there's a better way to do this...
Thanks for your help