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