Debian Codegraph @

resources/lib/moment/locale/az.js

raw symbols SCIP
1 //! moment.js locale configuration
2 //! locale : Azerbaijani [az]
3 //! author : topchiyev : https://github.com/topchiyev
4
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9 factory(global.moment)
10 }(this, (function (moment) { 'use strict';
11
12 //! moment.js locale configuration
13
14 var suffixes = {
15 1: '-inci',
16 5: '-inci',
17 8: '-inci',
18 70: '-inci',
19 80: '-inci',
20 2: '-nci',
21 7: '-nci',
22 20: '-nci',
23 50: '-nci',
24 3: '-üncü',
25 4: '-üncü',
26 100: '-üncü',
27 6: '-ncı',
28 9: '-uncu',
29 10: '-uncu',
30 30: '-uncu',
31 60: '-ıncı',
32 90: '-ıncı',
33 };
34
35 var az = moment.defineLocale('az', {
36 months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
37 '_'
38 ),
39 monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
40 weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
41 '_'
42 ),
43 weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
44 weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
45 weekdaysParseExact: true,
46 longDateFormat: {
47 LT: 'HH:mm',
48 LTS: 'HH:mm:ss',
49 L: 'DD.MM.YYYY',
50 LL: 'D MMMM YYYY',
51 LLL: 'D MMMM YYYY HH:mm',
52 LLLL: 'dddd, D MMMM YYYY HH:mm',
53 },
54 calendar: {
55 sameDay: '[bugün saat] LT',
56 nextDay: '[sabah saat] LT',
57 nextWeek: '[gələn həftə] dddd [saat] LT',
58 lastDay: '[dünən] LT',
59 lastWeek: '[keçən həftə] dddd [saat] LT',
60 sameElse: 'L',
61 },
62 relativeTime: {
63 future: '%s sonra',
64 past: '%s əvvəl',
65 s: 'birneçə saniyə',
66 ss: '%d saniyə',
67 m: 'bir dəqiqə',
68 mm: '%d dəqiqə',
69 h: 'bir saat',
70 hh: '%d saat',
71 d: 'bir gün',
72 dd: '%d gün',
73 M: 'bir ay',
74 MM: '%d ay',
75 y: 'bir il',
76 yy: '%d il',
77 },
78 meridiemParse: /gecə|səhər|gündüz|axşam/,
79 isPM: function (input) {
80 return /^(gündüz|axşam)$/.test(input);
81 },
82 meridiem: function (hour, minute, isLower) {
83 if (hour < 4) {
84 return 'gecə';
85 } else if (hour < 12) {
86 return 'səhər';
87 } else if (hour < 17) {
88 return 'gündüz';
89 } else {
90 return 'axşam';
91 }
92 },
93 dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
94 ordinal: function (number) {
95 if (number === 0) {
96 // special case for zero
97 return number + '-ıncı';
98 }
99 var a = number % 10,
100 b = (number % 100) - a,
101 c = number >= 100 ? 100 : null;
102 return number + (suffixes[a] || suffixes[b] || suffixes[c]);
103 },
104 week: {
105 dow: 1, // Monday is the first day of the week.
106 doy: 7, // The week that contains Jan 7th is the first week of the year.
107 },
108 });
109
110 return az;
111
112 })));