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.
 
 
 
 
 
 

118 lines
5.0 KiB

//! moment.js locale configuration
;(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 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 : 'ལམ་སང',
ss : '%d སར་ཆ།',
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: /མཚན་མ|ཞགས་ཀས|ཉན་གང|དགང་དག|མཚན་མ/,
meridiemHour : function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if ((meridiem === 'མཚན་མ' && hour >= 4) ||
(meridiem === 'ཉན་གང' && hour < 5) ||
meridiem === 'དགང་དག') {
return hour + 12;
} else {
return hour;
}
},
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 6th is the first week of the year.
}
});
return bo;
})));