CodeExplorer resetExistingTranslations example
protected function processTranslatableData($name, array
$config, array
$translatable,
$langcode, array
$reference_config =
[]) { foreach ($translatable as $key =>
$item) { if (!
isset($config[$key])) { if (isset($reference_config[$key])) { $this->
resetExistingTranslations($name,
$translatable[$key],
$reference_config[$key],
$langcode);
} continue;
} if (is_array($item)) { $reference_config_item =
$reference_config[$key] ??
[];
$this->
processTranslatableData($name,
$config[$key],
$item,
$langcode,
$reference_config_item);
} else { $this->
saveCustomizedTranslation($name,
$item->
getUntranslatedString(),
$item->
getOption('context'
),
$config[$key],
$langcode);
} } }