2019-06-10 17:38:54 +02:00
|
|
|
|
//! moment.js locale configuration
|
2020-07-23 23:12:30 +02:00
|
|
|
|
//! locale : Burmese [my]
|
|
|
|
|
//! author : Squar team, mysquar.com
|
|
|
|
|
//! author : David Rossellat : https://github.com/gholadr
|
|
|
|
|
//! author : Tin Aung Lin : https://github.com/thanyawzinmin
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
|
|
;(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';
|
|
|
|
|
|
2020-07-23 23:12:30 +02:00
|
|
|
|
//! moment.js locale configuration
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
|
|
var symbolMap = {
|
2020-07-23 23:12:30 +02:00
|
|
|
|
'1': '၁',
|
|
|
|
|
'2': '၂',
|
|
|
|
|
'3': '၃',
|
|
|
|
|
'4': '၄',
|
|
|
|
|
'5': '၅',
|
|
|
|
|
'6': '၆',
|
|
|
|
|
'7': '၇',
|
|
|
|
|
'8': '၈',
|
|
|
|
|
'9': '၉',
|
|
|
|
|
'0': '၀',
|
|
|
|
|
},
|
|
|
|
|
numberMap = {
|
|
|
|
|
'၁': '1',
|
|
|
|
|
'၂': '2',
|
|
|
|
|
'၃': '3',
|
|
|
|
|
'၄': '4',
|
|
|
|
|
'၅': '5',
|
|
|
|
|
'၆': '6',
|
|
|
|
|
'၇': '7',
|
|
|
|
|
'၈': '8',
|
|
|
|
|
'၉': '9',
|
|
|
|
|
'၀': '0',
|
|
|
|
|
};
|
2019-06-10 17:38:54 +02:00
|
|
|
|
|
|
|
|
|
var my = moment.defineLocale('my', {
|
2020-07-23 23:12:30 +02:00
|
|
|
|
months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
2019-06-10 17:38:54 +02:00
|
|
|
|
monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
|
2020-07-23 23:12:30 +02:00
|
|
|
|
weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(
|
|
|
|
|
'_'
|
|
|
|
|
),
|
2019-06-10 17:38:54 +02:00
|
|
|
|
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',
|
2020-07-23 23:12:30 +02:00
|
|
|
|
LLLL: 'dddd D MMMM YYYY HH:mm',
|
2019-06-10 17:38:54 +02:00
|
|
|
|
},
|
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[ယနေ.] LT [မှာ]',
|
|
|
|
|
nextDay: '[မနက်ဖြန်] LT [မှာ]',
|
|
|
|
|
nextWeek: 'dddd LT [မှာ]',
|
|
|
|
|
lastDay: '[မနေ.က] LT [မှာ]',
|
|
|
|
|
lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
|
2020-07-23 23:12:30 +02:00
|
|
|
|
sameElse: 'L',
|
2019-06-10 17:38:54 +02:00
|
|
|
|
},
|
|
|
|
|
relativeTime: {
|
|
|
|
|
future: 'လာမည့် %s မှာ',
|
|
|
|
|
past: 'လွန်ခဲ့သော %s က',
|
|
|
|
|
s: 'စက္ကန်.အနည်းငယ်',
|
2020-07-23 23:12:30 +02:00
|
|
|
|
ss: '%d စက္ကန့်',
|
2019-06-10 17:38:54 +02:00
|
|
|
|
m: 'တစ်မိနစ်',
|
|
|
|
|
mm: '%d မိနစ်',
|
|
|
|
|
h: 'တစ်နာရီ',
|
|
|
|
|
hh: '%d နာရီ',
|
|
|
|
|
d: 'တစ်ရက်',
|
|
|
|
|
dd: '%d ရက်',
|
|
|
|
|
M: 'တစ်လ',
|
|
|
|
|
MM: '%d လ',
|
|
|
|
|
y: 'တစ်နှစ်',
|
2020-07-23 23:12:30 +02:00
|
|
|
|
yy: '%d နှစ်',
|
2019-06-10 17:38:54 +02:00
|
|
|
|
},
|
|
|
|
|
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.
|
2020-07-23 23:12:30 +02:00
|
|
|
|
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
|
|
|
|
},
|
2019-06-10 17:38:54 +02:00
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return my;
|
|
|
|
|
|
|
|
|
|
})));
|