W3cubDocs

/Symfony 4.1

TranslationWriterInterface

interface TranslationWriterInterface

TranslationWriter writes translation messages.

Methods

write(MessageCatalogue $catalogue, string $format, array $options = array())

Writes translation from the catalogue according to the selected format.

Details

write(MessageCatalogue $catalogue, string $format, array $options = array())

Writes translation from the catalogue according to the selected format.

Parameters

MessageCatalogue $catalogue The message catalogue to write
string $format The format to use to dump the messages
array $options Options that are passed to the dumper

Exceptions

InvalidArgumentException

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Writer/TranslationWriterInterface.html