My wish : extract missing translations/messages in Symfony 4, in a controller.
I know it's possible, using command lines.
Extract missing translations with command lines
All my translations come from my templates.
I tried to load the object TranslatorInterface
Exemple :
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Translation\TranslatorInterface;
public function index(TranslatorInterface $translator)
{
dump($translator);
}
If you have an idea, a bundle to purpose ?
Thanks