LaravelTest
131 строка · 4.7 Кб
1//! moment.js locale configuration
2//! locale : Nepalese [ne]
3//! author : suvash : https://github.com/suvash
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 symbolMap = {151: '१',162: '२',173: '३',184: '४',195: '५',206: '६',217: '७',228: '८',239: '९',240: '०',25},26numberMap = {27'१': '1',28'२': '2',29'३': '3',30'४': '4',31'५': '5',32'६': '6',33'७': '7',34'८': '8',35'९': '9',36'०': '0',37};38
39var ne = moment.defineLocale('ne', {40months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split(41'_'42),43monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split(44'_'45),46monthsParseExact: true,47weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split(48'_'49),50weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),51weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'),52weekdaysParseExact: true,53longDateFormat: {54LT: 'Aको h:mm बजे',55LTS: 'Aको h:mm:ss बजे',56L: 'DD/MM/YYYY',57LL: 'D MMMM YYYY',58LLL: 'D MMMM YYYY, Aको h:mm बजे',59LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे',60},61preparse: function (string) {62return string.replace(/[१२३४५६७८९०]/g, function (match) {63return numberMap[match];64});65},66postformat: function (string) {67return string.replace(/\d/g, function (match) {68return symbolMap[match];69});70},71meridiemParse: /राति|बिहान|दिउँसो|साँझ/,72meridiemHour: function (hour, meridiem) {73if (hour === 12) {74hour = 0;75}76if (meridiem === 'राति') {77return hour < 4 ? hour : hour + 12;78} else if (meridiem === 'बिहान') {79return hour;80} else if (meridiem === 'दिउँसो') {81return hour >= 10 ? hour : hour + 12;82} else if (meridiem === 'साँझ') {83return hour + 12;84}85},86meridiem: function (hour, minute, isLower) {87if (hour < 3) {88return 'राति';89} else if (hour < 12) {90return 'बिहान';91} else if (hour < 16) {92return 'दिउँसो';93} else if (hour < 20) {94return 'साँझ';95} else {96return 'राति';97}98},99calendar: {100sameDay: '[आज] LT',101nextDay: '[भोलि] LT',102nextWeek: '[आउँदो] dddd[,] LT',103lastDay: '[हिजो] LT',104lastWeek: '[गएको] dddd[,] LT',105sameElse: 'L',106},107relativeTime: {108future: '%sमा',109past: '%s अगाडि',110s: 'केही क्षण',111ss: '%d सेकेण्ड',112m: 'एक मिनेट',113mm: '%d मिनेट',114h: 'एक घण्टा',115hh: '%d घण्टा',116d: 'एक दिन',117dd: '%d दिन',118M: 'एक महिना',119MM: '%d महिना',120y: 'एक बर्ष',121yy: '%d बर्ष',122},123week: {124dow: 0, // Sunday is the first day of the week.125doy: 6, // The week that contains Jan 6th is the first week of the year.126},127});128
129return ne;130
131})));132