1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
<?php
$languageNames = [
'ar-001' => 'Modern Standard Arabic',
'bn' => 'Bengali',
'de-at' => 'Austrian German',
'de-ch' => 'Swiss High German',
'en-au' => 'Australian English',
'en-ca' => 'Canadian English',
'en-gb' => 'British English',
'en-us' => 'American English',
'es-419' => 'Latin American Spanish',
'es-es' => 'European Spanish',
'es-mx' => 'Mexican Spanish',
'fa-af' => 'Dari',
'fr-ca' => 'Canadian French',
'fr-ch' => 'Swiss French',
'mfe' => 'Mauritian',
'nl-be' => 'Flemish',
'pt-br' => 'Brazilian Portuguese',
'pt-pt' => 'European Portuguese',
'ro-md' => 'Moldovan',
'sr-me' => 'Montenegrin',
'sw-cd' => 'Congo Swahili',
'tvl' => 'Tuvaluan',
'zh-hans' => 'Simplified Chinese',
'zh-hant' => 'Traditional Chinese',
];
$timeUnits = [
'fri-narrow-future-one' => 'in {0} Fr',
'fri-narrow-future-other' => 'in {0} Fr’s',
'fri-narrow-past-one' => '{0} Fr ago',
'fri-narrow-past-other' => '{0} Fr’s ago',
'fri-short-future-one' => 'in {0} Fri.',
'fri-short-future-other' => 'in {0} Fri’s.',
'fri-short-past-one' => '{0} Fri. ago',
'fri-short-past-other' => '{0} Fri’s. ago',
'hour-narrow-future-one' => 'in {0} hr.',
'hour-narrow-future-other' => 'in {0} hrs.',
'hour-narrow-past-one' => '{0} hr. ago',
'hour-narrow-past-other' => '{0} hrs. ago',
'hour-short-future-one' => 'in {0} hr.',
'hour-short-future-other' => 'in {0} hrs.',
'hour-short-past-one' => '{0} hr. ago',
'hour-short-past-other' => '{0} hrs. ago',
'minute-narrow-future-one' => 'in {0} min.',
'minute-narrow-future-other' => 'in {0} mins.',
'minute-narrow-past-one' => '{0} min. ago',
'minute-narrow-past-other' => '{0} mins. ago',
'minute-short-future-one' => 'in {0} min.',
'minute-short-future-other' => 'in {0} mins.',
'minute-short-past-one' => '{0} min. ago',
'minute-short-past-other' => '{0} mins. ago',
'mon-narrow-future-one' => 'in {0} M',
'mon-narrow-future-other' => 'in {0} Mo’s',
'mon-narrow-past-one' => '{0} M ago',
'mon-narrow-past-other' => '{0} Mo’s ago',
'mon-short-future-one' => 'in {0} Mon.',
'mon-short-future-other' => 'in {0} Mon’s.',
'mon-short-past-one' => '{0} Mon. ago',
'mon-short-past-other' => '{0} Mon’s. ago',
'month-narrow-future-one' => 'in {0} mo.',
'month-narrow-future-other' => 'in {0} mos.',
'month-narrow-past-one' => '{0} mo. ago',
'month-narrow-past-other' => '{0} mos. ago',
'month-short-future-one' => 'in {0} mo.',
'month-short-future-other' => 'in {0} mos.',
'month-short-past-one' => '{0} mo. ago',
'month-short-past-other' => '{0} mos. ago',
'quarter-narrow-future-one' => 'in {0} qtr.',
'quarter-narrow-future-other' => 'in {0} qtrs.',
'quarter-narrow-past-one' => '{0} qtr. ago',
'quarter-narrow-past-other' => '{0} qtrs. ago',
'quarter-short-future-one' => 'in {0} qtr.',
'quarter-short-future-other' => 'in {0} qtrs.',
'quarter-short-past-one' => '{0} qtr. ago',
'quarter-short-past-other' => '{0} qtrs. ago',
'sat-narrow-future-one' => 'in {0} Sa',
'sat-narrow-future-other' => 'in {0} Sa’s',
'sat-narrow-past-one' => '{0} Sa ago',
'sat-narrow-past-other' => '{0} Sa’s ago',
'sat-short-future-one' => 'in {0} Sat.',
'sat-short-future-other' => 'in {0} Sat’s.',
'sat-short-past-one' => '{0} Sat. ago',
'sat-short-past-other' => '{0} Sat’s. ago',
'second-narrow-future-one' => 'in {0} sec.',
'second-narrow-future-other' => 'in {0} secs.',
'second-narrow-past-one' => '{0} sec. ago',
'second-narrow-past-other' => '{0} secs. ago',
'second-short-future-one' => 'in {0} sec.',
'second-short-future-other' => 'in {0} secs.',
'second-short-past-one' => '{0} sec. ago',
'second-short-past-other' => '{0} secs. ago',
'sun-narrow-future-one' => 'in {0} Su',
'sun-narrow-future-other' => 'in {0} Su’s',
'sun-narrow-past-one' => '{0} Su ago',
'sun-narrow-past-other' => '{0} Su’s ago',
'sun-short-future-one' => 'in {0} Sun.',
'sun-short-future-other' => 'in {0} Sun’s.',
'sun-short-past-one' => '{0} Sun. ago',
'sun-short-past-other' => '{0} Sun’s. ago',
'thu-narrow-future-one' => 'in {0} Th',
'thu-narrow-future-other' => 'in {0} Th’s',
'thu-narrow-past-one' => '{0} Th ago',
'thu-narrow-past-other' => '{0} Th’s ago',
'thu-short-future-one' => 'in {0} Thu.',
'thu-short-future-other' => 'in {0} Thu’s.',
'thu-short-past-one' => '{0} Thu. ago',
'thu-short-past-other' => '{0} Thu’s ago',
'tue-narrow-future-one' => 'in {0} Tu',
'tue-narrow-future-other' => 'in {0} Tu’s',
'tue-narrow-past-one' => '{0} Tu ago',
'tue-narrow-past-other' => '{0} Tu’s ago',
'tue-short-future-one' => 'in {0} Tue.',
'tue-short-future-other' => 'in {0} Tue’s.',
'tue-short-past-one' => '{0} Tue. ago',
'tue-short-past-other' => '{0} Tue’s. ago',
'wed-narrow-future-one' => 'in {0} We',
'wed-narrow-future-other' => 'in {0} We’s',
'wed-narrow-past-one' => '{0} We ago',
'wed-narrow-past-other' => '{0} We’s ago',
'wed-short-future-one' => 'in {0} Wed.',
'wed-short-future-other' => 'in {0} Wed’s.',
'wed-short-past-one' => '{0} Wed. ago',
'wed-short-past-other' => '{0} Wed’s. ago',
'week-narrow-future-one' => 'in {0} wk.',
'week-narrow-future-other' => 'in {0} wks.',
'week-narrow-past-one' => '{0} wk. ago',
'week-narrow-past-other' => '{0} wks. ago',
'week-short-future-one' => 'in {0} wk.',
'week-short-future-other' => 'in {0} wks.',
'week-short-past-one' => '{0} wk. ago',
'week-short-past-other' => '{0} wks. ago',
'year-narrow-future-one' => 'in {0} yr.',
'year-narrow-future-other' => 'in {0} yrs.',
'year-narrow-past-one' => '{0} yr. ago',
'year-narrow-past-other' => '{0} yrs. ago',
'year-short-future-one' => 'in {0} yr.',
'year-short-future-other' => 'in {0} yrs.',
'year-short-past-one' => '{0} yr. ago',
'year-short-past-other' => '{0} yrs. ago',
];
|