Standard yml file with translations of the form:
symfony: is: great: Symfony is great amazing: Symfony is amazing has: bundles: Symfony has bundles user: login: Login I get a list of all translations in the controller as follows:
$translated = $this->container->get('translator') ->getCatalogue($language) ->all(); The question is how to get only a certain part of the translation, i.e. as an example only symfony.is translations:
[ 'symfony.is.great' => 'Symfony is great', 'symfony.is.amazing' => 'Symfony is amazing' ] 