AdminLTE/bower_components/moment/locale/bo.js

119 lines
5.0 KiB
JavaScript

//! 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;
})));