lkt/translations-to-csv

Export LKT Translations to CSV

1.0.0 2022-11-07 17:43 UTC

This package is auto-updated.

Last update: 2025-03-24 15:03:33 UTC


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);