src/i18n/Messages/YamlWriter.php
public function getYaml($messages, $locale)
    {
        $entities = $this->denormaliseMessages($messages);
        $content = $this->getDumper()->dump([
            $locale => $entities
        ], 99);
        return $content;
    }
public function getYaml($messages, $locale)
    {
        $entities = $this->denormaliseMessages($messages);
        $content = $this->getDumper()->dump([
            $locale => $entities
        ], 99);
        return $content;
    }
public function getYaml ( $ messages , $ locale ) { $ entities = $ this -> denormaliseMessages ( $ messages ) ; $ content = $ this -> getDumper ( ) -> dump ( [ $ locale => $ entities ] , 99 ) ; return $ content ; }
Convert messages to yml ready to write

@param array $messages
@param string $locale
@return string
Convert messages to yml ready to write