Merge "Exclude user interface elements in content from selection"
[lhc/web/wiklou.git] / resources / lib / moment / locale / az.js
1 // moment.js locale configuration
2 // locale : azerbaijani (az)
3 // author : topchiyev : https://github.com/topchiyev
4
5 (function (factory) {
6 if (typeof define === 'function' && define.amd) {
7 define(['moment'], factory); // AMD
8 } else if (typeof exports === 'object') {
9 module.exports = factory(require('../moment')); // Node
10 } else {
11 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12 }
13 }(function (moment) {
14 var suffixes = {
15 1: '-inci',
16 5: '-inci',
17 8: '-inci',
18 70: '-inci',
19 80: '-inci',
20
21 2: '-nci',
22 7: '-nci',
23 20: '-nci',
24 50: '-nci',
25
26 3: '-üncü',
27 4: '-üncü',
28 100: '-üncü',
29
30 6: '-ncı',
31
32 9: '-uncu',
33 10: '-uncu',
34 30: '-uncu',
35
36 60: '-ıncı',
37 90: '-ıncı'
38 };
39 return moment.defineLocale('az', {
40 months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'),
41 monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
42 weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'),
43 weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
44 weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
45 longDateFormat : {
46 LT : 'HH:mm',
47 LTS : 'LT:ss',
48 L : 'DD.MM.YYYY',
49 LL : 'D MMMM YYYY',
50 LLL : 'D MMMM YYYY LT',
51 LLLL : 'dddd, D MMMM YYYY LT'
52 },
53 calendar : {
54 sameDay : '[bugün saat] LT',
55 nextDay : '[sabah saat] LT',
56 nextWeek : '[gələn həftə] dddd [saat] LT',
57 lastDay : '[dünən] LT',
58 lastWeek : '[keçən həftə] dddd [saat] LT',
59 sameElse : 'L'
60 },
61 relativeTime : {
62 future : '%s sonra',
63 past : '%s əvvəl',
64 s : 'birneçə saniyyə',
65 m : 'bir dəqiqə',
66 mm : '%d dəqiqə',
67 h : 'bir saat',
68 hh : '%d saat',
69 d : 'bir gün',
70 dd : '%d gün',
71 M : 'bir ay',
72 MM : '%d ay',
73 y : 'bir il',
74 yy : '%d il'
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 ordinalParse: /\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
96 return number + (suffixes[a] || suffixes[b] || suffixes[c]);
97 },
98 week : {
99 dow : 1, // Monday is the first day of the week.
100 doy : 7 // The week that contains Jan 1st is the first week of the year.
101 }
102 });
103 }));