Problem/Motivation
The \Drupal\commerce_product\Plugin\Field\FieldWidget\ProductVariationAttributesWidget::formElement method invokes $product->getVariations() directly. However, in massageFormValues (and others) we invoke the loadEnabled method on the variation storage.
By not using this pattern in the formElement method we're generating attribute values which are invalid (and can mess up translations.)
Proposed resolution
Change formElement to use loadEnabled
Comments
Comment #2
mglamanSomething is wrong with my code. We already have this.