I'm trying to set labels for attributes for each language. For example I want to translate Price (in Stores > Attributes > Product > Price > Manage labels) for all the store views.
However, I can't seem to find a way to do this via UpgradeData.php. I don't want to directly inject with an SQL query. Looking for something like this, but it doesn't work:
if (version_compare($context->getVersion(), '0.0.xx') < 0) {
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$attributeId = $eavSetup->getAttributeId('catalog_product', 'price');
$options = [
'values' => [
'Dutch(NL)' => 'Prijs',
],
'attribute_id' => $attributeId,
];
$eavSetup->addAttributeOption($options);
}