Skip to content

Instantly share code, notes, and snippets.

View lruozzi9's full-sized avatar
👨‍💻
Developing

Lorenzo Ruozzi lruozzi9

👨‍💻
Developing
View GitHub Profile
@lruozzi9
lruozzi9 / exportSymfonyMessagesToCSV.php
Last active July 26, 2022 15:31
Scripts to export and import messages to a CSV file to simplify the data entry for non-developer people.
<?php
declare(strict_types=1);
use League\Csv\CannotInsertRecord;
use League\Csv\InvalidArgument;
use League\Csv\Writer;
use Symfony\Component\Yaml\Yaml;
const ORIGINAL_MESSAGES_FILE_PATH = 'translations/messages+intl-icu.en.yaml';