privates['translation.writer'] = $instance = new \Symfony\Component\Translation\Writer\TranslationWriter(); $instance->addDumper('php', new \Symfony\Component\Translation\Dumper\PhpFileDumper()); $instance->addDumper('xlf', new \Symfony\Component\Translation\Dumper\XliffFileDumper()); $instance->addDumper('po', new \Symfony\Component\Translation\Dumper\PoFileDumper()); $instance->addDumper('mo', new \Symfony\Component\Translation\Dumper\MoFileDumper()); $instance->addDumper('yml', new \Symfony\Component\Translation\Dumper\YamlFileDumper()); $instance->addDumper('yaml', new \Symfony\Component\Translation\Dumper\YamlFileDumper('yaml')); $instance->addDumper('ts', new \Symfony\Component\Translation\Dumper\QtFileDumper()); $instance->addDumper('csv', new \Symfony\Component\Translation\Dumper\CsvFileDumper()); $instance->addDumper('ini', new \Symfony\Component\Translation\Dumper\IniFileDumper()); $instance->addDumper('json', new \Symfony\Component\Translation\Dumper\JsonFileDumper()); $instance->addDumper('res', new \Symfony\Component\Translation\Dumper\IcuResFileDumper()); return $instance; } }