src/Zicht/Bundle/FrameworkExtraBundle/Twig/Extension.php
public function transMultiple($messages, $parameters = [], $domain = null, $locale = null)
    {
        foreach ($messages as $message) {
            yield  $this->translator->trans($message, $parameters, $domain, $locale);
        }
    }
public function transMultiple($messages, $parameters = [], $domain = null, $locale = null)
    {
        foreach ($messages as $message) {
            yield  $this->translator->trans($message, $parameters, $domain, $locale);
        }
    }
public function transMultiple ( $ messages , $ parameters = [ ] , $ domain = null , $ locale = null ) { foreach ( $ messages as $ message ) { yield $ this -> translator -> trans ( $ message , $ parameters , $ domain , $ locale ) ; } }
Translate multiple strings

@param array $messages
@param array $parameters
@param null $domain
@param null $locale
@return \Generator
Translate multiple strings