| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
B |
| 15 |
|
| 16 |
|
| 17 |
o |
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
use Carbon\CarbonInterface; |
| 22 |
|
| 23 |
return [ |
| 24 |
'year' => ':count ano|:count anos', |
| 25 |
'a_year' => 'un ano|:count anos', |
| 26 |
'y' => ':count a.', |
| 27 |
'month' => ':count mes|:count meses', |
| 28 |
'a_month' => 'un mes|:count meses', |
| 29 |
'm' => ':count mes.', |
| 30 |
'week' => ':count semana|:count semanas', |
| 31 |
'a_week' => 'unha semana|:count semanas', |
| 32 |
'w' => ':count sem.', |
| 33 |
'day' => ':count día|:count días', |
| 34 |
'a_day' => 'un día|:count días', |
| 35 |
'd' => ':count d.', |
| 36 |
'hour' => ':count hora|:count horas', |
| 37 |
'a_hour' => 'unha hora|:count horas', |
| 38 |
'h' => ':count h.', |
| 39 |
'minute' => ':count minuto|:count minutos', |
| 40 |
'a_minute' => 'un minuto|:count minutos', |
| 41 |
'min' => ':count min.', |
| 42 |
'second' => ':count segundo|:count segundos', |
| 43 |
'a_second' => 'uns segundos|:count segundos', |
| 44 |
's' => ':count seg.', |
| 45 |
'ago' => 'hai :time', |
| 46 |
'from_now' => static function ($time) { |
| 47 |
if (str_starts_with($time, 'un')) { |
| 48 |
return "n$time"; |
| 49 |
} |
| 50 |
|
| 51 |
return "en $time"; |
| 52 |
}, |
| 53 |
'diff_now' => 'agora', |
| 54 |
'diff_today' => 'hoxe', |
| 55 |
'diff_today_regexp' => 'hoxe(?:\\s+ás)?', |
| 56 |
'diff_yesterday' => 'onte', |
| 57 |
'diff_yesterday_regexp' => 'onte(?:\\s+á)?', |
| 58 |
'diff_tomorrow' => 'mañá', |
| 59 |
'diff_tomorrow_regexp' => 'mañá(?:\\s+ás)?', |
| 60 |
'after' => ':time despois', |
| 61 |
'before' => ':time antes', |
| 62 |
'formats' => [ |
| 63 |
'LT' => 'H:mm', |
| 64 |
'LTS' => 'H:mm:ss', |
| 65 |
'L' => 'DD/MM/YYYY', |
| 66 |
'LL' => 'D [de] MMMM [de] YYYY', |
| 67 |
'LLL' => 'D [de] MMMM [de] YYYY H:mm', |
| 68 |
'LLLL' => 'dddd, D [de] MMMM [de] YYYY H:mm', |
| 69 |
], |
| 70 |
'calendar' => [ |
| 71 |
'sameDay' => static function (CarbonInterface $current) { |
| 72 |
return '[hoxe '.($current->hour !== 1 ? 'ás' : 'á').'] LT'; |
| 73 |
}, |
| 74 |
'nextDay' => static function (CarbonInterface $current) { |
| 75 |
return '[mañá '.($current->hour !== 1 ? 'ás' : 'á').'] LT'; |
| 76 |
}, |
| 77 |
'nextWeek' => static function (CarbonInterface $current) { |
| 78 |
return 'dddd ['.($current->hour !== 1 ? 'ás' : 'á').'] LT'; |
| 79 |
}, |
| 80 |
'lastDay' => static function (CarbonInterface $current) { |
| 81 |
return '[onte '.($current->hour !== 1 ? 'á' : 'a').'] LT'; |
| 82 |
}, |
| 83 |
'lastWeek' => static function (CarbonInterface $current) { |
| 84 |
return '[o] dddd [pasado '.($current->hour !== 1 ? 'ás' : 'á').'] LT'; |
| 85 |
}, |
| 86 |
'sameElse' => 'L', |
| 87 |
], |
| 88 |
'ordinal' => ':numberº', |
| 89 |
'months' => ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro'], |
| 90 |
'months_short' => ['xan.', 'feb.', 'mar.', 'abr.', 'mai.', 'xuñ.', 'xul.', 'ago.', 'set.', 'out.', 'nov.', 'dec.'], |
| 91 |
'weekdays' => ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado'], |
| 92 |
'weekdays_short' => ['dom.', 'lun.', 'mar.', 'mér.', 'xov.', 'ven.', 'sáb.'], |
| 93 |
'weekdays_min' => ['do', 'lu', 'ma', 'mé', 'xo', 've', 'sá'], |
| 94 |
'first_day_of_week' => 1, |
| 95 |
'day_of_first_week_of_year' => 4, |
| 96 |
'list' => [', ', ' e '], |
| 97 |
'meridiem' => ['a.m.', 'p.m.'], |
| 98 |
]; |