Symfony translate with variable doen’t work

  internationalization, php, symfony, translate, twig

I’m trying to translate my app with Symfony translate (5.1.*). I use Symfony 5.1.
Basic translation work fine but I have problem with variable in twig.

When I do
{% trans with {'%name%': 'World'} from 'app' %}Hello %name%{% endtrans %}

It work fine and the result is Hello World. But if I do

php bin/console translation:update --force en
php bin/console cache:clear

for generate translation file, the result while be Hello %name%.

If in the translation file, I delete this reference:

<trans-unit id="yhpYN0i" resname="Hello %name%">
    <source>Hello %name%</source>
    <target>Hello %name%</target>

the result is again Hello World.

Anybody have an idea why translation file work bad with variable please?

Thanks you for your help

Source: Symfony Questions