Merge "mediawiki.inspect: Guard against Object.prototype keys as module names"
[lhc/web/wiklou.git] / resources / lib / moment / locale / my.js
1 // moment.js locale configuration
2 // locale : Burmese (my)
3 // author : Squar team, mysquar.com
4
5 (function (factory) {
6 if (typeof define === 'function' && define.amd) {
7 define(['moment'], factory); // AMD
8 } else if (typeof exports === 'object') {
9 module.exports = factory(require('../moment')); // Node
10 } else {
11 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12 }
13 }(function (moment) {
14 var symbolMap = {
15 '1': '၁',
16 '2': '၂',
17 '3': '၃',
18 '4': '၄',
19 '5': '၅',
20 '6': '၆',
21 '7': '၇',
22 '8': '၈',
23 '9': '၉',
24 '0': '၀'
25 }, numberMap = {
26 '၁': '1',
27 '၂': '2',
28 '၃': '3',
29 '၄': '4',
30 '၅': '5',
31 '၆': '6',
32 '၇': '7',
33 '၈': '8',
34 '၉': '9',
35 '၀': '0'
36 };
37 return moment.defineLocale('my', {
38 months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
39 monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
40 weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
41 weekdaysShort: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
42 weekdaysMin: 'နွေ_လာ_င်္ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
43 longDateFormat: {
44 LT: 'HH:mm',
45 LTS: 'HH:mm:ss',
46 L: 'DD/MM/YYYY',
47 LL: 'D MMMM YYYY',
48 LLL: 'D MMMM YYYY LT',
49 LLLL: 'dddd D MMMM YYYY LT'
50 },
51 calendar: {
52 sameDay: '[ယနေ.] LT [မှာ]',
53 nextDay: '[မနက်ဖြန်] LT [မှာ]',
54 nextWeek: 'dddd LT [မှာ]',
55 lastDay: '[မနေ.က] LT [မှာ]',
56 lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
57 sameElse: 'L'
58 },
59 relativeTime: {
60 future: 'လာမည့် %s မှာ',
61 past: 'လွန်ခဲ့သော %s က',
62 s: 'စက္ကန်.အနည်းငယ်',
63 m: 'တစ်မိနစ်',
64 mm: '%d မိနစ်',
65 h: 'တစ်နာရီ',
66 hh: '%d နာရီ',
67 d: 'တစ်ရက်',
68 dd: '%d ရက်',
69 M: 'တစ်လ',
70 MM: '%d လ',
71 y: 'တစ်နှစ်',
72 yy: '%d နှစ်'
73 },
74 preparse: function (string) {
75 return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {
76 return numberMap[match];
77 });
78 },
79 postformat: function (string) {
80 return string.replace(/\d/g, function (match) {
81 return symbolMap[match];
82 });
83 },
84 week: {
85 dow: 1, // Monday is the first day of the week.
86 doy: 4 // The week that contains Jan 1st is the first week of the year.
87 }
88 });
89 }));