Access callback for the translation overview page.
\Drupal\Core\Entity\EntityInterface $entity: The entity whose translation overview should be displayed.
function translation_entity_translate_access(EntityInterface $entity) {
$entity_type = $entity
->entityType();
return empty($entity
->language()->locked) && language_multilingual() && translation_entity_enabled($entity_type, $entity
->bundle()) && (user_access('translate any entity') || user_access("translate {$entity_type} entities"));
}