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.
 
 
 
 
 

102 lines
3.7 KiB

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