lkt / translations-to-csv
Export LKT Translations to CSV
1.0.0
2022-11-07 17:43 UTC
Requires
- php: >=7.2.0
- lkt/translations: ^1.2
- phpoffice/phpspreadsheet: ^1.25
Requires (Dev)
- phpunit/phpunit: ^7.5.20
- symfony/var-dumper: ^5.0
README
Installation
composer require lkt/translations-to-csv
Usage
All translations
use Lkt\Translations\TranslationsToCSV; $spreadsheet = TranslationsToCSV::createSpreadSheet('Sample', 'Exported sample'); $writer = TranslationsToCSV::getAllTranslationsCSV($spreadsheet); TranslationsToCSV::writeToOutput($writer);
Missed translations
use Lkt\Translations\TranslationsToCSV; $spreadsheet = TranslationsToCSV::createSpreadSheet('Sample', 'Exported sample'); $writer = TranslationsToCSV::getMissedTranslationsCSV($spreadsheet); TranslationsToCSV::writeToOutput($writer);
Translations not translated
use Lkt\Translations\TranslationsToCSV; $spreadsheet = TranslationsToCSV::createSpreadSheet('Sample', 'Exported sample'); $writer = TranslationsToCSV::getTranslationsNotTranslatedCSV($spreadsheet); TranslationsToCSV::writeToOutput($writer);