mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
Add localization settings
This commit is contained in:
committed by
Gregor Vostrak
parent
3c9160a08a
commit
ae00fdb0e9
@@ -2,6 +2,11 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use App\Enums\CurrencyFormat;
|
||||
use App\Enums\DateFormat;
|
||||
use App\Enums\IntervalFormat;
|
||||
use App\Enums\NumberFormat;
|
||||
use App\Enums\TimeFormat;
|
||||
use App\Enums\Weekday;
|
||||
|
||||
return [
|
||||
@@ -16,4 +21,42 @@ return [
|
||||
Weekday::Sunday->value => 'Sunday',
|
||||
],
|
||||
|
||||
'number_format' => [
|
||||
NumberFormat::ThousandsPointDecimalComma->value => '1.111,11',
|
||||
NumberFormat::ThousandsCommaDecimalPoint->value => '1,111.11',
|
||||
NumberFormat::ThousandsSpaceDecimalComma->value => '1 111,11',
|
||||
NumberFormat::ThousandsSpaceDecimalPoint->value => '1 111.11',
|
||||
NumberFormat::ThousandsApostropheDecimalPoint->value => '1\'111.11',
|
||||
],
|
||||
|
||||
'date_format' => [
|
||||
DateFormat::PointSeperatedDMYYYY->value => 'D.M.YYYY',
|
||||
DateFormat::SlashSeperatedMMDDYYYY->value => 'MM/DD/YYYY',
|
||||
DateFormat::SlashSeperatedDDMMYYYY->value => 'DD/MM/YYYY',
|
||||
DateFormat::HyphenSeperatedDDMMYYY->value => 'DD-MM-YYYY',
|
||||
DateFormat::HyphenSeperatedMMDDDYYYY->value => 'MM-DD-YYYY',
|
||||
DateFormat::HyphenSeperatedYYYYMMDD->value => 'YYYY-MM-DD',
|
||||
],
|
||||
|
||||
'time_format' => [
|
||||
TimeFormat::TwelveHours->value => '12-hour clock',
|
||||
TimeFormat::TwentyFourHours->value => '24-hour clock',
|
||||
],
|
||||
|
||||
'interval_format' => [
|
||||
IntervalFormat::Decimal->value => 'Decimal',
|
||||
IntervalFormat::HoursMinutes->value => '12h 3m',
|
||||
IntervalFormat::HoursMinutesColonSeperated->value => '12:03',
|
||||
IntervalFormat::HoursMinutesSecondsColonSeperated->value => '12:03:45',
|
||||
],
|
||||
|
||||
'currency_format' => [
|
||||
CurrencyFormat::ISOCodeBeforeWithSpace->value => 'EUR 111',
|
||||
CurrencyFormat::ISOCodeAfterWithSpace->value => '111 EUR',
|
||||
CurrencyFormat::SymbolBefore->value => '€111',
|
||||
CurrencyFormat::SymbolAfter->value => '111€',
|
||||
CurrencyFormat::SymbolBeforeWithSpace->value => '€ 111',
|
||||
CurrencyFormat::SymbolAfterWithSpace->value => '111 €',
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user