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