NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/moment/locale/bo.js

134 lines
5.1 KiB
Java
Raw Normal View History

2023-09-14 14:47:11 +08:00
//! moment.js locale configuration
//! locale : Tibetan [bo]
//! author : Thupten N. Chakrishar : https://github.com/vajradog
;(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';
//! moment.js locale configuration
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: 'ཟླ1_ཟླ2_ཟླ3_ཟླ4_ཟླ5_ཟླ6_ཟླ7_ཟླ8_ཟླ9_ཟླ10_ཟླ11_ཟླ12'.split(
'_'
),
monthsShortRegex: /^(ཟླ\d{1,2})/,
monthsParseExact: true,
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;
})));