blob: 1e92106df21205403c7343a41f1d012463ef274a [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?php
2
3/**
4 * This file is part of the Carbon package.
5 *
6 * (c) Brian Nesbitt <brian@nesbot.com>
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/*
13 * Authors:
14 * - Josh Soref
15 * - Kunal Marwaha
16 * - François B
17 * - JD Isaacks
18 * - Orxan
19 * - Şəhriyar İmanov
20 * - Baran Şengül
21 */
22return [
23 'year' => ':count il',
24 'a_year' => '{1}bir il|]1,Inf[:count il',
25 'y' => ':count il',
26 'month' => ':count ay',
27 'a_month' => '{1}bir ay|]1,Inf[:count ay',
28 'm' => ':count ay',
29 'week' => ':count həftə',
30 'a_week' => '{1}bir həftə|]1,Inf[:count həftə',
31 'w' => ':count h.',
32 'day' => ':count gün',
33 'a_day' => '{1}bir gün|]1,Inf[:count gün',
34 'd' => ':count g.',
35 'hour' => ':count saat',
36 'a_hour' => '{1}bir saat|]1,Inf[:count saat',
37 'h' => ':count saat',
38 'minute' => ':count d.',
39 'a_minute' => '{1}bir dəqiqə|]1,Inf[:count dəqiqə',
40 'min' => ':count dəqiqə',
41 'second' => ':count san.',
42 'a_second' => '{1}birneçə saniyə|]1,Inf[:count saniyə',
43 's' => ':count saniyə',
44 'ago' => ':time əvvəl',
45 'from_now' => ':time sonra',
46 'after' => ':time sonra',
47 'before' => ':time əvvəl',
48 'diff_now' => 'indi',
49 'diff_today' => 'bugün',
50 'diff_today_regexp' => 'bugün(?:\\s+saat)?',
51 'diff_yesterday' => 'dünən',
52 'diff_tomorrow' => 'sabah',
53 'diff_tomorrow_regexp' => 'sabah(?:\\s+saat)?',
54 'diff_before_yesterday' => 'srağagün',
55 'diff_after_tomorrow' => 'birisi gün',
56 'period_recurrences' => ':count dəfədən bir',
57 'period_interval' => 'hər :interval',
58 'period_start_date' => ':date tarixindən başlayaraq',
59 'period_end_date' => ':date tarixinədək',
60 'formats' => [
61 'LT' => 'HH:mm',
62 'LTS' => 'HH:mm:ss',
63 'L' => 'DD.MM.YYYY',
64 'LL' => 'D MMMM YYYY',
65 'LLL' => 'D MMMM YYYY HH:mm',
66 'LLLL' => 'dddd, D MMMM YYYY HH:mm',
67 ],
68 'calendar' => [
69 'sameDay' => '[bugün saat] LT',
70 'nextDay' => '[sabah saat] LT',
71 'nextWeek' => '[gələn həftə] dddd [saat] LT',
72 'lastDay' => '[dünən] LT',
73 'lastWeek' => '[keçən həftə] dddd [saat] LT',
74 'sameElse' => 'L',
75 ],
76 'ordinal' => function ($number) {
77 if ($number === 0) { // special case for zero
78 return "$number-ıncı";
79 }
80
81 static $suffixes = [
82 1 => '-inci',
83 5 => '-inci',
84 8 => '-inci',
85 70 => '-inci',
86 80 => '-inci',
87 2 => '-nci',
88 7 => '-nci',
89 20 => '-nci',
90 50 => '-nci',
91 3 => '-üncü',
92 4 => '-üncü',
93 100 => '-üncü',
94 6 => '-ncı',
95 9 => '-uncu',
96 10 => '-uncu',
97 30 => '-uncu',
98 60 => '-ıncı',
99 90 => '-ıncı',
100 ];
101
102 $lastDigit = $number % 10;
103
104 return $number.($suffixes[$lastDigit] ?? $suffixes[$number % 100 - $lastDigit] ?? $suffixes[$number >= 100 ? 100 : -1] ?? '');
105 },
106 'meridiem' => function ($hour) {
107 if ($hour < 4) {
108 return 'gecə';
109 }
110 if ($hour < 12) {
111 return 'səhər';
112 }
113 if ($hour < 17) {
114 return 'gündüz';
115 }
116
117 return 'axşam';
118 },
119 'months' => ['yanvar', 'fevral', 'mart', 'aprel', 'may', 'iyun', 'iyul', 'avqust', 'sentyabr', 'oktyabr', 'noyabr', 'dekabr'],
120 'months_short' => ['yan', 'fev', 'mar', 'apr', 'may', 'iyn', 'iyl', 'avq', 'sen', 'okt', 'noy', 'dek'],
121 'months_standalone' => ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'],
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];