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

103 lines
3.7 KiB
Java
Raw Normal View History

2023-09-14 14:47:11 +08:00
//! moment.js locale configuration
//! locale : Burmese [my]
//! author : Squar team, mysquar.com
//! author : David Rossellat : https://github.com/gholadr
//! author : Tin Aung Lin : https://github.com/thanyawzinmin
;(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 my = moment.defineLocale('my', {
months: 'ဇန်နဝရီ_ဖ်ဝရီ_မတ်_ဧပီ_မ_ဇွန်_ဇူလိုင်_သဂုတ်_စက်တင်ဘ_အက်တိုဘ_နိုင်ဘ_ဒီဇင်ဘ'.split(
'_'
),
monthsShort: 'ဇန်_ဖ_မတ်_ပီ_မ_ဇွန်_လိုင်_သ_စက်_အက်_နို_ဒီ'.split('_'),
weekdays: 'တနင်္ဂနွ_တနင်္လ_အင်္ဂ_ဗုဒ္ဓဟူ_ကသပတ_သက_စန'.split(
'_'
),
weekdaysShort: 'နွ_လ_ဂ_ဟူ_က_သ_န'.split('_'),
weekdaysMin: 'နွ_လ_ဂ_ဟူ_က_သ_န'.split('_'),
longDateFormat: {
LT: 'HH:mm',
LTS: 'HH:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY HH:mm',
LLLL: 'dddd D MMMM YYYY HH:mm',
},
calendar: {
sameDay: '[ယန.] LT [မှ]',
nextDay: '[မနက်ဖန်] LT [မှ]',
nextWeek: 'dddd 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];
});
},
week: {
dow: 1, // Monday is the first day of the week.
doy: 4, // The week that contains Jan 4th is the first week of the year.
},
});
return my;
})));