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