'Symfony 6 translation word combinations

How to properly translate symfony per entity/controller (based on parameters one can see in profiler)?

I have installed EasyAdminBundle4 and translation module. I can translate words with messages.language.yaml files like:

# translations/
Dashboard: translated dashboard
User: user2

But how to translate word combinations like "create user"? EasyAdmin translates it per word, I cannot locate the translation file, VS Code says those words don't exist in my project. But they are translated, so they must be somewhere. Where?

In profiler I see messages with ids. For example action.edit with parameter entity "User" I want to be "Edit user entity", for entity Category I want it to be "Some action with category". How do I achieve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source