//! moment.js locale configuration
//! locale : bulgarian (bg)
//! author : Krasen Borisov : https://github.com/kraz
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
var bg = moment.defineLocale('bg', {
months : '??????_????????_????_?????_???_???_???_??????_?????????_????????_???????_????????'.split('_'),
monthsShort : '???_???_???_???_???_???_???_???_???_???_???_???'.split('_'),
weekdays : '??????_??????????_???????_?????_?????????_?????_??????'.split('_'),
weekdaysShort : '???_???_???_???_???_???_???'.split('_'),
weekdaysMin : '??_??_??_??_??_??_??'.split('_'),
longDateFormat : {
LT : 'H:mm',
LTS : 'H:mm:ss',
L : 'D.MM.YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY H:mm',
LLLL : 'dddd, D MMMM YYYY H:mm'
},
calendar : {
sameDay : '[???? ?] LT',
nextDay : '[???? ?] LT',
nextWeek : 'dddd [?] LT',
lastDay : '[????? ?] LT',
lastWeek : function () {
switch (this.day()) {
case 0:
case 3:
case 6:
return '[? ??????????] dddd [?] LT';
case 1:
case 2:
case 4:
case 5:
return '[? ?????????] dddd [?] LT';
}
},
sameElse : 'L'
},
relativeTime : {
future : '???? %s',
past : '????? %s',
s : '??????? ???????',
m : '??????',
mm : '%d ??????',
h : '???',
hh : '%d ????',
d : '???',
dd : '%d ???',
M : '?????',
MM : '%d ??????',
y : '??????',
yy : '%d ??????'
},
ordinalParse: /\d{1,2}-(??|??|??|??|??|??)/,
ordinal : function (number) {
var lastDigit = number % 10,
last2Digits = number % 100;
if (number === 0) {
return number + '-??';
} else if (last2Digits === 0) {
return number + '-??';
} else if (last2Digits > 10 && last2Digits < 20) {
return number + '-??';
} else if (lastDigit === 1) {
return number + '-??';
} else if (lastDigit === 2) {
return number + '-??';
} else if (lastDigit === 7 || lastDigit === 8) {
return number + '-??';
} else {
return number + '-??';
}
},
week : {
dow : 1, // Monday is the first day of the week.
doy : 7 // The week that contains Jan 1st is the first week of the year.
}
});
return bg;
}));
|