Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / resources / lib / moment / locale / ne.js
1 //! moment.js locale configuration
2
3 ;(function (global, factory) {
4 typeof exports === 'object' && typeof module !== 'undefined'
5 && typeof require === 'function' ? factory(require('../moment')) :
6 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 factory(global.moment)
8 }(this, (function (moment) { 'use strict';
9
10
11 var symbolMap = {
12 '1': '१',
13 '2': '२',
14 '3': '३',
15 '4': '४',
16 '5': '५',
17 '6': '६',
18 '7': '७',
19 '8': '८',
20 '9': '९',
21 '0': '०'
22 },
23 numberMap = {
24 '१': '1',
25 '२': '2',
26 '३': '3',
27 '४': '4',
28 '५': '5',
29 '६': '6',
30 '७': '7',
31 '८': '8',
32 '९': '9',
33 '०': '0'
34 };
35
36 var ne = moment.defineLocale('ne', {
37 months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
38 monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
39 monthsParseExact : true,
40 weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
41 weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
42 weekdaysMin : 'आ._सो._मं._बु._बि._शु._श.'.split('_'),
43 weekdaysParseExact : true,
44 longDateFormat : {
45 LT : 'Aको h:mm बजे',
46 LTS : 'Aको h:mm:ss बजे',
47 L : 'DD/MM/YYYY',
48 LL : 'D MMMM YYYY',
49 LLL : 'D MMMM YYYY, Aको h:mm बजे',
50 LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
51 },
52 preparse: function (string) {
53 return string.replace(/[१२३४५६७८९०]/g, function (match) {
54 return numberMap[match];
55 });
56 },
57 postformat: function (string) {
58 return string.replace(/\d/g, function (match) {
59 return symbolMap[match];
60 });
61 },
62 meridiemParse: /राति|बिहान|दिउँसो|साँझ/,
63 meridiemHour : function (hour, meridiem) {
64 if (hour === 12) {
65 hour = 0;
66 }
67 if (meridiem === 'राति') {
68 return hour < 4 ? hour : hour + 12;
69 } else if (meridiem === 'बिहान') {
70 return hour;
71 } else if (meridiem === 'दिउँसो') {
72 return hour >= 10 ? hour : hour + 12;
73 } else if (meridiem === 'साँझ') {
74 return hour + 12;
75 }
76 },
77 meridiem : function (hour, minute, isLower) {
78 if (hour < 3) {
79 return 'राति';
80 } else if (hour < 12) {
81 return 'बिहान';
82 } else if (hour < 16) {
83 return 'दिउँसो';
84 } else if (hour < 20) {
85 return 'साँझ';
86 } else {
87 return 'राति';
88 }
89 },
90 calendar : {
91 sameDay : '[आज] LT',
92 nextDay : '[भोलि] LT',
93 nextWeek : '[आउँदो] dddd[,] LT',
94 lastDay : '[हिजो] LT',
95 lastWeek : '[गएको] dddd[,] LT',
96 sameElse : 'L'
97 },
98 relativeTime : {
99 future : '%sमा',
100 past : '%s अगाडि',
101 s : 'केही क्षण',
102 ss : '%d सेकेण्ड',
103 m : 'एक मिनेट',
104 mm : '%d मिनेट',
105 h : 'एक घण्टा',
106 hh : '%d घण्टा',
107 d : 'एक दिन',
108 dd : '%d दिन',
109 M : 'एक महिना',
110 MM : '%d महिना',
111 y : 'एक बर्ष',
112 yy : '%d बर्ष'
113 },
114 week : {
115 dow : 0, // Sunday is the first day of the week.
116 doy : 6 // The week that contains Jan 6th is the first week of the year.
117 }
118 });
119
120 return ne;
121
122 })));