How can I print the translated entity title in a template? I have a reference field for nodes and I have a field template to render the the fields.
{{ item.entity.title.value }}

But I can't get the translated title of the node.
Can someone help?
If you configure the reference field to display the entity title it should be translated automatically, as @leymannx commented. But if you get the title from the entity directly you have to make sure the entity is in the correct language. If you don't want to use PHP you can do this with the help of Twig Tweak:
{{ item.entity|translation.title.value }}

See https://git.drupalcode.org/project/twig_tweak/-/blob/3.x/docs/cheat-sheet.md#entity-translation