diff --git a/src/Plugin/Field/FieldFormatter/TypedRelationFormatter.php b/src/Plugin/Field/FieldFormatter/TypedRelationFormatter.php index 2ebce91..dc645ee 100644 --- a/src/Plugin/Field/FieldFormatter/TypedRelationFormatter.php +++ b/src/Plugin/Field/FieldFormatter/TypedRelationFormatter.php @@ -29,7 +29,7 @@ public function viewElements(FieldItemListInterface $items, $langcode) { $rel_types = $item->getRelTypes(); $rel_type = isset($rel_types[$item->rel_type]) ? $rel_types[$item->rel_type] : $item->rel_type; if (!empty($rel_type)) { - $elements[$delta]['#prefix'] = $rel_type . ': '; + $elements[$delta]['#prefix'] = $this->t($rel_type) . ': '; } }