//! moment.js locale configuration
//! locale : Bulgarian [bg]
//! author : Krasen Borisov : https://github.com/kraz
import moment from '../moment';
export default 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 ??????'
},
dayOfMonthOrdinalParse: /\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.
}
});
|