Skip to content

Instantly share code, notes, and snippets.

@lukepass
lukepass / ConvertTranslationsCommand.php
Created December 14, 2022 13:22
Symfony console command to convert from translation files from XLIFF to CSV
<?php
namespace App\Command;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;