/pack-rat/003_pack_rat/pack-rat/bower_components/moment/locale/my.js |
@@ -0,0 +1,96 @@ |
//! 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'; |
|
|
var symbolMap = { |
'1': '၁', |
'2': '၂', |
'3': '၃', |
'4': '၄', |
'5': '၅', |
'6': '၆', |
'7': '၇', |
'8': '၈', |
'9': '၉', |
'0': '၀' |
}; |
var 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; |
|
}))); |