LaravelTest
87 строк · 2.9 Кб
1//! moment.js locale configuration
2//! locale : Javanese [jv]
3//! author : Rony Lantip : https://github.com/lantip
4//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
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 jv = moment.defineLocale('jv', {16months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split(17'_'18),19monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),20weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),21weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),22weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.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: /enjing|siyang|sonten|ndalu/,32meridiemHour: function (hour, meridiem) {33if (hour === 12) {34hour = 0;35}36if (meridiem === 'enjing') {37return hour;38} else if (meridiem === 'siyang') {39return hour >= 11 ? hour : hour + 12;40} else if (meridiem === 'sonten' || meridiem === 'ndalu') {41return hour + 12;42}43},44meridiem: function (hours, minutes, isLower) {45if (hours < 11) {46return 'enjing';47} else if (hours < 15) {48return 'siyang';49} else if (hours < 19) {50return 'sonten';51} else {52return 'ndalu';53}54},55calendar: {56sameDay: '[Dinten puniko pukul] LT',57nextDay: '[Mbenjang pukul] LT',58nextWeek: 'dddd [pukul] LT',59lastDay: '[Kala wingi pukul] LT',60lastWeek: 'dddd [kepengker pukul] LT',61sameElse: 'L',62},63relativeTime: {64future: 'wonten ing %s',65past: '%s ingkang kepengker',66s: 'sawetawis detik',67ss: '%d detik',68m: 'setunggal menit',69mm: '%d menit',70h: 'setunggal jam',71hh: '%d jam',72d: 'sedinten',73dd: '%d dinten',74M: 'sewulan',75MM: '%d wulan',76y: 'setaun',77yy: '%d taun',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 jv;86
87})));88