| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
B |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
use Carbon\CarbonInterface; |
| 27 |
|
| 28 |
return [ |
| 29 |
'year' => ':count anno|:count anni', |
| 30 |
'a_year' => 'un anno|:count anni', |
| 31 |
'y' => ':count anno|:count anni', |
| 32 |
'month' => ':count mese|:count mesi', |
| 33 |
'a_month' => 'un mese|:count mesi', |
| 34 |
'm' => ':count mese|:count mesi', |
| 35 |
'week' => ':count settimana|:count settimane', |
| 36 |
'a_week' => 'una settimana|:count settimane', |
| 37 |
'w' => ':count set.', |
| 38 |
'day' => ':count giorno|:count giorni', |
| 39 |
'a_day' => 'un giorno|:count giorni', |
| 40 |
'd' => ':count g|:count gg', |
| 41 |
'hour' => ':count ora|:count ore', |
| 42 |
'a_hour' => 'un\'ora|:count ore', |
| 43 |
'h' => ':count h', |
| 44 |
'minute' => ':count minuto|:count minuti', |
| 45 |
'a_minute' => 'un minuto|:count minuti', |
| 46 |
'min' => ':count min.', |
| 47 |
'second' => ':count secondo|:count secondi', |
| 48 |
'a_second' => 'alcuni secondi|:count secondi', |
| 49 |
's' => ':count sec.', |
| 50 |
'millisecond' => ':count millisecondo|:count millisecondi', |
| 51 |
'a_millisecond' => 'un millisecondo|:count millisecondi', |
| 52 |
'ms' => ':countms', |
| 53 |
'microsecond' => ':count microsecondo|:count microsecondi', |
| 54 |
'a_microsecond' => 'un microsecondo|:count microsecondi', |
| 55 |
'µs' => ':countµs', |
| 56 |
'ago' => ':time fa', |
| 57 |
'from_now' => static function ($time) { |
| 58 |
return (preg_match('/^\d.+$/', $time) ? 'tra' : 'in')." $time"; |
| 59 |
}, |
| 60 |
'after' => ':time dopo', |
| 61 |
'before' => ':time prima', |
| 62 |
'diff_now' => 'proprio ora', |
| 63 |
'diff_today' => 'Oggi', |
| 64 |
'diff_today_regexp' => 'Oggi(?:\\s+alle)?', |
| 65 |
'diff_yesterday' => 'ieri', |
| 66 |
'diff_yesterday_regexp' => 'Ieri(?:\\s+alle)?', |
| 67 |
'diff_tomorrow' => 'domani', |
| 68 |
'diff_tomorrow_regexp' => 'Domani(?:\\s+alle)?', |
| 69 |
'diff_before_yesterday' => 'l\'altro ieri', |
| 70 |
'diff_after_tomorrow' => 'dopodomani', |
| 71 |
'period_interval' => 'ogni :interval', |
| 72 |
'period_start_date' => 'dal :date', |
| 73 |
'period_end_date' => 'al :date', |
| 74 |
'formats' => [ |
| 75 |
'LT' => 'HH:mm', |
| 76 |
'LTS' => 'HH:mm:ss', |
| 77 |
'L' => 'DD/MM/YYYY', |
| 78 |
'LL' => 'D MMMM YYYY', |
| 79 |
'LLL' => 'D MMMM YYYY HH:mm', |
| 80 |
'LLLL' => 'dddd D MMMM YYYY HH:mm', |
| 81 |
], |
| 82 |
'calendar' => [ |
| 83 |
'sameDay' => '[Oggi alle] LT', |
| 84 |
'nextDay' => '[Domani alle] LT', |
| 85 |
'nextWeek' => 'dddd [alle] LT', |
| 86 |
'lastDay' => '[Ieri alle] LT', |
| 87 |
'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) { |
| 88 |
0 => '[la scorsa] dddd [alle] LT', |
| 89 |
default => '[lo scorso] dddd [alle] LT', |
| 90 |
}, |
| 91 |
'sameElse' => 'L', |
| 92 |
], |
| 93 |
'ordinal' => ':numberº', |
| 94 |
'months' => ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'], |
| 95 |
'months_short' => ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'], |
| 96 |
'weekdays' => ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'], |
| 97 |
'weekdays_short' => ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'], |
| 98 |
'weekdays_min' => ['do', 'lu', 'ma', 'me', 'gi', 've', 'sa'], |
| 99 |
'first_day_of_week' => 1, |
| 100 |
'day_of_first_week_of_year' => 4, |
| 101 |
'list' => [', ', ' e '], |
| 102 |
'ordinal_words' => [ |
| 103 |
'of' => 'di', |
| 104 |
'first' => 'primo', |
| 105 |
'second' => 'secondo', |
| 106 |
'third' => 'terzo', |
| 107 |
'fourth' => 'quarto', |
| 108 |
'fifth' => 'quinto', |
| 109 |
'last' => 'ultimo', |
| 110 |
], |
| 111 |
]; |