mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-19 21:01:13 +00:00
3878e325f1
This isn't a perfect implementation yet: but it's enough to take a look at the memory usage and speed.
23 lines
567 B
PHP
23 lines
567 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
use PhpOffice\PhpSpreadsheet\Calculation\Calculation;
|
|
use PhpOffice\PhpSpreadsheetInfra\LocaleGenerator;
|
|
|
|
require_once 'vendor/autoload.php';
|
|
|
|
try {
|
|
$phpSpreadsheetFunctions = Calculation::getInstance()->getFunctions();
|
|
|
|
$localeGenerator = new LocaleGenerator(
|
|
realpath(__DIR__ . '/../src/PhpSpreadsheet/Calculation/locale/'),
|
|
'Translations.xlsx',
|
|
$phpSpreadsheetFunctions,
|
|
true
|
|
);
|
|
$localeGenerator->generateLocales();
|
|
} catch (\Exception $e) {
|
|
fwrite(STDERR, (string) $e);
|
|
exit(1);
|
|
}
|