| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
B |
| 17 |
|
| 18 |
|
| 19 |
nov |
| 20 |
ül |
| 21 |
|
| 22 |
|
| 23 |
return [ |
| 24 |
'year' => ':count il', |
| 25 |
'a_year' => '{1}bir il|[-Inf,Inf]:count il', |
| 26 |
'y' => ':count il', |
| 27 |
'month' => ':count ay', |
| 28 |
'a_month' => '{1}bir ay|[-Inf,Inf]:count ay', |
| 29 |
'm' => ':count ay', |
| 30 |
'week' => ':count həftə', |
| 31 |
'a_week' => '{1}bir həftə|[-Inf,Inf]:count həftə', |
| 32 |
'w' => ':count h.', |
| 33 |
'day' => ':count gün', |
| 34 |
'a_day' => '{1}bir gün|[-Inf,Inf]:count gün', |
| 35 |
'd' => ':count g.', |
| 36 |
'hour' => ':count saat', |
| 37 |
'a_hour' => '{1}bir saat|[-Inf,Inf]:count saat', |
| 38 |
'h' => ':count s.', |
| 39 |
'minute' => ':count dəqiqə', |
| 40 |
'a_minute' => '{1}bir dəqiqə|[-Inf,Inf]:count dəqiqə', |
| 41 |
'min' => ':count d.', |
| 42 |
'second' => ':count saniyə', |
| 43 |
'a_second' => '{1}birneçə saniyə|[-Inf,Inf]:count saniyə', |
| 44 |
's' => ':count san.', |
| 45 |
'ago' => ':time əvvəl', |
| 46 |
'from_now' => ':time sonra', |
| 47 |
'after' => ':time sonra', |
| 48 |
'before' => ':time əvvəl', |
| 49 |
'diff_now' => 'indi', |
| 50 |
'diff_today' => 'bugün', |
| 51 |
'diff_today_regexp' => 'bugün(?:\\s+saat)?', |
| 52 |
'diff_yesterday' => 'dünən', |
| 53 |
'diff_tomorrow' => 'sabah', |
| 54 |
'diff_tomorrow_regexp' => 'sabah(?:\\s+saat)?', |
| 55 |
'diff_before_yesterday' => 'srağagün', |
| 56 |
'diff_after_tomorrow' => 'birisi gün', |
| 57 |
'period_recurrences' => ':count dəfədən bir', |
| 58 |
'period_interval' => 'hər :interval', |
| 59 |
'period_start_date' => ':date tarixindən başlayaraq', |
| 60 |
'period_end_date' => ':date tarixinədək', |
| 61 |
'formats' => [ |
| 62 |
'LT' => 'HH:mm', |
| 63 |
'LTS' => 'HH:mm:ss', |
| 64 |
'L' => 'DD.MM.YYYY', |
| 65 |
'LL' => 'D MMMM YYYY', |
| 66 |
'LLL' => 'D MMMM YYYY HH:mm', |
| 67 |
'LLLL' => 'dddd, D MMMM YYYY HH:mm', |
| 68 |
], |
| 69 |
'calendar' => [ |
| 70 |
'sameDay' => '[bugün saat] LT', |
| 71 |
'nextDay' => '[sabah saat] LT', |
| 72 |
'nextWeek' => '[gələn həftə] dddd [saat] LT', |
| 73 |
'lastDay' => '[dünən] LT', |
| 74 |
'lastWeek' => '[keçən həftə] dddd [saat] LT', |
| 75 |
'sameElse' => 'L', |
| 76 |
], |
| 77 |
'ordinal' => static function ($number) { |
| 78 |
if ($number === 0) { |
| 79 |
return "$number-ıncı"; |
| 80 |
} |
| 81 |
|
| 82 |
static $suffixes = [ |
| 83 |
1 => '-inci', |
| 84 |
5 => '-inci', |
| 85 |
8 => '-inci', |
| 86 |
70 => '-inci', |
| 87 |
80 => '-inci', |
| 88 |
2 => '-nci', |
| 89 |
7 => '-nci', |
| 90 |
20 => '-nci', |
| 91 |
50 => '-nci', |
| 92 |
3 => '-üncü', |
| 93 |
4 => '-üncü', |
| 94 |
100 => '-üncü', |
| 95 |
6 => '-ncı', |
| 96 |
9 => '-uncu', |
| 97 |
10 => '-uncu', |
| 98 |
30 => '-uncu', |
| 99 |
60 => '-ıncı', |
| 100 |
90 => '-ıncı', |
| 101 |
]; |
| 102 |
|
| 103 |
$lastDigit = $number % 10; |
| 104 |
|
| 105 |
return $number.($suffixes[$lastDigit] ?? $suffixes[$number % 100 - $lastDigit] ?? $suffixes[$number >= 100 ? 100 : -1] ?? ''); |
| 106 |
}, |
| 107 |
'meridiem' => static function ($hour) { |
| 108 |
if ($hour < 4) { |
| 109 |
return 'gecə'; |
| 110 |
} |
| 111 |
if ($hour < 12) { |
| 112 |
return 'səhər'; |
| 113 |
} |
| 114 |
if ($hour < 17) { |
| 115 |
return 'gündüz'; |
| 116 |
} |
| 117 |
|
| 118 |
return 'axşam'; |
| 119 |
}, |
| 120 |
'months' => ['yanvar', 'fevral', 'mart', 'aprel', 'may', 'iyun', 'iyul', 'avqust', 'sentyabr', 'oktyabr', 'noyabr', 'dekabr'], |
| 121 |
'months_short' => ['yan', 'fev', 'mar', 'apr', 'may', 'iyn', 'iyl', 'avq', 'sen', 'okt', 'noy', 'dek'], |
| 122 |
'weekdays' => ['bazar', 'bazar ertəsi', 'çərşənbə axşamı', 'çərşənbə', 'cümə axşamı', 'cümə', 'şənbə'], |
| 123 |
'weekdays_short' => ['baz', 'bze', 'çax', 'çər', 'cax', 'cüm', 'şən'], |
| 124 |
'weekdays_min' => ['bz', 'be', 'ça', 'çə', 'ca', 'cü', 'şə'], |
| 125 |
'first_day_of_week' => 1, |
| 126 |
'day_of_first_week_of_year' => 1, |
| 127 |
'list' => [', ', ' və '], |
| 128 |
]; |