1 // moment.js locale configuration
2 // locale : nepali/nepalese
3 // author : suvash : https://github.com/suvash
6 if (typeof define
=== 'function' && define
.amd
) {
7 define(['moment'], factory
); // AMD
8 } else if (typeof exports
=== 'object') {
9 module
.exports
= factory(require('../moment')); // Node
11 factory((typeof global
!== 'undefined' ? global
: this).moment
); // node or other global
39 return moment
.defineLocale('ne', {
40 months
: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
41 monthsShort
: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
42 weekdays
: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
43 weekdaysShort
: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
44 weekdaysMin
: 'आइ._सो._मङ्_बु._बि._शु._श.'.split('_'),
47 LTS
: 'Aको h:mm:ss बजे',
50 LLL
: 'D MMMM YYYY, LT',
51 LLLL
: 'dddd, D MMMM YYYY, LT'
53 preparse: function (string
) {
54 return string
.replace(/[१२३४५६७८९०]/g, function (match
) {
55 return numberMap
[match
];
58 postformat: function (string
) {
59 return string
.replace(/\d/g, function (match
) {
60 return symbolMap
[match
];
63 meridiem : function (hour
, minute
, isLower
) {
66 } else if (hour
< 10) {
68 } else if (hour
< 15) {
70 } else if (hour
< 18) {
72 } else if (hour
< 20) {
80 nextDay
: '[भोली] LT',
81 nextWeek
: '[आउँदो] dddd[,] LT',
82 lastDay
: '[हिजो] LT',
83 lastWeek
: '[गएको] dddd[,] LT',
102 dow
: 1, // Monday is the first day of the week.
103 doy
: 7 // The week that contains Jan 1st is the first week of the year.