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