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.
 
 
 
 

92 lines
3.3 KiB

//! moment.js locale configuration
//! locale : Burmese (my)
//! author : Squar team, mysquar.com
(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 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: 'ကက.',
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 1st is the first week of the year.
}
});
return my;
}));