LaravelTest
102 строки · 3.7 Кб
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) {8typeof exports === 'object' && typeof module !== 'undefined'9&& typeof require === 'function' ? factory(require('../moment')) :10typeof define === 'function' && define.amd ? define(['../moment'], factory) :11factory(global.moment)12}(this, (function (moment) { 'use strict';13
14//! moment.js locale configuration15
16var symbolMap = {171: '၁',182: '၂',193: '၃',204: '၄',215: '၅',226: '၆',237: '၇',248: '၈',259: '၉',260: '၀',27},28numberMap = {29'၁': '1',30'၂': '2',31'၃': '3',32'၄': '4',33'၅': '5',34'၆': '6',35'၇': '7',36'၈': '8',37'၉': '9',38'၀': '0',39};40
41var my = moment.defineLocale('my', {42months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split(43'_'44),45monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),46weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split(47'_'48),49weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),50weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),51
52longDateFormat: {53LT: 'HH:mm',54LTS: 'HH:mm:ss',55L: 'DD/MM/YYYY',56LL: 'D MMMM YYYY',57LLL: 'D MMMM YYYY HH:mm',58LLLL: 'dddd D MMMM YYYY HH:mm',59},60calendar: {61sameDay: '[ယနေ.] LT [မှာ]',62nextDay: '[မနက်ဖြန်] LT [မှာ]',63nextWeek: 'dddd LT [မှာ]',64lastDay: '[မနေ.က] LT [မှာ]',65lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]',66sameElse: 'L',67},68relativeTime: {69future: 'လာမည့် %s မှာ',70past: 'လွန်ခဲ့သော %s က',71s: 'စက္ကန်.အနည်းငယ်',72ss: '%d စက္ကန့်',73m: 'တစ်မိနစ်',74mm: '%d မိနစ်',75h: 'တစ်နာရီ',76hh: '%d နာရီ',77d: 'တစ်ရက်',78dd: '%d ရက်',79M: 'တစ်လ',80MM: '%d လ',81y: 'တစ်နှစ်',82yy: '%d နှစ်',83},84preparse: function (string) {85return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) {86return numberMap[match];87});88},89postformat: function (string) {90return string.replace(/\d/g, function (match) {91return symbolMap[match];92});93},94week: {95dow: 1, // Monday is the first day of the week.96doy: 4, // The week that contains Jan 4th is the first week of the year.97},98});99
100return my;101
102})));103