Debian Codegraph @

lib/3rdParty/composer/nesbot/carbon/src/Carbon/Lang/uk.php

raw symbols SCIP
1 <?php
2
3 /**
4 * This file is part of the Carbon package.
5 *
6 * (c) Brian Nesbitt <[email protected]>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 use Carbon\CarbonInterface;
13
14 $processHoursFunction = static function (CarbonInterface $date, string $format) {
15 return $format.'о'.($date->hour === 11 ? 'б' : '').'] LT';
16 };
17
18 /*
19 * Authors:
20 * - Kunal Marwaha
21 * - Josh Soref
22 * - François B
23 * - Tim Fish
24 * - Serhan Apaydın
25 * - Max Mykhailenko
26 * - JD Isaacks
27 * - Max Kovpak
28 * - AucT
29 * - Philippe Vaucher
30 * - Ilya Shaplyko
31 * - Vadym Ievsieiev
32 * - Denys Kurets
33 * - Igor Kasyanchuk
34 * - Tsutomu Kuroda
35 * - tjku
36 * - Max Melentiev
37 * - Oleh
38 * - epaminond
39 * - Juanito Fatas
40 * - Vitalii Khustochka
41 * - Akira Matsuda
42 * - Christopher Dell
43 * - Enrique Vidal
44 * - Simone Carletti
45 * - Aaron Patterson
46 * - Andriy Tyurnikov
47 * - Nicolás Hock Isaza
48 * - Iwakura Taro
49 * - Andrii Ponomarov
50 * - alecrabbit
51 * - vystepanenko
52 * - AlexWalkerson
53 * - Andre Havryliuk (Andrend)
54 * - Max Datsenko (datsenko-md)
55 */
56 return [
57 'year' => ':count рік|:count роки|:count років',
58 'y' => ':countр|:countрр|:countрр',
59 'a_year' => '{1}рік|:count рік|:count роки|:count років',
60 'month' => ':count місяць|:count місяці|:count місяців',
61 'm' => ':countм',
62 'a_month' => '{1}місяць|:count місяць|:count місяці|:count місяців',
63 'week' => ':count тиждень|:count тижні|:count тижнів',
64 'w' => ':countт',
65 'a_week' => '{1}тиждень|:count тиждень|:count тижні|:count тижнів',
66 'day' => ':count день|:count дні|:count днів',
67 'd' => ':countд',
68 'a_day' => '{1}день|:count день|:count дні|:count днів',
69 'hour' => ':count година|:count години|:count годин',
70 'h' => ':countг',
71 'a_hour' => '{1}година|:count година|:count години|:count годин',
72 'minute' => ':count хвилина|:count хвилини|:count хвилин',
73 'min' => ':countхв',
74 'a_minute' => '{1}хвилина|:count хвилина|:count хвилини|:count хвилин',
75 'second' => ':count секунда|:count секунди|:count секунд',
76 's' => ':countсек',
77 'a_second' => '{1}декілька секунд|:count секунда|:count секунди|:count секунд',
78
79 'hour_ago' => ':count годину|:count години|:count годин',
80 'a_hour_ago' => '{1}годину|:count годину|:count години|:count годин',
81 'minute_ago' => ':count хвилину|:count хвилини|:count хвилин',
82 'a_minute_ago' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
83 'second_ago' => ':count секунду|:count секунди|:count секунд',
84 'a_second_ago' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд',
85
86 'hour_from_now' => ':count годину|:count години|:count годин',
87 'a_hour_from_now' => '{1}годину|:count годину|:count години|:count годин',
88 'minute_from_now' => ':count хвилину|:count хвилини|:count хвилин',
89 'a_minute_from_now' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
90 'second_from_now' => ':count секунду|:count секунди|:count секунд',
91 'a_second_from_now' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд',
92
93 'hour_after' => ':count годину|:count години|:count годин',
94 'a_hour_after' => '{1}годину|:count годину|:count години|:count годин',
95 'minute_after' => ':count хвилину|:count хвилини|:count хвилин',
96 'a_minute_after' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
97 'second_after' => ':count секунду|:count секунди|:count секунд',
98 'a_second_after' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд',
99
100 'hour_before' => ':count годину|:count години|:count годин',
101 'a_hour_before' => '{1}годину|:count годину|:count години|:count годин',
102 'minute_before' => ':count хвилину|:count хвилини|:count хвилин',
103 'a_minute_before' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
104 'second_before' => ':count секунду|:count секунди|:count секунд',
105 'a_second_before' => '{1}декілька секунд|:count секунду|:count секунди|:count секунд',
106
107 'ago' => ':time тому',
108 'from_now' => 'за :time',
109 'after' => ':time після',
110 'before' => ':time до',
111 'diff_now' => 'щойно',
112 'diff_today' => 'Сьогодні',
113 'diff_today_regexp' => 'Сьогодні(?:\\s+о)?',
114 'diff_yesterday' => 'вчора',
115 'diff_yesterday_regexp' => 'Вчора(?:\\s+о)?',
116 'diff_tomorrow' => 'завтра',
117 'diff_tomorrow_regexp' => 'Завтра(?:\\s+о)?',
118 'diff_before_yesterday' => 'позавчора',
119 'diff_after_tomorrow' => 'післязавтра',
120 'period_recurrences' => 'один раз|:count рази|:count разів',
121 'period_interval' => 'кожні :interval',
122 'period_start_date' => 'з :date',
123 'period_end_date' => 'до :date',
124 'formats' => [
125 'LT' => 'HH:mm',
126 'LTS' => 'HH:mm:ss',
127 'L' => 'DD.MM.YYYY',
128 'LL' => 'D MMMM YYYY',
129 'LLL' => 'D MMMM YYYY, HH:mm',
130 'LLLL' => 'dddd, D MMMM YYYY, HH:mm',
131 ],
132 'calendar' => [
133 'sameDay' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[Сьогодні '),
134 'nextDay' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[Завтра '),
135 'nextWeek' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[У] dddd ['),
136 'lastDay' => static fn (CarbonInterface $date) => $processHoursFunction($date, '[Вчора '),
137 'lastWeek' => static fn (CarbonInterface $date) => match ($date->dayOfWeek) {
138 0, 3, 5, 6 => $processHoursFunction($date, '[Минулої] dddd ['),
139 default => $processHoursFunction($date, '[Минулого] dddd ['),
140 },
141 'sameElse' => 'L',
142 ],
143 'ordinal' => static fn ($number, $period) => match ($period) {
144 'M', 'd', 'DDD', 'w', 'W' => $number.'-й',
145 'D' => $number.'-го',
146 default => $number,
147 },
148 'meridiem' => static function ($hour) {
149 if ($hour < 4) {
150 return 'ночі';
151 }
152
153 if ($hour < 12) {
154 return 'ранку';
155 }
156
157 if ($hour < 17) {
158 return 'дня';
159 }
160
161 return 'вечора';
162 },
163 'months' => ['січня', 'лютого', 'березня', 'квітня', 'травня', 'червня', 'липня', 'серпня', 'вересня', 'жовтня', 'листопада', 'грудня'],
164 'months_standalone' => ['січень', 'лютий', 'березень', 'квітень', 'травень', 'червень', 'липень', 'серпень', 'вересень', 'жовтень', 'листопад', 'грудень'],
165 'months_short' => ['січ', 'лют', 'бер', 'кві', 'тра', 'чер', 'лип', 'сер', 'вер', 'жов', 'лис', 'гру'],
166 'months_regexp' => '/(D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/',
167 'weekdays' => static function (CarbonInterface $date, $format, $index) {
168 static $words = [
169 'nominative' => ['неділя', 'понеділок', 'вівторок', 'середа', 'четвер', 'п’ятниця', 'субота'],
170 'accusative' => ['неділю', 'понеділок', 'вівторок', 'середу', 'четвер', 'п’ятницю', 'суботу'],
171 'genitive' => ['неділі', 'понеділка', 'вівторка', 'середи', 'четверга', 'п’ятниці', 'суботи'],
172 ];
173
174 $format ??= '';
175 $nounCase = preg_match('/(\[(В|в|У|у)\])\s+dddd/u', $format)
176 ? 'accusative'
177 : (
178 preg_match('/\[?(?:минулої|наступної)?\s*\]\s+dddd/u', $format)
179 ? 'genitive'
180 : 'nominative'
181 );
182
183 return $words[$nounCase][$index] ?? null;
184 },
185 'weekdays_short' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
186 'weekdays_min' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
187 'first_day_of_week' => 1,
188 'day_of_first_week_of_year' => 1,
189 'list' => [', ', ' i '],
190 ];