Merge "resourceloader: Add getScript() method for loading scripts with callback"
[lhc/web/wiklou.git] / resources / lib / moment / locale / my.js
1 //! moment.js locale configuration
2
3 ;(function (global, factory) {
4 typeof exports === 'object' && typeof module !== 'undefined'
5 && typeof require === 'function' ? factory(require('../moment')) :
6 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 factory(global.moment)
8 }(this, (function (moment) { 'use strict';
9
10
11 var symbolMap = {
12 '1': '၁',
13 '2': '၂',
14 '3': '၃',
15 '4': '၄',
16 '5': '၅',
17 '6': '၆',
18 '7': '၇',
19 '8': '၈',
20 '9': '၉',
21 '0': '၀'
22 }, numberMap = {
23 '၁': '1',
24 '၂': '2',
25 '၃': '3',
26 '၄': '4',
27 '၅': '5',
28 '၆': '6',
29 '၇': '7',
30 '၈': '8',
31 '၉': '9',
32 '၀': '0'
33 };
34
35 var my = moment.defineLocale('my', {
36 months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
37 monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
38 weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
39 weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
40 weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
41
42 longDateFormat: {
43 LT: 'HH:mm',
44 LTS: 'HH:mm:ss',
45 L: 'DD/MM/YYYY',
46 LL: 'D MMMM YYYY',
47 LLL: 'D MMMM YYYY HH:mm',
48 LLLL: 'dddd D MMMM YYYY HH:mm'
49 },
50 calendar: {
51 sameDay: '[ယနေ.] LT [မှာ]',
52 nextDay: '[မနက်ဖြန်] LT [မှာ]',
53 nextWeek: 'dddd LT [မှာ]',
54 lastDay: '[မနေ.က] LT [မှာ]',
55 lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',
56 sameElse: 'L'
57 },
58 relativeTime: {
59 future: 'လာမည့် %s မှာ',
60 past: 'လွန်ခဲ့သော %s က',
61 s: 'စက္ကန်.အနည်းငယ်',
62 ss : '%d စက္ကန့်',
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 4th is the first week of the year.
87 }
88 });
89
90 return my;
91
92 })));