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