I want to save a supertable with different infos on two different siteId of an entry. It works fine with all the other fields i'm using: the value is saved separately to each different language. But with the supertable, the info is saved, but it overrides both languages with the new info.. Is there a parameter we need to add or something? I'm using this:
$field = Craft::$app->getFields()->getFieldByHandle($handle);
$blockTypes = SuperTable::$plugin->getService()->getBlockTypesByFieldId($field->id);
$blockType = $blockTypes[0];
$superTableData['new1'] = [
'type' => $blockType->id,
'enabled' => true,
'fields' => [
'field1' => 'value',
'field2' => 'value',
]
];
thanks!