2016-02-05 15:42:48 -05:00
|
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! locale : Azerbaijani [az]
|
|
|
|
|
//! author : topchiyev : https://github.com/topchiyev
|
2014-08-20 14:41:50 -04:00
|
|
|
|
|
2016-02-05 15:42:48 -05:00
|
|
|
|
;(function (global, factory) {
|
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
|
}(this, (function (moment) { 'use strict';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! moment.js locale configuration
|
2014-08-20 14:41:50 -04:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
var suffixes = {
|
|
|
|
|
1: '-inci',
|
|
|
|
|
5: '-inci',
|
|
|
|
|
8: '-inci',
|
|
|
|
|
70: '-inci',
|
|
|
|
|
80: '-inci',
|
|
|
|
|
2: '-nci',
|
|
|
|
|
7: '-nci',
|
|
|
|
|
20: '-nci',
|
|
|
|
|
50: '-nci',
|
|
|
|
|
3: '-üncü',
|
|
|
|
|
4: '-üncü',
|
|
|
|
|
100: '-üncü',
|
|
|
|
|
6: '-ncı',
|
|
|
|
|
9: '-uncu',
|
|
|
|
|
10: '-uncu',
|
|
|
|
|
30: '-uncu',
|
|
|
|
|
60: '-ıncı',
|
2020-11-10 20:34:26 -05:00
|
|
|
|
90: '-ıncı',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
};
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
var az = moment.defineLocale('az', {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'),
|
|
|
|
|
weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
|
|
|
|
weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'),
|
|
|
|
|
weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
|
|
|
|
|
weekdaysParseExact: true,
|
|
|
|
|
longDateFormat: {
|
|
|
|
|
LT: 'HH:mm',
|
|
|
|
|
LTS: 'HH:mm:ss',
|
|
|
|
|
L: 'DD.MM.YYYY',
|
|
|
|
|
LL: 'D MMMM YYYY',
|
|
|
|
|
LLL: 'D MMMM YYYY HH:mm',
|
|
|
|
|
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[bugün saat] LT',
|
|
|
|
|
nextDay: '[sabah saat] LT',
|
|
|
|
|
nextWeek: '[gələn həftə] dddd [saat] LT',
|
|
|
|
|
lastDay: '[dünən] LT',
|
|
|
|
|
lastWeek: '[keçən həftə] dddd [saat] LT',
|
|
|
|
|
sameElse: 'L',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
relativeTime: {
|
|
|
|
|
future: '%s sonra',
|
|
|
|
|
past: '%s əvvəl',
|
|
|
|
|
s: 'bir neçə saniyə',
|
|
|
|
|
ss: '%d saniyə',
|
|
|
|
|
m: 'bir dəqiqə',
|
|
|
|
|
mm: '%d dəqiqə',
|
|
|
|
|
h: 'bir saat',
|
|
|
|
|
hh: '%d saat',
|
|
|
|
|
d: 'bir gün',
|
|
|
|
|
dd: '%d gün',
|
|
|
|
|
M: 'bir ay',
|
|
|
|
|
MM: '%d ay',
|
|
|
|
|
y: 'bir il',
|
|
|
|
|
yy: '%d il',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
|
|
|
|
meridiemParse: /gecə|səhər|gündüz|axşam/,
|
2020-11-10 20:34:26 -05:00
|
|
|
|
isPM: function (input) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return /^(gündüz|axşam)$/.test(input);
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
meridiem: function (hour, minute, isLower) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
if (hour < 4) {
|
|
|
|
|
return 'gecə';
|
|
|
|
|
} else if (hour < 12) {
|
|
|
|
|
return 'səhər';
|
|
|
|
|
} else if (hour < 17) {
|
|
|
|
|
return 'gündüz';
|
|
|
|
|
} else {
|
|
|
|
|
return 'axşam';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
|
2020-11-10 20:34:26 -05:00
|
|
|
|
ordinal: function (number) {
|
|
|
|
|
if (number === 0) {
|
|
|
|
|
// special case for zero
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return number + '-ıncı';
|
|
|
|
|
}
|
|
|
|
|
var a = number % 10,
|
2020-11-10 20:34:26 -05:00
|
|
|
|
b = (number % 100) - a,
|
2018-04-26 03:15:53 -04:00
|
|
|
|
c = number >= 100 ? 100 : null;
|
|
|
|
|
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
week: {
|
|
|
|
|
dow: 1, // Monday is the first day of the week.
|
|
|
|
|
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return az;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
|
})));
|