[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
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 }, numberMap = { 27 '၁': '1', 28 '၂': '2', 29 '၃': '3', 30 '၄': '4', 31 '၅': '5', 32 '၆': '6', 33 '၇': '7', 34 '၈': '8', 35 '၉': '9', 36 '၀': '0' 37 }; 38 39 var my = moment.defineLocale('my', { 40 months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'), 41 monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), 42 weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), 43 weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), 44 weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), 45 46 longDateFormat: { 47 LT: 'HH:mm', 48 LTS: 'HH:mm:ss', 49 L: 'DD/MM/YYYY', 50 LL: 'D MMMM YYYY', 51 LLL: 'D MMMM YYYY HH:mm', 52 LLLL: 'dddd D MMMM YYYY HH:mm' 53 }, 54 calendar: { 55 sameDay: '[ယနေ.] LT [မှာ]', 56 nextDay: '[မနက်ဖြန်] LT [မှာ]', 57 nextWeek: 'dddd LT [မှာ]', 58 lastDay: '[မနေ.က] LT [မှာ]', 59 lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', 60 sameElse: 'L' 61 }, 62 relativeTime: { 63 future: 'လာမည့် %s မှာ', 64 past: 'လွန်ခဲ့သော %s က', 65 s: 'စက္ကန်.အနည်းငယ်', 66 m: 'တစ်မိနစ်', 67 mm: '%d မိနစ်', 68 h: 'တစ်နာရီ', 69 hh: '%d နာရီ', 70 d: 'တစ်ရက်', 71 dd: '%d ရက်', 72 M: 'တစ်လ', 73 MM: '%d လ', 74 y: 'တစ်နှစ်', 75 yy: '%d နှစ်' 76 }, 77 preparse: function (string) { 78 return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { 79 return numberMap[match]; 80 }); 81 }, 82 postformat: function (string) { 83 return string.replace(/\d/g, function (match) { 84 return symbolMap[match]; 85 }); 86 }, 87 week: { 88 dow: 1, // Monday is the first day of the week. 89 doy: 4 // The week that contains Jan 1st is the first week of the year. 90 } 91 }); 92 93 return my; 94 95 }));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 24 01:01:27 2023 | Cross-referenced by PHPXref 0.7.1 |