LaravelTest
87 строк · 2.9 Кб
1//! moment.js locale configuration
2//! locale : Malay [ms-my]
3//! note : DEPRECATED, the correct one is [ms]
4//! author : Weldan Jamili : https://github.com/weldan
5
6;(function (global, factory) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15var msMy = moment.defineLocale('ms-my', {16months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split(17'_'18),19monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'),20weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'),21weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'),22weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'),23longDateFormat: {24LT: 'HH.mm',25LTS: 'HH.mm.ss',26L: 'DD/MM/YYYY',27LL: 'D MMMM YYYY',28LLL: 'D MMMM YYYY [pukul] HH.mm',29LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm',30},31meridiemParse: /pagi|tengahari|petang|malam/,32meridiemHour: function (hour, meridiem) {33if (hour === 12) {34hour = 0;35}36if (meridiem === 'pagi') {37return hour;38} else if (meridiem === 'tengahari') {39return hour >= 11 ? hour : hour + 12;40} else if (meridiem === 'petang' || meridiem === 'malam') {41return hour + 12;42}43},44meridiem: function (hours, minutes, isLower) {45if (hours < 11) {46return 'pagi';47} else if (hours < 15) {48return 'tengahari';49} else if (hours < 19) {50return 'petang';51} else {52return 'malam';53}54},55calendar: {56sameDay: '[Hari ini pukul] LT',57nextDay: '[Esok pukul] LT',58nextWeek: 'dddd [pukul] LT',59lastDay: '[Kelmarin pukul] LT',60lastWeek: 'dddd [lepas pukul] LT',61sameElse: 'L',62},63relativeTime: {64future: 'dalam %s',65past: '%s yang lepas',66s: 'beberapa saat',67ss: '%d saat',68m: 'seminit',69mm: '%d minit',70h: 'sejam',71hh: '%d jam',72d: 'sehari',73dd: '%d hari',74M: 'sebulan',75MM: '%d bulan',76y: 'setahun',77yy: '%d tahun',78},79week: {80dow: 1, // Monday is the first day of the week.81doy: 7, // The week that contains Jan 7th is the first week of the year.82},83});84
85return msMy;86
87})));88