LaravelTest
135 строк · 4.8 Кб
1//! moment.js locale configuration
2//! locale : Konkani Latin script [gom-latn]
3//! author : The Discoverer : https://github.com/WikiDiscoverer
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
14function processRelativeTime(number, withoutSuffix, key, isFuture) {15var format = {16s: ['thoddea sekondamni', 'thodde sekond'],17ss: [number + ' sekondamni', number + ' sekond'],18m: ['eka mintan', 'ek minut'],19mm: [number + ' mintamni', number + ' mintam'],20h: ['eka voran', 'ek vor'],21hh: [number + ' voramni', number + ' voram'],22d: ['eka disan', 'ek dis'],23dd: [number + ' disamni', number + ' dis'],24M: ['eka mhoinean', 'ek mhoino'],25MM: [number + ' mhoineamni', number + ' mhoine'],26y: ['eka vorsan', 'ek voros'],27yy: [number + ' vorsamni', number + ' vorsam'],28};29return isFuture ? format[key][0] : format[key][1];30}31
32var gomLatn = moment.defineLocale('gom-latn', {33months: {34standalone: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split(35'_'36),37format: 'Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea'.split(38'_'39),40isFormat: /MMMM(\s)+D[oD]?/,41},42monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split(43'_'44),45monthsParseExact: true,46weekdays: "Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split('_'),47weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'),48weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'),49weekdaysParseExact: true,50longDateFormat: {51LT: 'A h:mm [vazta]',52LTS: 'A h:mm:ss [vazta]',53L: 'DD-MM-YYYY',54LL: 'D MMMM YYYY',55LLL: 'D MMMM YYYY A h:mm [vazta]',56LLLL: 'dddd, MMMM Do, YYYY, A h:mm [vazta]',57llll: 'ddd, D MMM YYYY, A h:mm [vazta]',58},59calendar: {60sameDay: '[Aiz] LT',61nextDay: '[Faleam] LT',62nextWeek: '[Fuddlo] dddd[,] LT',63lastDay: '[Kal] LT',64lastWeek: '[Fattlo] dddd[,] LT',65sameElse: 'L',66},67relativeTime: {68future: '%s',69past: '%s adim',70s: processRelativeTime,71ss: processRelativeTime,72m: processRelativeTime,73mm: processRelativeTime,74h: processRelativeTime,75hh: processRelativeTime,76d: processRelativeTime,77dd: processRelativeTime,78M: processRelativeTime,79MM: processRelativeTime,80y: processRelativeTime,81yy: processRelativeTime,82},83dayOfMonthOrdinalParse: /\d{1,2}(er)/,84ordinal: function (number, period) {85switch (period) {86// the ordinal 'er' only applies to day of the month87case 'D':88return number + 'er';89default:90case 'M':91case 'Q':92case 'DDD':93case 'd':94case 'w':95case 'W':96return number;97}98},99week: {100dow: 0, // Sunday is the first day of the week101doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)102},103meridiemParse: /rati|sokallim|donparam|sanje/,104meridiemHour: function (hour, meridiem) {105if (hour === 12) {106hour = 0;107}108if (meridiem === 'rati') {109return hour < 4 ? hour : hour + 12;110} else if (meridiem === 'sokallim') {111return hour;112} else if (meridiem === 'donparam') {113return hour > 12 ? hour : hour + 12;114} else if (meridiem === 'sanje') {115return hour + 12;116}117},118meridiem: function (hour, minute, isLower) {119if (hour < 4) {120return 'rati';121} else if (hour < 12) {122return 'sokallim';123} else if (hour < 16) {124return 'donparam';125} else if (hour < 20) {126return 'sanje';127} else {128return 'rati';129}130},131});132
133return gomLatn;134
135})));136