You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

109 lines
4.8 KiB

//! moment.js locale configuration
//! locale : tibetan (bo)
//! author : Thupten N. Chakrishar : https://github.com/vajradog
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
var symbolMap = {
'1': '༡',
'2': '༢',
'3': '༣',
'4': '༤',
'5': '༥',
'6': '༦',
'7': '༧',
'8': '༨',
'9': '༩',
'0': '༠'
},
numberMap = {
'༡': '1',
'༢': '2',
'༣': '3',
'༤': '4',
'༥': '5',
'༦': '6',
'༧': '7',
'༨': '8',
'༩': '9',
'༠': '0'
};
var bo = moment.defineLocale('bo', {
months : '___________'.split('_'),
monthsShort : '___________'.split('_'),
weekdays : '______'.split('_'),
weekdaysShort : '______'.split('_'),
weekdaysMin : '______'.split('_'),
longDateFormat : {
LT : 'A h:mm',
LTS : 'A h:mm:ss',
L : 'DD/MM/YYYY',
LL : 'D MMMM YYYY',
LLL : 'D MMMM YYYY, A h:mm',
LLLL : 'dddd, D MMMM YYYY, A h:mm'
},
calendar : {
sameDay : '[] LT',
nextDay : '[] LT',
nextWeek : '[], LT',
lastDay : '[] LT',
lastWeek : '[] 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 '
},
preparse: function (string) {
return string.replace(/[]/g, function (match) {
return numberMap[match];
});
},
postformat: function (string) {
return string.replace(/\d/g, function (match) {
return symbolMap[match];
});
},
meridiemParse: /||||/,
isPM: function (input) {
return /^(||)$/.test(input);
},
meridiem : function (hour, minute, isLower) {
if (hour < 4) {
return '';
} else if (hour < 10) {
return '';
} else if (hour < 17) {
return '';
} else if (hour < 20) {
return '';
} else {
return '';
}
},
week : {
dow : 0, // Sunday is the first day of the week.
doy : 6 // The week that contains Jan 1st is the first week of the year.
}
});
return bo;
}));