--- /dev/null
+/**
+ * Implements hook_entity_operation_alter().
+ */
+function {{ machine_name }}_entity_operation_alter(array &$operations, \Drupal\Core\Entity\EntityInterface $entity) {
+ // Alter the title and weight.
+ $operations['translate']['title'] = t('Translate @entity_type', [
+ '@entity_type' => $entity->getEntityTypeId(),
+ ]);
+ $operations['translate']['weight'] = 99;
+}