getTranslation() spawn Eggs

Hi,
when i translate a spawn eggs with the function getTranslation, i don’t have the name of the entity. It’s normal ? or i need to use this :

public static Text getName(ItemStack item){ if(item.get(Keys.SPAWNABLE_ENTITY_TYPE).isPresent()) { return Text.builder(item.getTranslation()) .append(Text.of(" ")) .append(Text.of(item.get(Keys.SPAWNABLE_ENTITY_TYPE).get().getTranslation())) .build(); } return Text.of(item.getTranslation()); }

nobody have a solutions for my problem ?

If all you need is the name of the entity then use DisplayNameData, or the key Keys.DISPLAY_NAME

i don’t need the name of the entity. When i use the function GetTranslation on SpawnEgg i don’t have the name of the entity
Exemple :