corrade-nucleus-nucleons – Blame information for rev 38

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