LaravelTest
135 строк · 6.1 Кб
1//! moment.js locale configuration
2//! locale : Konkani Devanagari script [gom-deva]
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: ['थोडया सॅकंडांनी', 'थोडे सॅकंड'],17ss: [number + ' सॅकंडांनी', number + ' सॅकंड'],18m: ['एका मिणटान', 'एक मिनूट'],19mm: [number + ' मिणटांनी', number + ' मिणटां'],20h: ['एका वरान', 'एक वर'],21hh: [number + ' वरांनी', number + ' वरां'],22d: ['एका दिसान', 'एक दीस'],23dd: [number + ' दिसांनी', number + ' दीस'],24M: ['एका म्हयन्यान', 'एक म्हयनो'],25MM: [number + ' म्हयन्यानी', number + ' म्हयने'],26y: ['एका वर्सान', 'एक वर्स'],27yy: [number + ' वर्सांनी', number + ' वर्सां'],28};29return isFuture ? format[key][0] : format[key][1];30}31
32var gomDeva = moment.defineLocale('gom-deva', {33months: {34standalone: 'जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split(35'_'36),37format: 'जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या'.split(38'_'39),40isFormat: /MMMM(\s)+D[oD]?/,41},42monthsShort: 'जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split(43'_'44),45monthsParseExact: true,46weekdays: 'आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार'.split('_'),47weekdaysShort: 'आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.'.split('_'),48weekdaysMin: 'आ_सो_मं_बु_ब्रे_सु_शे'.split('_'),49weekdaysParseExact: true,50longDateFormat: {51LT: 'A h:mm [वाजतां]',52LTS: 'A h:mm:ss [वाजतां]',53L: 'DD-MM-YYYY',54LL: 'D MMMM YYYY',55LLL: 'D MMMM YYYY A h:mm [वाजतां]',56LLLL: 'dddd, MMMM Do, YYYY, A h:mm [वाजतां]',57llll: 'ddd, D MMM YYYY, A h:mm [वाजतां]',58},59calendar: {60sameDay: '[आयज] LT',61nextDay: '[फाल्यां] LT',62nextWeek: '[फुडलो] dddd[,] LT',63lastDay: '[काल] LT',64lastWeek: '[फाटलो] dddd[,] LT',65sameElse: 'L',66},67relativeTime: {68future: '%s',69past: '%s आदीं',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}(वेर)/,84ordinal: function (number, period) {85switch (period) {86// the ordinal 'वेर' only applies to day of the month87case 'D':88return number + 'वेर';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: /राती|सकाळीं|दनपारां|सांजे/,104meridiemHour: function (hour, meridiem) {105if (hour === 12) {106hour = 0;107}108if (meridiem === 'राती') {109return hour < 4 ? hour : hour + 12;110} else if (meridiem === 'सकाळीं') {111return hour;112} else if (meridiem === 'दनपारां') {113return hour > 12 ? hour : hour + 12;114} else if (meridiem === 'सांजे') {115return hour + 12;116}117},118meridiem: function (hour, minute, isLower) {119if (hour < 4) {120return 'राती';121} else if (hour < 12) {122return 'सकाळीं';123} else if (hour < 16) {124return 'दनपारां';125} else if (hour < 20) {126return 'सांजे';127} else {128return 'राती';129}130},131});132
133return gomDeva;134
135})));136