Mercurial > hg > NetworkVis
annotate query_builder/moment/min/locales.js @ 26:22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
author | arussell |
---|---|
date | Tue, 01 Dec 2015 02:07:13 -0500 |
parents | |
children |
rev | line source |
---|---|
26
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1 (function (global, factory) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3 typeof define === 'function' && define.amd ? define(['moment'], factory) : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4 factory(global.moment) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5 }(this, function (moment) { 'use strict'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
7 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
8 //! locale : afrikaans (af) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
9 //! author : Werner Mollentze : https://github.com/wernerm |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
10 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
11 var af = moment.defineLocale('af', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
12 months : 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
13 monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
14 weekdays : 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
15 weekdaysShort : 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
16 weekdaysMin : 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
17 meridiemParse: /vm|nm/i, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
18 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
19 return /^nm$/i.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
20 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
21 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
22 if (hours < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
23 return isLower ? 'vm' : 'VM'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
24 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
25 return isLower ? 'nm' : 'NM'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
26 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
27 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
28 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
29 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
30 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
31 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
32 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
33 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
34 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
35 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
36 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
37 sameDay : '[Vandag om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
38 nextDay : '[Môre om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
39 nextWeek : 'dddd [om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
40 lastDay : '[Gister om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
41 lastWeek : '[Laas] dddd [om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
42 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
43 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
44 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
45 future : 'oor %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
46 past : '%s gelede', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
47 s : '\'n paar sekondes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
48 m : '\'n minuut', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
49 mm : '%d minute', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
50 h : '\'n uur', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
51 hh : '%d ure', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
52 d : '\'n dag', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
53 dd : '%d dae', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
54 M : '\'n maand', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
55 MM : '%d maande', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
56 y : '\'n jaar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
57 yy : '%d jaar' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
58 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
59 ordinalParse: /\d{1,2}(ste|de)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
60 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
61 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
62 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
63 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
64 dow : 1, // Maandag is die eerste dag van die week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
65 doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
66 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
67 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
68 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
69 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
70 //! locale : Moroccan Arabic (ar-ma) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
71 //! author : ElFadili Yassine : https://github.com/ElFadiliY |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
72 //! author : Abdel Said : https://github.com/abdelsaid |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
73 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
74 var ar_ma = moment.defineLocale('ar-ma', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
75 months : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
76 monthsShort : 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
77 weekdays : 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
78 weekdaysShort : 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
79 weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
80 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
81 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
82 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
83 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
84 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
85 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
86 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
87 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
88 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
89 sameDay: '[اليوم على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
90 nextDay: '[غدا على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
91 nextWeek: 'dddd [على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
92 lastDay: '[أمس على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
93 lastWeek: 'dddd [على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
94 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
95 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
96 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
97 future : 'في %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
98 past : 'منذ %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
99 s : 'ثوان', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
100 m : 'دقيقة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
101 mm : '%d دقائق', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
102 h : 'ساعة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
103 hh : '%d ساعات', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
104 d : 'يوم', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
105 dd : '%d أيام', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
106 M : 'شهر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
107 MM : '%d أشهر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
108 y : 'سنة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
109 yy : '%d سنوات' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
110 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
111 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
112 dow : 6, // Saturday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
113 doy : 12 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
114 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
115 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
116 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
117 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
118 //! locale : Arabic Saudi Arabia (ar-sa) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
119 //! author : Suhail Alkowaileet : https://github.com/xsoh |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
120 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
121 var ar_sa__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
122 '1': '١', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
123 '2': '٢', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
124 '3': '٣', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
125 '4': '٤', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
126 '5': '٥', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
127 '6': '٦', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
128 '7': '٧', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
129 '8': '٨', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
130 '9': '٩', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
131 '0': '٠' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
132 }, ar_sa__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
133 '١': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
134 '٢': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
135 '٣': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
136 '٤': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
137 '٥': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
138 '٦': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
139 '٧': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
140 '٨': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
141 '٩': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
142 '٠': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
143 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
144 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
145 var ar_sa = moment.defineLocale('ar-sa', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
146 months : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
147 monthsShort : 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
148 weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
149 weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
150 weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
151 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
152 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
153 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
154 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
155 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
156 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
157 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
158 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
159 meridiemParse: /ص|م/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
160 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
161 return 'م' === input; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
162 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
163 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
164 if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
165 return 'ص'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
166 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
167 return 'م'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
168 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
169 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
170 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
171 sameDay: '[اليوم على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
172 nextDay: '[غدا على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
173 nextWeek: 'dddd [على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
174 lastDay: '[أمس على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
175 lastWeek: 'dddd [على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
176 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
177 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
178 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
179 future : 'في %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
180 past : 'منذ %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
181 s : 'ثوان', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
182 m : 'دقيقة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
183 mm : '%d دقائق', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
184 h : 'ساعة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
185 hh : '%d ساعات', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
186 d : 'يوم', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
187 dd : '%d أيام', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
188 M : 'شهر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
189 MM : '%d أشهر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
190 y : 'سنة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
191 yy : '%d سنوات' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
192 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
193 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
194 return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
195 return ar_sa__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
196 }).replace(/،/g, ','); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
197 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
198 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
199 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
200 return ar_sa__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
201 }).replace(/,/g, '،'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
202 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
203 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
204 dow : 6, // Saturday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
205 doy : 12 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
206 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
207 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
208 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
209 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
210 //! locale : Tunisian Arabic (ar-tn) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
211 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
212 var ar_tn = moment.defineLocale('ar-tn', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
213 months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
214 monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
215 weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
216 weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
217 weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
218 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
219 LT: 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
220 LTS: 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
221 L: 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
222 LL: 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
223 LLL: 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
224 LLLL: 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
225 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
226 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
227 sameDay: '[اليوم على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
228 nextDay: '[غدا على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
229 nextWeek: 'dddd [على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
230 lastDay: '[أمس على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
231 lastWeek: 'dddd [على الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
232 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
233 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
234 relativeTime: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
235 future: 'في %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
236 past: 'منذ %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
237 s: 'ثوان', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
238 m: 'دقيقة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
239 mm: '%d دقائق', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
240 h: 'ساعة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
241 hh: '%d ساعات', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
242 d: 'يوم', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
243 dd: '%d أيام', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
244 M: 'شهر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
245 MM: '%d أشهر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
246 y: 'سنة', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
247 yy: '%d سنوات' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
248 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
249 week: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
250 dow: 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
251 doy: 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
252 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
253 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
254 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
255 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
256 //! Locale: Arabic (ar) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
257 //! Author: Abdel Said: https://github.com/abdelsaid |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
258 //! Changes in months, weekdays: Ahmed Elkhatib |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
259 //! Native plural forms: forabi https://github.com/forabi |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
260 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
261 var ar__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
262 '1': '١', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
263 '2': '٢', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
264 '3': '٣', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
265 '4': '٤', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
266 '5': '٥', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
267 '6': '٦', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
268 '7': '٧', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
269 '8': '٨', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
270 '9': '٩', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
271 '0': '٠' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
272 }, ar__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
273 '١': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
274 '٢': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
275 '٣': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
276 '٤': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
277 '٥': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
278 '٦': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
279 '٧': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
280 '٨': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
281 '٩': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
282 '٠': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
283 }, pluralForm = function (n) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
284 return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
285 }, plurals = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
286 s : ['أقل من ثانية', 'ثانية واحدة', ['ثانيتان', 'ثانيتين'], '%d ثوان', '%d ثانية', '%d ثانية'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
287 m : ['أقل من دقيقة', 'دقيقة واحدة', ['دقيقتان', 'دقيقتين'], '%d دقائق', '%d دقيقة', '%d دقيقة'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
288 h : ['أقل من ساعة', 'ساعة واحدة', ['ساعتان', 'ساعتين'], '%d ساعات', '%d ساعة', '%d ساعة'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
289 d : ['أقل من يوم', 'يوم واحد', ['يومان', 'يومين'], '%d أيام', '%d يومًا', '%d يوم'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
290 M : ['أقل من شهر', 'شهر واحد', ['شهران', 'شهرين'], '%d أشهر', '%d شهرا', '%d شهر'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
291 y : ['أقل من عام', 'عام واحد', ['عامان', 'عامين'], '%d أعوام', '%d عامًا', '%d عام'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
292 }, pluralize = function (u) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
293 return function (number, withoutSuffix, string, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
294 var f = pluralForm(number), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
295 str = plurals[u][pluralForm(number)]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
296 if (f === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
297 str = str[withoutSuffix ? 0 : 1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
298 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
299 return str.replace(/%d/i, number); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
300 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
301 }, ar__months = [ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
302 'كانون الثاني يناير', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
303 'شباط فبراير', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
304 'آذار مارس', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
305 'نيسان أبريل', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
306 'أيار مايو', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
307 'حزيران يونيو', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
308 'تموز يوليو', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
309 'آب أغسطس', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
310 'أيلول سبتمبر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
311 'تشرين الأول أكتوبر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
312 'تشرين الثاني نوفمبر', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
313 'كانون الأول ديسمبر' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
314 ]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
315 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
316 var ar = moment.defineLocale('ar', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
317 months : ar__months, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
318 monthsShort : ar__months, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
319 weekdays : 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
320 weekdaysShort : 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
321 weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
322 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
323 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
324 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
325 L : 'D/\u200FM/\u200FYYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
326 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
327 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
328 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
329 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
330 meridiemParse: /ص|م/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
331 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
332 return 'م' === input; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
333 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
334 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
335 if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
336 return 'ص'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
337 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
338 return 'م'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
339 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
340 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
341 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
342 sameDay: '[اليوم عند الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
343 nextDay: '[غدًا عند الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
344 nextWeek: 'dddd [عند الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
345 lastDay: '[أمس عند الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
346 lastWeek: 'dddd [عند الساعة] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
347 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
348 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
349 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
350 future : 'بعد %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
351 past : 'منذ %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
352 s : pluralize('s'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
353 m : pluralize('m'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
354 mm : pluralize('m'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
355 h : pluralize('h'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
356 hh : pluralize('h'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
357 d : pluralize('d'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
358 dd : pluralize('d'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
359 M : pluralize('M'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
360 MM : pluralize('M'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
361 y : pluralize('y'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
362 yy : pluralize('y') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
363 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
364 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
365 return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
366 return ar__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
367 }).replace(/،/g, ','); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
368 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
369 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
370 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
371 return ar__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
372 }).replace(/,/g, '،'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
373 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
374 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
375 dow : 6, // Saturday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
376 doy : 12 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
377 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
378 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
379 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
380 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
381 //! locale : azerbaijani (az) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
382 //! author : topchiyev : https://github.com/topchiyev |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
383 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
384 var az__suffixes = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
385 1: '-inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
386 5: '-inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
387 8: '-inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
388 70: '-inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
389 80: '-inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
390 2: '-nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
391 7: '-nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
392 20: '-nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
393 50: '-nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
394 3: '-üncü', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
395 4: '-üncü', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
396 100: '-üncü', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
397 6: '-ncı', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
398 9: '-uncu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
399 10: '-uncu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
400 30: '-uncu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
401 60: '-ıncı', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
402 90: '-ıncı' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
403 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
404 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
405 var az = moment.defineLocale('az', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
406 months : 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
407 monthsShort : 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
408 weekdays : 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
409 weekdaysShort : 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
410 weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
411 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
412 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
413 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
414 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
415 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
416 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
417 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
418 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
419 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
420 sameDay : '[bugün saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
421 nextDay : '[sabah saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
422 nextWeek : '[gələn həftə] dddd [saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
423 lastDay : '[dünən] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
424 lastWeek : '[keçən həftə] dddd [saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
425 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
426 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
427 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
428 future : '%s sonra', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
429 past : '%s əvvəl', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
430 s : 'birneçə saniyyə', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
431 m : 'bir dəqiqə', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
432 mm : '%d dəqiqə', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
433 h : 'bir saat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
434 hh : '%d saat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
435 d : 'bir gün', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
436 dd : '%d gün', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
437 M : 'bir ay', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
438 MM : '%d ay', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
439 y : 'bir il', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
440 yy : '%d il' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
441 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
442 meridiemParse: /gecə|səhər|gündüz|axşam/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
443 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
444 return /^(gündüz|axşam)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
445 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
446 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
447 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
448 return 'gecə'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
449 } else if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
450 return 'səhər'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
451 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
452 return 'gündüz'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
453 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
454 return 'axşam'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
455 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
456 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
457 ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
458 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
459 if (number === 0) { // special case for zero |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
460 return number + '-ıncı'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
461 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
462 var a = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
463 b = number % 100 - a, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
464 c = number >= 100 ? 100 : null; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
465 return number + (az__suffixes[a] || az__suffixes[b] || az__suffixes[c]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
466 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
467 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
468 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
469 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
470 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
471 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
472 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
473 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
474 //! locale : belarusian (be) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
475 //! author : Dmitry Demidov : https://github.com/demidov91 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
476 //! author: Praleska: http://praleska.pro/ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
477 //! Author : Menelion Elensúle : https://github.com/Oire |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
478 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
479 function be__plural(word, num) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
480 var forms = word.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
481 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
482 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
483 function be__relativeTimeWithPlural(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
484 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
485 'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
486 'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
487 'dd': 'дзень_дні_дзён', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
488 'MM': 'месяц_месяцы_месяцаў', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
489 'yy': 'год_гады_гадоў' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
490 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
491 if (key === 'm') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
492 return withoutSuffix ? 'хвіліна' : 'хвіліну'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
493 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
494 else if (key === 'h') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
495 return withoutSuffix ? 'гадзіна' : 'гадзіну'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
496 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
497 else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
498 return number + ' ' + be__plural(format[key], +number); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
499 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
500 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
501 function be__monthsCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
502 var months = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
503 'nominative': 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
504 'accusative': 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
505 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
506 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
507 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
508 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
509 return months[nounCase][m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
510 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
511 function be__weekdaysCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
512 var weekdays = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
513 'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
514 'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
515 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
516 nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
517 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
518 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
519 return weekdays[nounCase][m.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
520 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
521 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
522 var be = moment.defineLocale('be', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
523 months : be__monthsCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
524 monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
525 weekdays : be__weekdaysCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
526 weekdaysShort : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
527 weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
528 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
529 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
530 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
531 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
532 LL : 'D MMMM YYYY г.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
533 LLL : 'D MMMM YYYY г., HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
534 LLLL : 'dddd, D MMMM YYYY г., HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
535 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
536 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
537 sameDay: '[Сёння ў] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
538 nextDay: '[Заўтра ў] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
539 lastDay: '[Учора ў] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
540 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
541 return '[У] dddd [ў] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
542 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
543 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
544 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
545 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
546 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
547 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
548 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
549 return '[У мінулую] dddd [ў] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
550 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
551 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
552 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
553 return '[У мінулы] dddd [ў] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
554 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
555 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
556 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
557 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
558 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
559 future : 'праз %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
560 past : '%s таму', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
561 s : 'некалькі секунд', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
562 m : be__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
563 mm : be__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
564 h : be__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
565 hh : be__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
566 d : 'дзень', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
567 dd : be__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
568 M : 'месяц', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
569 MM : be__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
570 y : 'год', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
571 yy : be__relativeTimeWithPlural |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
572 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
573 meridiemParse: /ночы|раніцы|дня|вечара/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
574 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
575 return /^(дня|вечара)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
576 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
577 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
578 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
579 return 'ночы'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
580 } else if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
581 return 'раніцы'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
582 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
583 return 'дня'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
584 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
585 return 'вечара'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
586 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
587 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
588 ordinalParse: /\d{1,2}-(і|ы|га)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
589 ordinal: function (number, period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
590 switch (period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
591 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
592 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
593 case 'DDD': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
594 case 'w': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
595 case 'W': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
596 return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
597 case 'D': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
598 return number + '-га'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
599 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
600 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
601 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
602 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
603 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
604 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
605 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
606 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
607 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
608 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
609 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
610 //! locale : bulgarian (bg) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
611 //! author : Krasen Borisov : https://github.com/kraz |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
612 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
613 var bg = moment.defineLocale('bg', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
614 months : 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
615 monthsShort : 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
616 weekdays : 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
617 weekdaysShort : 'нед_пон_вто_сря_чет_пет_съб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
618 weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
619 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
620 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
621 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
622 L : 'D.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
623 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
624 LLL : 'D MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
625 LLLL : 'dddd, D MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
626 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
627 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
628 sameDay : '[Днес в] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
629 nextDay : '[Утре в] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
630 nextWeek : 'dddd [в] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
631 lastDay : '[Вчера в] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
632 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
633 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
634 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
635 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
636 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
637 return '[В изминалата] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
638 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
639 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
640 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
641 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
642 return '[В изминалия] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
643 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
644 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
645 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
646 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
647 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
648 future : 'след %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
649 past : 'преди %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
650 s : 'няколко секунди', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
651 m : 'минута', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
652 mm : '%d минути', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
653 h : 'час', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
654 hh : '%d часа', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
655 d : 'ден', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
656 dd : '%d дни', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
657 M : 'месец', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
658 MM : '%d месеца', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
659 y : 'година', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
660 yy : '%d години' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
661 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
662 ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
663 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
664 var lastDigit = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
665 last2Digits = number % 100; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
666 if (number === 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
667 return number + '-ев'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
668 } else if (last2Digits === 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
669 return number + '-ен'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
670 } else if (last2Digits > 10 && last2Digits < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
671 return number + '-ти'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
672 } else if (lastDigit === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
673 return number + '-ви'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
674 } else if (lastDigit === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
675 return number + '-ри'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
676 } else if (lastDigit === 7 || lastDigit === 8) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
677 return number + '-ми'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
678 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
679 return number + '-ти'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
680 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
681 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
682 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
683 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
684 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
685 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
686 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
687 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
688 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
689 //! locale : Bengali (bn) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
690 //! author : Kaushik Gandhi : https://github.com/kaushikgandhi |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
691 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
692 var bn__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
693 '1': '১', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
694 '2': '২', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
695 '3': '৩', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
696 '4': '৪', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
697 '5': '৫', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
698 '6': '৬', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
699 '7': '৭', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
700 '8': '৮', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
701 '9': '৯', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
702 '0': '০' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
703 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
704 bn__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
705 '১': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
706 '২': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
707 '৩': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
708 '৪': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
709 '৫': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
710 '৬': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
711 '৭': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
712 '৮': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
713 '৯': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
714 '০': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
715 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
716 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
717 var bn = moment.defineLocale('bn', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
718 months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
719 monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
720 weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
721 weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
722 weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
723 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
724 LT : 'A h:mm সময়', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
725 LTS : 'A h:mm:ss সময়', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
726 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
727 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
728 LLL : 'D MMMM YYYY, A h:mm সময়', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
729 LLLL : 'dddd, D MMMM YYYY, A h:mm সময়' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
730 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
731 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
732 sameDay : '[আজ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
733 nextDay : '[আগামীকাল] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
734 nextWeek : 'dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
735 lastDay : '[গতকাল] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
736 lastWeek : '[গত] dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
737 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
738 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
739 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
740 future : '%s পরে', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
741 past : '%s আগে', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
742 s : 'কএক সেকেন্ড', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
743 m : 'এক মিনিট', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
744 mm : '%d মিনিট', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
745 h : 'এক ঘন্টা', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
746 hh : '%d ঘন্টা', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
747 d : 'এক দিন', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
748 dd : '%d দিন', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
749 M : 'এক মাস', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
750 MM : '%d মাস', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
751 y : 'এক বছর', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
752 yy : '%d বছর' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
753 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
754 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
755 return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
756 return bn__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
757 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
758 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
759 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
760 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
761 return bn__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
762 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
763 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
764 meridiemParse: /রাত|সকাল|দুপুর|বিকেল|রাত/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
765 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
766 return /^(দুপুর|বিকেল|রাত)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
767 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
768 //Bengali is a vast language its spoken |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
769 //in different forms in various parts of the world. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
770 //I have just generalized with most common one used |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
771 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
772 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
773 return 'রাত'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
774 } else if (hour < 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
775 return 'সকাল'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
776 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
777 return 'দুপুর'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
778 } else if (hour < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
779 return 'বিকেল'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
780 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
781 return 'রাত'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
782 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
783 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
784 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
785 dow : 0, // Sunday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
786 doy : 6 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
787 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
788 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
789 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
790 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
791 //! locale : tibetan (bo) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
792 //! author : Thupten N. Chakrishar : https://github.com/vajradog |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
793 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
794 var bo__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
795 '1': '༡', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
796 '2': '༢', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
797 '3': '༣', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
798 '4': '༤', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
799 '5': '༥', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
800 '6': '༦', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
801 '7': '༧', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
802 '8': '༨', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
803 '9': '༩', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
804 '0': '༠' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
805 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
806 bo__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
807 '༡': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
808 '༢': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
809 '༣': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
810 '༤': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
811 '༥': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
812 '༦': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
813 '༧': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
814 '༨': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
815 '༩': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
816 '༠': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
817 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
818 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
819 var bo = moment.defineLocale('bo', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
820 months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
821 monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
822 weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
823 weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
824 weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
825 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
826 LT : 'A h:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
827 LTS : 'A h:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
828 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
829 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
830 LLL : 'D MMMM YYYY, A h:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
831 LLLL : 'dddd, D MMMM YYYY, A h:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
832 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
833 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
834 sameDay : '[དི་རིང] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
835 nextDay : '[སང་ཉིན] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
836 nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
837 lastDay : '[ཁ་སང] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
838 lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
839 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
840 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
841 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
842 future : '%s ལ་', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
843 past : '%s སྔན་ལ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
844 s : 'ལམ་སང', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
845 m : 'སྐར་མ་གཅིག', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
846 mm : '%d སྐར་མ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
847 h : 'ཆུ་ཚོད་གཅིག', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
848 hh : '%d ཆུ་ཚོད', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
849 d : 'ཉིན་གཅིག', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
850 dd : '%d ཉིན་', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
851 M : 'ཟླ་བ་གཅིག', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
852 MM : '%d ཟླ་བ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
853 y : 'ལོ་གཅིག', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
854 yy : '%d ལོ' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
855 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
856 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
857 return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
858 return bo__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
859 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
860 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
861 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
862 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
863 return bo__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
864 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
865 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
866 meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
867 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
868 return /^(ཉིན་གུང|དགོང་དག|མཚན་མོ)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
869 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
870 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
871 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
872 return 'མཚན་མོ'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
873 } else if (hour < 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
874 return 'ཞོགས་ཀས'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
875 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
876 return 'ཉིན་གུང'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
877 } else if (hour < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
878 return 'དགོང་དག'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
879 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
880 return 'མཚན་མོ'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
881 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
882 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
883 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
884 dow : 0, // Sunday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
885 doy : 6 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
886 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
887 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
888 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
889 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
890 //! locale : breton (br) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
891 //! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
892 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
893 function relativeTimeWithMutation(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
894 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
895 'mm': 'munutenn', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
896 'MM': 'miz', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
897 'dd': 'devezh' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
898 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
899 return number + ' ' + mutation(format[key], number); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
900 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
901 function specialMutationForYears(number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
902 switch (lastNumber(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
903 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
904 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
905 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
906 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
907 case 9: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
908 return number + ' bloaz'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
909 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
910 return number + ' vloaz'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
911 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
912 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
913 function lastNumber(number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
914 if (number > 9) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
915 return lastNumber(number % 10); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
916 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
917 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
918 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
919 function mutation(text, number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
920 if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
921 return softMutation(text); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
922 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
923 return text; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
924 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
925 function softMutation(text) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
926 var mutationTable = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
927 'm': 'v', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
928 'b': 'v', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
929 'd': 'z' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
930 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
931 if (mutationTable[text.charAt(0)] === undefined) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
932 return text; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
933 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
934 return mutationTable[text.charAt(0)] + text.substring(1); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
935 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
936 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
937 var br = moment.defineLocale('br', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
938 months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
939 monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
940 weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
941 weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
942 weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
943 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
944 LT : 'h[e]mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
945 LTS : 'h[e]mm:ss A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
946 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
947 LL : 'D [a viz] MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
948 LLL : 'D [a viz] MMMM YYYY h[e]mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
949 LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
950 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
951 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
952 sameDay : '[Hiziv da] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
953 nextDay : '[Warc\'hoazh da] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
954 nextWeek : 'dddd [da] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
955 lastDay : '[Dec\'h da] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
956 lastWeek : 'dddd [paset da] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
957 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
958 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
959 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
960 future : 'a-benn %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
961 past : '%s \'zo', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
962 s : 'un nebeud segondennoù', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
963 m : 'ur vunutenn', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
964 mm : relativeTimeWithMutation, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
965 h : 'un eur', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
966 hh : '%d eur', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
967 d : 'un devezh', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
968 dd : relativeTimeWithMutation, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
969 M : 'ur miz', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
970 MM : relativeTimeWithMutation, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
971 y : 'ur bloaz', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
972 yy : specialMutationForYears |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
973 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
974 ordinalParse: /\d{1,2}(añ|vet)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
975 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
976 var output = (number === 1) ? 'añ' : 'vet'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
977 return number + output; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
978 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
979 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
980 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
981 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
982 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
983 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
984 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
985 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
986 //! locale : bosnian (bs) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
987 //! author : Nedim Cholich : https://github.com/frontyard |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
988 //! based on (hr) translation by Bojan Marković |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
989 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
990 function bs__translate(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
991 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
992 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
993 case 'm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
994 return withoutSuffix ? 'jedna minuta' : 'jedne minute'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
995 case 'mm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
996 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
997 result += 'minuta'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
998 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
999 result += 'minute'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1000 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1001 result += 'minuta'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1002 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1003 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1004 case 'h': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1005 return withoutSuffix ? 'jedan sat' : 'jednog sata'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1006 case 'hh': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1007 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1008 result += 'sat'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1009 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1010 result += 'sata'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1011 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1012 result += 'sati'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1013 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1014 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1015 case 'dd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1016 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1017 result += 'dan'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1018 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1019 result += 'dana'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1020 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1021 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1022 case 'MM': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1023 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1024 result += 'mjesec'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1025 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1026 result += 'mjeseca'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1027 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1028 result += 'mjeseci'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1029 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1030 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1031 case 'yy': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1032 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1033 result += 'godina'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1034 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1035 result += 'godine'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1036 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1037 result += 'godina'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1038 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1039 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1040 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1041 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1042 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1043 var bs = moment.defineLocale('bs', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1044 months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1045 monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1046 weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1047 weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1048 weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1049 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1050 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1051 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1052 L : 'DD. MM. YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1053 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1054 LLL : 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1055 LLLL : 'dddd, D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1056 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1057 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1058 sameDay : '[danas u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1059 nextDay : '[sutra u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1060 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1061 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1062 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1063 return '[u] [nedjelju] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1064 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1065 return '[u] [srijedu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1066 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1067 return '[u] [subotu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1068 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1069 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1070 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1071 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1072 return '[u] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1073 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1074 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1075 lastDay : '[jučer u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1076 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1077 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1078 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1079 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1080 return '[prošlu] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1081 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1082 return '[prošle] [subote] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1083 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1084 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1085 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1086 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1087 return '[prošli] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1088 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1089 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1090 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1091 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1092 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1093 future : 'za %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1094 past : 'prije %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1095 s : 'par sekundi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1096 m : bs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1097 mm : bs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1098 h : bs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1099 hh : bs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1100 d : 'dan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1101 dd : bs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1102 M : 'mjesec', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1103 MM : bs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1104 y : 'godinu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1105 yy : bs__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1106 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1107 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1108 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1109 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1110 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1111 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1112 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1113 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1114 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1115 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1116 //! locale : catalan (ca) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1117 //! author : Juan G. Hurtado : https://github.com/juanghurtado |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1118 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1119 var ca = moment.defineLocale('ca', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1120 months : 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1121 monthsShort : 'gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1122 weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1123 weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1124 weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1125 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1126 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1127 LTS : 'LT:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1128 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1129 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1130 LLL : 'D MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1131 LLLL : 'dddd D MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1132 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1133 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1134 sameDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1135 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1136 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1137 nextDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1138 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1139 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1140 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1141 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1142 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1143 lastDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1144 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1145 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1146 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1147 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1148 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1149 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1150 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1151 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1152 future : 'en %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1153 past : 'fa %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1154 s : 'uns segons', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1155 m : 'un minut', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1156 mm : '%d minuts', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1157 h : 'una hora', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1158 hh : '%d hores', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1159 d : 'un dia', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1160 dd : '%d dies', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1161 M : 'un mes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1162 MM : '%d mesos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1163 y : 'un any', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1164 yy : '%d anys' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1165 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1166 ordinalParse: /\d{1,2}(r|n|t|è|a)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1167 ordinal : function (number, period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1168 var output = (number === 1) ? 'r' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1169 (number === 2) ? 'n' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1170 (number === 3) ? 'r' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1171 (number === 4) ? 't' : 'è'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1172 if (period === 'w' || period === 'W') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1173 output = 'a'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1174 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1175 return number + output; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1176 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1177 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1178 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1179 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1180 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1181 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1182 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1183 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1184 //! locale : czech (cs) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1185 //! author : petrbela : https://github.com/petrbela |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1186 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1187 var cs__months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1188 cs__monthsShort = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1189 function cs__plural(n) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1190 return (n > 1) && (n < 5) && (~~(n / 10) !== 1); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1191 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1192 function cs__translate(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1193 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1194 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1195 case 's': // a few seconds / in a few seconds / a few seconds ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1196 return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1197 case 'm': // a minute / in a minute / a minute ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1198 return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1199 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1200 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1201 return result + (cs__plural(number) ? 'minuty' : 'minut'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1202 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1203 return result + 'minutami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1204 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1205 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1206 case 'h': // an hour / in an hour / an hour ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1207 return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1208 case 'hh': // 9 hours / in 9 hours / 9 hours ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1209 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1210 return result + (cs__plural(number) ? 'hodiny' : 'hodin'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1211 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1212 return result + 'hodinami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1213 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1214 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1215 case 'd': // a day / in a day / a day ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1216 return (withoutSuffix || isFuture) ? 'den' : 'dnem'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1217 case 'dd': // 9 days / in 9 days / 9 days ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1218 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1219 return result + (cs__plural(number) ? 'dny' : 'dní'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1220 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1221 return result + 'dny'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1222 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1223 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1224 case 'M': // a month / in a month / a month ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1225 return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1226 case 'MM': // 9 months / in 9 months / 9 months ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1227 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1228 return result + (cs__plural(number) ? 'měsíce' : 'měsíců'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1229 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1230 return result + 'měsíci'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1231 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1232 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1233 case 'y': // a year / in a year / a year ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1234 return (withoutSuffix || isFuture) ? 'rok' : 'rokem'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1235 case 'yy': // 9 years / in 9 years / 9 years ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1236 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1237 return result + (cs__plural(number) ? 'roky' : 'let'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1238 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1239 return result + 'lety'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1240 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1241 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1242 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1243 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1244 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1245 var cs = moment.defineLocale('cs', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1246 months : cs__months, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1247 monthsShort : cs__monthsShort, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1248 monthsParse : (function (months, monthsShort) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1249 var i, _monthsParse = []; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1250 for (i = 0; i < 12; i++) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1251 // use custom parser to solve problem with July (červenec) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1252 _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1253 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1254 return _monthsParse; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1255 }(cs__months, cs__monthsShort)), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1256 weekdays : 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1257 weekdaysShort : 'ne_po_út_st_čt_pá_so'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1258 weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1259 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1260 LT: 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1261 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1262 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1263 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1264 LLL : 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1265 LLLL : 'dddd D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1266 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1267 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1268 sameDay: '[dnes v] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1269 nextDay: '[zítra v] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1270 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1271 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1272 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1273 return '[v neděli v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1274 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1275 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1276 return '[v] dddd [v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1277 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1278 return '[ve středu v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1279 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1280 return '[ve čtvrtek v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1281 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1282 return '[v pátek v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1283 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1284 return '[v sobotu v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1285 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1286 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1287 lastDay: '[včera v] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1288 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1289 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1290 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1291 return '[minulou neděli v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1292 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1293 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1294 return '[minulé] dddd [v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1295 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1296 return '[minulou středu v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1297 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1298 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1299 return '[minulý] dddd [v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1300 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1301 return '[minulou sobotu v] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1302 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1303 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1304 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1305 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1306 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1307 future : 'za %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1308 past : 'před %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1309 s : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1310 m : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1311 mm : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1312 h : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1313 hh : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1314 d : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1315 dd : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1316 M : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1317 MM : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1318 y : cs__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1319 yy : cs__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1320 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1321 ordinalParse : /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1322 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1323 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1324 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1325 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1326 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1327 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1328 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1329 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1330 //! locale : chuvash (cv) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1331 //! author : Anatoly Mironov : https://github.com/mirontoli |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1332 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1333 var cv = moment.defineLocale('cv', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1334 months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1335 monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1336 weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1337 weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1338 weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1339 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1340 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1341 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1342 L : 'DD-MM-YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1343 LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1344 LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1345 LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1346 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1347 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1348 sameDay: '[Паян] LT [сехетре]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1349 nextDay: '[Ыран] LT [сехетре]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1350 lastDay: '[Ӗнер] LT [сехетре]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1351 nextWeek: '[Ҫитес] dddd LT [сехетре]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1352 lastWeek: '[Иртнӗ] dddd LT [сехетре]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1353 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1354 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1355 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1356 future : function (output) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1357 var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1358 return output + affix; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1359 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1360 past : '%s каялла', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1361 s : 'пӗр-ик ҫеккунт', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1362 m : 'пӗр минут', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1363 mm : '%d минут', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1364 h : 'пӗр сехет', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1365 hh : '%d сехет', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1366 d : 'пӗр кун', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1367 dd : '%d кун', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1368 M : 'пӗр уйӑх', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1369 MM : '%d уйӑх', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1370 y : 'пӗр ҫул', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1371 yy : '%d ҫул' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1372 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1373 ordinalParse: /\d{1,2}-мӗш/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1374 ordinal : '%d-мӗш', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1375 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1376 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1377 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1378 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1379 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1380 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1381 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1382 //! locale : Welsh (cy) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1383 //! author : Robert Allen |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1384 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1385 var cy = moment.defineLocale('cy', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1386 months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1387 monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1388 weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1389 weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1390 weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1391 // time formats are the same as en-gb |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1392 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1393 LT: 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1394 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1395 L: 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1396 LL: 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1397 LLL: 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1398 LLLL: 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1399 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1400 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1401 sameDay: '[Heddiw am] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1402 nextDay: '[Yfory am] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1403 nextWeek: 'dddd [am] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1404 lastDay: '[Ddoe am] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1405 lastWeek: 'dddd [diwethaf am] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1406 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1407 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1408 relativeTime: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1409 future: 'mewn %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1410 past: '%s yn ôl', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1411 s: 'ychydig eiliadau', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1412 m: 'munud', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1413 mm: '%d munud', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1414 h: 'awr', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1415 hh: '%d awr', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1416 d: 'diwrnod', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1417 dd: '%d diwrnod', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1418 M: 'mis', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1419 MM: '%d mis', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1420 y: 'blwyddyn', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1421 yy: '%d flynedd' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1422 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1423 ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1424 // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1425 ordinal: function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1426 var b = number, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1427 output = '', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1428 lookup = [ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1429 '', 'af', 'il', 'ydd', 'ydd', 'ed', 'ed', 'ed', 'fed', 'fed', 'fed', // 1af to 10fed |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1430 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'eg', 'fed', 'eg', 'fed' // 11eg to 20fed |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1431 ]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1432 if (b > 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1433 if (b === 40 || b === 50 || b === 60 || b === 80 || b === 100) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1434 output = 'fed'; // not 30ain, 70ain or 90ain |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1435 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1436 output = 'ain'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1437 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1438 } else if (b > 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1439 output = lookup[b]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1440 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1441 return number + output; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1442 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1443 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1444 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1445 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1446 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1447 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1448 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1449 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1450 //! locale : danish (da) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1451 //! author : Ulrik Nielsen : https://github.com/mrbase |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1452 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1453 var da = moment.defineLocale('da', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1454 months : 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1455 monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1456 weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1457 weekdaysShort : 'søn_man_tir_ons_tor_fre_lør'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1458 weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1459 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1460 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1461 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1462 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1463 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1464 LLL : 'D. MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1465 LLLL : 'dddd [d.] D. MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1466 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1467 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1468 sameDay : '[I dag kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1469 nextDay : '[I morgen kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1470 nextWeek : 'dddd [kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1471 lastDay : '[I går kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1472 lastWeek : '[sidste] dddd [kl] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1473 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1474 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1475 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1476 future : 'om %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1477 past : '%s siden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1478 s : 'få sekunder', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1479 m : 'et minut', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1480 mm : '%d minutter', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1481 h : 'en time', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1482 hh : '%d timer', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1483 d : 'en dag', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1484 dd : '%d dage', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1485 M : 'en måned', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1486 MM : '%d måneder', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1487 y : 'et år', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1488 yy : '%d år' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1489 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1490 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1491 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1492 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1493 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1494 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1495 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1496 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1497 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1498 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1499 //! locale : austrian german (de-at) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1500 //! author : lluchs : https://github.com/lluchs |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1501 //! author: Menelion Elensúle: https://github.com/Oire |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1502 //! author : Martin Groller : https://github.com/MadMG |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1503 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1504 function de_at__processRelativeTime(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1505 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1506 'm': ['eine Minute', 'einer Minute'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1507 'h': ['eine Stunde', 'einer Stunde'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1508 'd': ['ein Tag', 'einem Tag'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1509 'dd': [number + ' Tage', number + ' Tagen'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1510 'M': ['ein Monat', 'einem Monat'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1511 'MM': [number + ' Monate', number + ' Monaten'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1512 'y': ['ein Jahr', 'einem Jahr'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1513 'yy': [number + ' Jahre', number + ' Jahren'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1514 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1515 return withoutSuffix ? format[key][0] : format[key][1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1516 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1517 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1518 var de_at = moment.defineLocale('de-at', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1519 months : 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1520 monthsShort : 'Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1521 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1522 weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1523 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1524 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1525 LT: 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1526 LTS: 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1527 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1528 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1529 LLL : 'D. MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1530 LLLL : 'dddd, D. MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1531 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1532 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1533 sameDay: '[Heute um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1534 sameElse: 'L', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1535 nextDay: '[Morgen um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1536 nextWeek: 'dddd [um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1537 lastDay: '[Gestern um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1538 lastWeek: '[letzten] dddd [um] LT [Uhr]' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1539 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1540 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1541 future : 'in %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1542 past : 'vor %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1543 s : 'ein paar Sekunden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1544 m : de_at__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1545 mm : '%d Minuten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1546 h : de_at__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1547 hh : '%d Stunden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1548 d : de_at__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1549 dd : de_at__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1550 M : de_at__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1551 MM : de_at__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1552 y : de_at__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1553 yy : de_at__processRelativeTime |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1554 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1555 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1556 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1557 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1558 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1559 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1560 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1561 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1562 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1563 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1564 //! locale : german (de) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1565 //! author : lluchs : https://github.com/lluchs |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1566 //! author: Menelion Elensúle: https://github.com/Oire |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1567 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1568 function de__processRelativeTime(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1569 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1570 'm': ['eine Minute', 'einer Minute'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1571 'h': ['eine Stunde', 'einer Stunde'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1572 'd': ['ein Tag', 'einem Tag'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1573 'dd': [number + ' Tage', number + ' Tagen'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1574 'M': ['ein Monat', 'einem Monat'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1575 'MM': [number + ' Monate', number + ' Monaten'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1576 'y': ['ein Jahr', 'einem Jahr'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1577 'yy': [number + ' Jahre', number + ' Jahren'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1578 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1579 return withoutSuffix ? format[key][0] : format[key][1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1580 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1581 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1582 var de = moment.defineLocale('de', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1583 months : 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1584 monthsShort : 'Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1585 weekdays : 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1586 weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1587 weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1588 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1589 LT: 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1590 LTS: 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1591 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1592 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1593 LLL : 'D. MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1594 LLLL : 'dddd, D. MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1595 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1596 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1597 sameDay: '[Heute um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1598 sameElse: 'L', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1599 nextDay: '[Morgen um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1600 nextWeek: 'dddd [um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1601 lastDay: '[Gestern um] LT [Uhr]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1602 lastWeek: '[letzten] dddd [um] LT [Uhr]' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1603 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1604 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1605 future : 'in %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1606 past : 'vor %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1607 s : 'ein paar Sekunden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1608 m : de__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1609 mm : '%d Minuten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1610 h : de__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1611 hh : '%d Stunden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1612 d : de__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1613 dd : de__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1614 M : de__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1615 MM : de__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1616 y : de__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1617 yy : de__processRelativeTime |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1618 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1619 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1620 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1621 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1622 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1623 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1624 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1625 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1626 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1627 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1628 //! locale : modern greek (el) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1629 //! author : Aggelos Karalias : https://github.com/mehiel |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1630 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1631 var el = moment.defineLocale('el', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1632 monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1633 monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1634 months : function (momentToFormat, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1635 if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1636 return this._monthsGenitiveEl[momentToFormat.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1637 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1638 return this._monthsNominativeEl[momentToFormat.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1639 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1640 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1641 monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1642 weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1643 weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1644 weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1645 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1646 if (hours > 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1647 return isLower ? 'μμ' : 'ΜΜ'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1648 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1649 return isLower ? 'πμ' : 'ΠΜ'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1650 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1651 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1652 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1653 return ((input + '').toLowerCase()[0] === 'μ'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1654 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1655 meridiemParse : /[ΠΜ]\.?Μ?\.?/i, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1656 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1657 LT : 'h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1658 LTS : 'h:mm:ss A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1659 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1660 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1661 LLL : 'D MMMM YYYY h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1662 LLLL : 'dddd, D MMMM YYYY h:mm A' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1663 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1664 calendarEl : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1665 sameDay : '[Σήμερα {}] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1666 nextDay : '[Αύριο {}] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1667 nextWeek : 'dddd [{}] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1668 lastDay : '[Χθες {}] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1669 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1670 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1671 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1672 return '[το προηγούμενο] dddd [{}] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1673 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1674 return '[την προηγούμενη] dddd [{}] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1675 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1676 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1677 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1678 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1679 calendar : function (key, mom) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1680 var output = this._calendarEl[key], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1681 hours = mom && mom.hours(); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1682 if (typeof output === 'function') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1683 output = output.apply(mom); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1684 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1685 return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις')); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1686 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1687 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1688 future : 'σε %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1689 past : '%s πριν', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1690 s : 'λίγα δευτερόλεπτα', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1691 m : 'ένα λεπτό', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1692 mm : '%d λεπτά', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1693 h : 'μία ώρα', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1694 hh : '%d ώρες', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1695 d : 'μία μέρα', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1696 dd : '%d μέρες', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1697 M : 'ένας μήνας', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1698 MM : '%d μήνες', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1699 y : 'ένας χρόνος', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1700 yy : '%d χρόνια' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1701 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1702 ordinalParse: /\d{1,2}η/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1703 ordinal: '%dη', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1704 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1705 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1706 doy : 4 // The week that contains Jan 4st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1707 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1708 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1709 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1710 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1711 //! locale : australian english (en-au) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1712 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1713 var en_au = moment.defineLocale('en-au', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1714 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1715 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1716 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1717 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1718 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1719 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1720 LT : 'h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1721 LTS : 'h:mm:ss A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1722 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1723 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1724 LLL : 'D MMMM YYYY h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1725 LLLL : 'dddd, D MMMM YYYY h:mm A' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1726 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1727 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1728 sameDay : '[Today at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1729 nextDay : '[Tomorrow at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1730 nextWeek : 'dddd [at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1731 lastDay : '[Yesterday at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1732 lastWeek : '[Last] dddd [at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1733 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1734 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1735 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1736 future : 'in %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1737 past : '%s ago', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1738 s : 'a few seconds', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1739 m : 'a minute', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1740 mm : '%d minutes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1741 h : 'an hour', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1742 hh : '%d hours', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1743 d : 'a day', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1744 dd : '%d days', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1745 M : 'a month', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1746 MM : '%d months', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1747 y : 'a year', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1748 yy : '%d years' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1749 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1750 ordinalParse: /\d{1,2}(st|nd|rd|th)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1751 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1752 var b = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1753 output = (~~(number % 100 / 10) === 1) ? 'th' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1754 (b === 1) ? 'st' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1755 (b === 2) ? 'nd' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1756 (b === 3) ? 'rd' : 'th'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1757 return number + output; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1758 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1759 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1760 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1761 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1762 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1763 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1764 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1765 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1766 //! locale : canadian english (en-ca) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1767 //! author : Jonathan Abourbih : https://github.com/jonbca |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1768 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1769 var en_ca = moment.defineLocale('en-ca', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1770 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1771 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1772 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1773 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1774 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1775 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1776 LT : 'h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1777 LTS : 'h:mm:ss A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1778 L : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1779 LL : 'D MMMM, YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1780 LLL : 'D MMMM, YYYY h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1781 LLLL : 'dddd, D MMMM, YYYY h:mm A' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1782 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1783 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1784 sameDay : '[Today at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1785 nextDay : '[Tomorrow at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1786 nextWeek : 'dddd [at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1787 lastDay : '[Yesterday at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1788 lastWeek : '[Last] dddd [at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1789 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1790 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1791 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1792 future : 'in %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1793 past : '%s ago', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1794 s : 'a few seconds', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1795 m : 'a minute', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1796 mm : '%d minutes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1797 h : 'an hour', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1798 hh : '%d hours', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1799 d : 'a day', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1800 dd : '%d days', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1801 M : 'a month', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1802 MM : '%d months', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1803 y : 'a year', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1804 yy : '%d years' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1805 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1806 ordinalParse: /\d{1,2}(st|nd|rd|th)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1807 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1808 var b = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1809 output = (~~(number % 100 / 10) === 1) ? 'th' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1810 (b === 1) ? 'st' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1811 (b === 2) ? 'nd' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1812 (b === 3) ? 'rd' : 'th'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1813 return number + output; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1814 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1815 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1816 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1817 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1818 //! locale : great britain english (en-gb) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1819 //! author : Chris Gedrim : https://github.com/chrisgedrim |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1820 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1821 var en_gb = moment.defineLocale('en-gb', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1822 months : 'January_February_March_April_May_June_July_August_September_October_November_December'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1823 monthsShort : 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1824 weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1825 weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1826 weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1827 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1828 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1829 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1830 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1831 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1832 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1833 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1834 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1835 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1836 sameDay : '[Today at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1837 nextDay : '[Tomorrow at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1838 nextWeek : 'dddd [at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1839 lastDay : '[Yesterday at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1840 lastWeek : '[Last] dddd [at] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1841 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1842 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1843 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1844 future : 'in %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1845 past : '%s ago', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1846 s : 'a few seconds', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1847 m : 'a minute', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1848 mm : '%d minutes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1849 h : 'an hour', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1850 hh : '%d hours', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1851 d : 'a day', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1852 dd : '%d days', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1853 M : 'a month', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1854 MM : '%d months', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1855 y : 'a year', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1856 yy : '%d years' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1857 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1858 ordinalParse: /\d{1,2}(st|nd|rd|th)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1859 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1860 var b = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1861 output = (~~(number % 100 / 10) === 1) ? 'th' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1862 (b === 1) ? 'st' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1863 (b === 2) ? 'nd' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1864 (b === 3) ? 'rd' : 'th'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1865 return number + output; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1866 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1867 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1868 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1869 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1870 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1871 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1872 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1873 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1874 //! locale : esperanto (eo) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1875 //! author : Colin Dean : https://github.com/colindean |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1876 //! komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1877 //! Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni! |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1878 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1879 var eo = moment.defineLocale('eo', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1880 months : 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1881 monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1882 weekdays : 'Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1883 weekdaysShort : 'Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1884 weekdaysMin : 'Di_Lu_Ma_Me_Ĵa_Ve_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1885 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1886 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1887 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1888 L : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1889 LL : 'D[-an de] MMMM, YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1890 LLL : 'D[-an de] MMMM, YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1891 LLLL : 'dddd, [la] D[-an de] MMMM, YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1892 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1893 meridiemParse: /[ap]\.t\.m/i, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1894 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1895 return input.charAt(0).toLowerCase() === 'p'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1896 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1897 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1898 if (hours > 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1899 return isLower ? 'p.t.m.' : 'P.T.M.'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1900 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1901 return isLower ? 'a.t.m.' : 'A.T.M.'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1902 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1903 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1904 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1905 sameDay : '[Hodiaŭ je] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1906 nextDay : '[Morgaŭ je] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1907 nextWeek : 'dddd [je] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1908 lastDay : '[Hieraŭ je] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1909 lastWeek : '[pasinta] dddd [je] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1910 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1911 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1912 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1913 future : 'je %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1914 past : 'antaŭ %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1915 s : 'sekundoj', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1916 m : 'minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1917 mm : '%d minutoj', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1918 h : 'horo', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1919 hh : '%d horoj', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1920 d : 'tago',//ne 'diurno', ĉar estas uzita por proksimumo |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1921 dd : '%d tagoj', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1922 M : 'monato', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1923 MM : '%d monatoj', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1924 y : 'jaro', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1925 yy : '%d jaroj' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1926 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1927 ordinalParse: /\d{1,2}a/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1928 ordinal : '%da', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1929 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1930 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1931 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1932 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1933 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1934 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1935 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1936 //! locale : spanish (es) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1937 //! author : Julio Napurí : https://github.com/julionc |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1938 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1939 var monthsShortDot = 'Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1940 es__monthsShort = 'Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1941 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1942 var es = moment.defineLocale('es', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1943 months : 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1944 monthsShort : function (m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1945 if (/-MMM-/.test(format)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1946 return es__monthsShort[m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1947 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1948 return monthsShortDot[m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1949 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1950 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1951 weekdays : 'Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1952 weekdaysShort : 'Dom._Lun._Mar._Mié._Jue._Vie._Sáb.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1953 weekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1954 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1955 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1956 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1957 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1958 LL : 'D [de] MMMM [de] YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1959 LLL : 'D [de] MMMM [de] YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1960 LLLL : 'dddd, D [de] MMMM [de] YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1961 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1962 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1963 sameDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1964 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1965 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1966 nextDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1967 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1968 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1969 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1970 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1971 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1972 lastDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1973 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1974 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1975 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1976 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1977 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1978 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1979 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1980 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1981 future : 'en %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1982 past : 'hace %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1983 s : 'unos segundos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1984 m : 'un minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1985 mm : '%d minutos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1986 h : 'una hora', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1987 hh : '%d horas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1988 d : 'un día', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1989 dd : '%d días', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1990 M : 'un mes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1991 MM : '%d meses', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1992 y : 'un año', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1993 yy : '%d años' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1994 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1995 ordinalParse : /\d{1,2}º/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1996 ordinal : '%dº', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1997 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1998 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
1999 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2000 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2001 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2002 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2003 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2004 //! locale : estonian (et) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2005 //! author : Henry Kehlmann : https://github.com/madhenry |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2006 //! improvements : Illimar Tambek : https://github.com/ragulka |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2007 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2008 function et__processRelativeTime(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2009 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2010 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2011 'm' : ['ühe minuti', 'üks minut'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2012 'mm': [number + ' minuti', number + ' minutit'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2013 'h' : ['ühe tunni', 'tund aega', 'üks tund'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2014 'hh': [number + ' tunni', number + ' tundi'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2015 'd' : ['ühe päeva', 'üks päev'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2016 'M' : ['kuu aja', 'kuu aega', 'üks kuu'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2017 'MM': [number + ' kuu', number + ' kuud'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2018 'y' : ['ühe aasta', 'aasta', 'üks aasta'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2019 'yy': [number + ' aasta', number + ' aastat'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2020 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2021 if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2022 return format[key][2] ? format[key][2] : format[key][1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2023 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2024 return isFuture ? format[key][0] : format[key][1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2025 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2026 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2027 var et = moment.defineLocale('et', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2028 months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2029 monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2030 weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2031 weekdaysShort : 'P_E_T_K_N_R_L'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2032 weekdaysMin : 'P_E_T_K_N_R_L'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2033 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2034 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2035 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2036 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2037 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2038 LLL : 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2039 LLLL : 'dddd, D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2040 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2041 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2042 sameDay : '[Täna,] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2043 nextDay : '[Homme,] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2044 nextWeek : '[Järgmine] dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2045 lastDay : '[Eile,] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2046 lastWeek : '[Eelmine] dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2047 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2048 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2049 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2050 future : '%s pärast', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2051 past : '%s tagasi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2052 s : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2053 m : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2054 mm : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2055 h : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2056 hh : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2057 d : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2058 dd : '%d päeva', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2059 M : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2060 MM : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2061 y : et__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2062 yy : et__processRelativeTime |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2063 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2064 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2065 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2066 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2067 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2068 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2069 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2070 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2071 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2072 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2073 //! locale : euskara (eu) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2074 //! author : Eneko Illarramendi : https://github.com/eillarra |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2075 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2076 var eu = moment.defineLocale('eu', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2077 months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2078 monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2079 weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2080 weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2081 weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2082 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2083 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2084 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2085 L : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2086 LL : 'YYYY[ko] MMMM[ren] D[a]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2087 LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2088 LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2089 l : 'YYYY-M-D', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2090 ll : 'YYYY[ko] MMM D[a]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2091 lll : 'YYYY[ko] MMM D[a] HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2092 llll : 'ddd, YYYY[ko] MMM D[a] HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2093 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2094 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2095 sameDay : '[gaur] LT[etan]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2096 nextDay : '[bihar] LT[etan]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2097 nextWeek : 'dddd LT[etan]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2098 lastDay : '[atzo] LT[etan]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2099 lastWeek : '[aurreko] dddd LT[etan]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2100 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2101 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2102 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2103 future : '%s barru', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2104 past : 'duela %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2105 s : 'segundo batzuk', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2106 m : 'minutu bat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2107 mm : '%d minutu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2108 h : 'ordu bat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2109 hh : '%d ordu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2110 d : 'egun bat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2111 dd : '%d egun', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2112 M : 'hilabete bat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2113 MM : '%d hilabete', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2114 y : 'urte bat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2115 yy : '%d urte' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2116 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2117 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2118 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2119 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2120 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2121 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2122 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2123 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2124 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2125 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2126 //! locale : Persian (fa) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2127 //! author : Ebrahim Byagowi : https://github.com/ebraminio |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2128 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2129 var fa__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2130 '1': '۱', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2131 '2': '۲', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2132 '3': '۳', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2133 '4': '۴', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2134 '5': '۵', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2135 '6': '۶', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2136 '7': '۷', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2137 '8': '۸', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2138 '9': '۹', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2139 '0': '۰' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2140 }, fa__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2141 '۱': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2142 '۲': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2143 '۳': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2144 '۴': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2145 '۵': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2146 '۶': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2147 '۷': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2148 '۸': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2149 '۹': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2150 '۰': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2151 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2152 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2153 var fa = moment.defineLocale('fa', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2154 months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2155 monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2156 weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2157 weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2158 weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2159 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2160 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2161 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2162 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2163 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2164 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2165 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2166 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2167 meridiemParse: /قبل از ظهر|بعد از ظهر/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2168 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2169 return /بعد از ظهر/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2170 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2171 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2172 if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2173 return 'قبل از ظهر'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2174 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2175 return 'بعد از ظهر'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2176 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2177 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2178 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2179 sameDay : '[امروز ساعت] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2180 nextDay : '[فردا ساعت] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2181 nextWeek : 'dddd [ساعت] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2182 lastDay : '[دیروز ساعت] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2183 lastWeek : 'dddd [پیش] [ساعت] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2184 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2185 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2186 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2187 future : 'در %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2188 past : '%s پیش', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2189 s : 'چندین ثانیه', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2190 m : 'یک دقیقه', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2191 mm : '%d دقیقه', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2192 h : 'یک ساعت', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2193 hh : '%d ساعت', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2194 d : 'یک روز', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2195 dd : '%d روز', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2196 M : 'یک ماه', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2197 MM : '%d ماه', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2198 y : 'یک سال', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2199 yy : '%d سال' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2200 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2201 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2202 return string.replace(/[۰-۹]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2203 return fa__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2204 }).replace(/،/g, ','); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2205 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2206 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2207 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2208 return fa__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2209 }).replace(/,/g, '،'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2210 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2211 ordinalParse: /\d{1,2}م/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2212 ordinal : '%dم', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2213 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2214 dow : 6, // Saturday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2215 doy : 12 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2216 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2217 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2218 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2219 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2220 //! locale : finnish (fi) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2221 //! author : Tarmo Aidantausta : https://github.com/bleadof |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2222 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2223 var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2224 numbersFuture = [ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2225 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2226 numbersPast[7], numbersPast[8], numbersPast[9] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2227 ]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2228 function fi__translate(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2229 var result = ''; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2230 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2231 case 's': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2232 return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2233 case 'm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2234 return isFuture ? 'minuutin' : 'minuutti'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2235 case 'mm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2236 result = isFuture ? 'minuutin' : 'minuuttia'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2237 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2238 case 'h': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2239 return isFuture ? 'tunnin' : 'tunti'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2240 case 'hh': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2241 result = isFuture ? 'tunnin' : 'tuntia'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2242 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2243 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2244 return isFuture ? 'päivän' : 'päivä'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2245 case 'dd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2246 result = isFuture ? 'päivän' : 'päivää'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2247 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2248 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2249 return isFuture ? 'kuukauden' : 'kuukausi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2250 case 'MM': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2251 result = isFuture ? 'kuukauden' : 'kuukautta'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2252 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2253 case 'y': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2254 return isFuture ? 'vuoden' : 'vuosi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2255 case 'yy': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2256 result = isFuture ? 'vuoden' : 'vuotta'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2257 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2258 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2259 result = verbalNumber(number, isFuture) + ' ' + result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2260 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2261 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2262 function verbalNumber(number, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2263 return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2264 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2265 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2266 var fi = moment.defineLocale('fi', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2267 months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2268 monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2269 weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2270 weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2271 weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2272 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2273 LT : 'HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2274 LTS : 'HH.mm.ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2275 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2276 LL : 'Do MMMM[ta] YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2277 LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2278 LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2279 l : 'D.M.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2280 ll : 'Do MMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2281 lll : 'Do MMM YYYY, [klo] HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2282 llll : 'ddd, Do MMM YYYY, [klo] HH.mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2283 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2284 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2285 sameDay : '[tänään] [klo] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2286 nextDay : '[huomenna] [klo] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2287 nextWeek : 'dddd [klo] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2288 lastDay : '[eilen] [klo] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2289 lastWeek : '[viime] dddd[na] [klo] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2290 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2291 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2292 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2293 future : '%s päästä', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2294 past : '%s sitten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2295 s : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2296 m : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2297 mm : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2298 h : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2299 hh : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2300 d : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2301 dd : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2302 M : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2303 MM : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2304 y : fi__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2305 yy : fi__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2306 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2307 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2308 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2309 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2310 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2311 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2312 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2313 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2314 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2315 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2316 //! locale : faroese (fo) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2317 //! author : Ragnar Johannesen : https://github.com/ragnar123 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2318 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2319 var fo = moment.defineLocale('fo', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2320 months : 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2321 monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2322 weekdays : 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2323 weekdaysShort : 'sun_mán_týs_mik_hós_frí_ley'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2324 weekdaysMin : 'su_má_tý_mi_hó_fr_le'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2325 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2326 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2327 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2328 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2329 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2330 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2331 LLLL : 'dddd D. MMMM, YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2332 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2333 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2334 sameDay : '[Í dag kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2335 nextDay : '[Í morgin kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2336 nextWeek : 'dddd [kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2337 lastDay : '[Í gjár kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2338 lastWeek : '[síðstu] dddd [kl] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2339 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2340 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2341 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2342 future : 'um %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2343 past : '%s síðani', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2344 s : 'fá sekund', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2345 m : 'ein minutt', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2346 mm : '%d minuttir', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2347 h : 'ein tími', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2348 hh : '%d tímar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2349 d : 'ein dagur', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2350 dd : '%d dagar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2351 M : 'ein mánaði', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2352 MM : '%d mánaðir', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2353 y : 'eitt ár', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2354 yy : '%d ár' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2355 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2356 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2357 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2358 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2359 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2360 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2361 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2362 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2363 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2364 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2365 //! locale : canadian french (fr-ca) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2366 //! author : Jonathan Abourbih : https://github.com/jonbca |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2367 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2368 var fr_ca = moment.defineLocale('fr-ca', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2369 months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2370 monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2371 weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2372 weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2373 weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2374 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2375 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2376 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2377 L : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2378 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2379 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2380 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2381 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2382 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2383 sameDay: '[Aujourd\'hui à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2384 nextDay: '[Demain à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2385 nextWeek: 'dddd [à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2386 lastDay: '[Hier à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2387 lastWeek: 'dddd [dernier à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2388 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2389 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2390 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2391 future : 'dans %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2392 past : 'il y a %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2393 s : 'quelques secondes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2394 m : 'une minute', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2395 mm : '%d minutes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2396 h : 'une heure', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2397 hh : '%d heures', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2398 d : 'un jour', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2399 dd : '%d jours', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2400 M : 'un mois', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2401 MM : '%d mois', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2402 y : 'un an', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2403 yy : '%d ans' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2404 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2405 ordinalParse: /\d{1,2}(er|e)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2406 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2407 return number + (number === 1 ? 'er' : 'e'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2408 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2409 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2410 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2411 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2412 //! locale : french (fr) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2413 //! author : John Fischer : https://github.com/jfroffice |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2414 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2415 var fr = moment.defineLocale('fr', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2416 months : 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2417 monthsShort : 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2418 weekdays : 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2419 weekdaysShort : 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2420 weekdaysMin : 'Di_Lu_Ma_Me_Je_Ve_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2421 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2422 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2423 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2424 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2425 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2426 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2427 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2428 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2429 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2430 sameDay: '[Aujourd\'hui à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2431 nextDay: '[Demain à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2432 nextWeek: 'dddd [à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2433 lastDay: '[Hier à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2434 lastWeek: 'dddd [dernier à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2435 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2436 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2437 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2438 future : 'dans %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2439 past : 'il y a %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2440 s : 'quelques secondes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2441 m : 'une minute', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2442 mm : '%d minutes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2443 h : 'une heure', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2444 hh : '%d heures', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2445 d : 'un jour', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2446 dd : '%d jours', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2447 M : 'un mois', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2448 MM : '%d mois', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2449 y : 'un an', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2450 yy : '%d ans' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2451 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2452 ordinalParse: /\d{1,2}(er|)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2453 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2454 return number + (number === 1 ? 'er' : ''); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2455 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2456 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2457 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2458 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2459 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2460 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2461 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2462 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2463 //! locale : frisian (fy) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2464 //! author : Robin van der Vliet : https://github.com/robin0van0der0v |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2465 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2466 var fy__monthsShortWithDots = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2467 fy__monthsShortWithoutDots = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2468 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2469 var fy = moment.defineLocale('fy', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2470 months : 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2471 monthsShort : function (m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2472 if (/-MMM-/.test(format)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2473 return fy__monthsShortWithoutDots[m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2474 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2475 return fy__monthsShortWithDots[m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2476 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2477 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2478 weekdays : 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2479 weekdaysShort : 'si._mo._ti._wo._to._fr._so.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2480 weekdaysMin : 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2481 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2482 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2483 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2484 L : 'DD-MM-YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2485 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2486 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2487 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2488 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2489 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2490 sameDay: '[hjoed om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2491 nextDay: '[moarn om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2492 nextWeek: 'dddd [om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2493 lastDay: '[juster om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2494 lastWeek: '[ôfrûne] dddd [om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2495 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2496 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2497 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2498 future : 'oer %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2499 past : '%s lyn', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2500 s : 'in pear sekonden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2501 m : 'ien minút', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2502 mm : '%d minuten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2503 h : 'ien oere', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2504 hh : '%d oeren', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2505 d : 'ien dei', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2506 dd : '%d dagen', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2507 M : 'ien moanne', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2508 MM : '%d moannen', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2509 y : 'ien jier', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2510 yy : '%d jierren' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2511 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2512 ordinalParse: /\d{1,2}(ste|de)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2513 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2514 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2515 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2516 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2517 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2518 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2519 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2520 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2521 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2522 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2523 //! locale : galician (gl) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2524 //! author : Juan G. Hurtado : https://github.com/juanghurtado |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2525 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2526 var gl = moment.defineLocale('gl', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2527 months : 'Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2528 monthsShort : 'Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2529 weekdays : 'Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2530 weekdaysShort : 'Dom._Lun._Mar._Mér._Xov._Ven._Sáb.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2531 weekdaysMin : 'Do_Lu_Ma_Mé_Xo_Ve_Sá'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2532 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2533 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2534 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2535 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2536 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2537 LLL : 'D MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2538 LLLL : 'dddd D MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2539 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2540 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2541 sameDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2542 return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2543 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2544 nextDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2545 return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2546 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2547 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2548 return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2549 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2550 lastDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2551 return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2552 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2553 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2554 return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2555 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2556 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2557 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2558 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2559 future : function (str) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2560 if (str === 'uns segundos') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2561 return 'nuns segundos'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2562 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2563 return 'en ' + str; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2564 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2565 past : 'hai %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2566 s : 'uns segundos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2567 m : 'un minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2568 mm : '%d minutos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2569 h : 'unha hora', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2570 hh : '%d horas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2571 d : 'un día', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2572 dd : '%d días', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2573 M : 'un mes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2574 MM : '%d meses', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2575 y : 'un ano', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2576 yy : '%d anos' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2577 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2578 ordinalParse : /\d{1,2}º/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2579 ordinal : '%dº', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2580 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2581 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2582 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2583 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2584 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2585 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2586 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2587 //! locale : Hebrew (he) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2588 //! author : Tomer Cohen : https://github.com/tomer |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2589 //! author : Moshe Simantov : https://github.com/DevelopmentIL |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2590 //! author : Tal Ater : https://github.com/TalAter |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2591 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2592 var he = moment.defineLocale('he', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2593 months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2594 monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2595 weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2596 weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2597 weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2598 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2599 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2600 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2601 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2602 LL : 'D [ב]MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2603 LLL : 'D [ב]MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2604 LLLL : 'dddd, D [ב]MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2605 l : 'D/M/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2606 ll : 'D MMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2607 lll : 'D MMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2608 llll : 'ddd, D MMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2609 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2610 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2611 sameDay : '[היום ב־]LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2612 nextDay : '[מחר ב־]LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2613 nextWeek : 'dddd [בשעה] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2614 lastDay : '[אתמול ב־]LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2615 lastWeek : '[ביום] dddd [האחרון בשעה] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2616 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2617 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2618 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2619 future : 'בעוד %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2620 past : 'לפני %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2621 s : 'מספר שניות', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2622 m : 'דקה', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2623 mm : '%d דקות', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2624 h : 'שעה', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2625 hh : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2626 if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2627 return 'שעתיים'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2628 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2629 return number + ' שעות'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2630 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2631 d : 'יום', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2632 dd : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2633 if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2634 return 'יומיים'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2635 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2636 return number + ' ימים'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2637 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2638 M : 'חודש', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2639 MM : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2640 if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2641 return 'חודשיים'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2642 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2643 return number + ' חודשים'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2644 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2645 y : 'שנה', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2646 yy : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2647 if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2648 return 'שנתיים'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2649 } else if (number % 10 === 0 && number !== 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2650 return number + ' שנה'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2651 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2652 return number + ' שנים'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2653 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2654 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2655 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2656 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2657 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2658 //! locale : hindi (hi) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2659 //! author : Mayank Singhal : https://github.com/mayanksinghal |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2660 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2661 var hi__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2662 '1': '१', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2663 '2': '२', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2664 '3': '३', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2665 '4': '४', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2666 '5': '५', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2667 '6': '६', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2668 '7': '७', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2669 '8': '८', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2670 '9': '९', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2671 '0': '०' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2672 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2673 hi__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2674 '१': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2675 '२': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2676 '३': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2677 '४': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2678 '५': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2679 '६': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2680 '७': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2681 '८': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2682 '९': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2683 '०': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2684 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2685 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2686 var hi = moment.defineLocale('hi', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2687 months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2688 monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2689 weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2690 weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2691 weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2692 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2693 LT : 'A h:mm बजे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2694 LTS : 'A h:mm:ss बजे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2695 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2696 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2697 LLL : 'D MMMM YYYY, A h:mm बजे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2698 LLLL : 'dddd, D MMMM YYYY, A h:mm बजे' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2699 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2700 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2701 sameDay : '[आज] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2702 nextDay : '[कल] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2703 nextWeek : 'dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2704 lastDay : '[कल] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2705 lastWeek : '[पिछले] dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2706 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2707 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2708 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2709 future : '%s में', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2710 past : '%s पहले', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2711 s : 'कुछ ही क्षण', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2712 m : 'एक मिनट', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2713 mm : '%d मिनट', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2714 h : 'एक घंटा', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2715 hh : '%d घंटे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2716 d : 'एक दिन', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2717 dd : '%d दिन', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2718 M : 'एक महीने', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2719 MM : '%d महीने', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2720 y : 'एक वर्ष', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2721 yy : '%d वर्ष' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2722 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2723 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2724 return string.replace(/[१२३४५६७८९०]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2725 return hi__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2726 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2727 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2728 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2729 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2730 return hi__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2731 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2732 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2733 // Hindi notation for meridiems are quite fuzzy in practice. While there exists |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2734 // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2735 meridiemParse: /रात|सुबह|दोपहर|शाम/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2736 meridiemHour : function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2737 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2738 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2739 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2740 if (meridiem === 'रात') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2741 return hour < 4 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2742 } else if (meridiem === 'सुबह') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2743 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2744 } else if (meridiem === 'दोपहर') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2745 return hour >= 10 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2746 } else if (meridiem === 'शाम') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2747 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2748 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2749 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2750 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2751 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2752 return 'रात'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2753 } else if (hour < 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2754 return 'सुबह'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2755 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2756 return 'दोपहर'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2757 } else if (hour < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2758 return 'शाम'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2759 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2760 return 'रात'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2761 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2762 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2763 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2764 dow : 0, // Sunday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2765 doy : 6 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2766 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2767 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2768 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2769 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2770 //! locale : hrvatski (hr) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2771 //! author : Bojan Marković : https://github.com/bmarkovic |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2772 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2773 function hr__translate(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2774 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2775 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2776 case 'm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2777 return withoutSuffix ? 'jedna minuta' : 'jedne minute'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2778 case 'mm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2779 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2780 result += 'minuta'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2781 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2782 result += 'minute'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2783 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2784 result += 'minuta'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2785 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2786 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2787 case 'h': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2788 return withoutSuffix ? 'jedan sat' : 'jednog sata'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2789 case 'hh': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2790 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2791 result += 'sat'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2792 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2793 result += 'sata'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2794 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2795 result += 'sati'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2796 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2797 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2798 case 'dd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2799 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2800 result += 'dan'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2801 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2802 result += 'dana'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2803 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2804 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2805 case 'MM': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2806 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2807 result += 'mjesec'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2808 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2809 result += 'mjeseca'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2810 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2811 result += 'mjeseci'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2812 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2813 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2814 case 'yy': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2815 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2816 result += 'godina'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2817 } else if (number === 2 || number === 3 || number === 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2818 result += 'godine'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2819 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2820 result += 'godina'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2821 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2822 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2823 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2824 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2825 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2826 var hr = moment.defineLocale('hr', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2827 months : 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2828 monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2829 weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2830 weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2831 weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2832 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2833 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2834 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2835 L : 'DD. MM. YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2836 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2837 LLL : 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2838 LLLL : 'dddd, D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2839 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2840 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2841 sameDay : '[danas u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2842 nextDay : '[sutra u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2843 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2844 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2845 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2846 return '[u] [nedjelju] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2847 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2848 return '[u] [srijedu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2849 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2850 return '[u] [subotu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2851 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2852 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2853 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2854 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2855 return '[u] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2856 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2857 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2858 lastDay : '[jučer u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2859 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2860 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2861 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2862 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2863 return '[prošlu] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2864 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2865 return '[prošle] [subote] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2866 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2867 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2868 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2869 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2870 return '[prošli] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2871 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2872 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2873 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2874 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2875 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2876 future : 'za %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2877 past : 'prije %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2878 s : 'par sekundi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2879 m : hr__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2880 mm : hr__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2881 h : hr__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2882 hh : hr__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2883 d : 'dan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2884 dd : hr__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2885 M : 'mjesec', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2886 MM : hr__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2887 y : 'godinu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2888 yy : hr__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2889 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2890 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2891 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2892 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2893 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2894 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2895 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2896 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2897 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2898 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2899 //! locale : hungarian (hu) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2900 //! author : Adam Brunner : https://github.com/adambrunner |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2901 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2902 var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2903 function hu__translate(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2904 var num = number, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2905 suffix; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2906 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2907 case 's': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2908 return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2909 case 'm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2910 return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2911 case 'mm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2912 return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2913 case 'h': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2914 return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2915 case 'hh': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2916 return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2917 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2918 return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2919 case 'dd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2920 return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2921 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2922 return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2923 case 'MM': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2924 return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2925 case 'y': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2926 return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2927 case 'yy': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2928 return num + (isFuture || withoutSuffix ? ' év' : ' éve'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2929 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2930 return ''; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2931 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2932 function week(isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2933 return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2934 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2935 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2936 var hu = moment.defineLocale('hu', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2937 months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2938 monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2939 weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2940 weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2941 weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2942 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2943 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2944 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2945 L : 'YYYY.MM.DD.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2946 LL : 'YYYY. MMMM D.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2947 LLL : 'YYYY. MMMM D. H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2948 LLLL : 'YYYY. MMMM D., dddd H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2949 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2950 meridiemParse: /de|du/i, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2951 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2952 return input.charAt(1).toLowerCase() === 'u'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2953 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2954 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2955 if (hours < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2956 return isLower === true ? 'de' : 'DE'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2957 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2958 return isLower === true ? 'du' : 'DU'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2959 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2960 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2961 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2962 sameDay : '[ma] LT[-kor]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2963 nextDay : '[holnap] LT[-kor]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2964 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2965 return week.call(this, true); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2966 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2967 lastDay : '[tegnap] LT[-kor]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2968 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2969 return week.call(this, false); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2970 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2971 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2972 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2973 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2974 future : '%s múlva', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2975 past : '%s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2976 s : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2977 m : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2978 mm : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2979 h : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2980 hh : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2981 d : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2982 dd : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2983 M : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2984 MM : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2985 y : hu__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2986 yy : hu__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2987 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2988 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2989 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2990 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2991 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2992 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2993 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2994 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2995 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2996 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2997 //! locale : Armenian (hy-am) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2998 //! author : Armendarabyan : https://github.com/armendarabyan |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
2999 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3000 function hy_am__monthsCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3001 var months = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3002 'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3003 'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3004 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3005 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3006 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3007 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3008 return months[nounCase][m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3009 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3010 function hy_am__monthsShortCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3011 var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3012 return monthsShort[m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3013 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3014 function hy_am__weekdaysCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3015 var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3016 return weekdays[m.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3017 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3018 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3019 var hy_am = moment.defineLocale('hy-am', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3020 months : hy_am__monthsCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3021 monthsShort : hy_am__monthsShortCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3022 weekdays : hy_am__weekdaysCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3023 weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3024 weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3025 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3026 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3027 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3028 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3029 LL : 'D MMMM YYYY թ.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3030 LLL : 'D MMMM YYYY թ., HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3031 LLLL : 'dddd, D MMMM YYYY թ., HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3032 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3033 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3034 sameDay: '[այսօր] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3035 nextDay: '[վաղը] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3036 lastDay: '[երեկ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3037 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3038 return 'dddd [օրը ժամը] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3039 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3040 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3041 return '[անցած] dddd [օրը ժամը] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3042 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3043 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3044 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3045 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3046 future : '%s հետո', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3047 past : '%s առաջ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3048 s : 'մի քանի վայրկյան', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3049 m : 'րոպե', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3050 mm : '%d րոպե', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3051 h : 'ժամ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3052 hh : '%d ժամ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3053 d : 'օր', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3054 dd : '%d օր', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3055 M : 'ամիս', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3056 MM : '%d ամիս', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3057 y : 'տարի', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3058 yy : '%d տարի' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3059 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3060 meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3061 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3062 return /^(ցերեկվա|երեկոյան)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3063 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3064 meridiem : function (hour) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3065 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3066 return 'գիշերվա'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3067 } else if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3068 return 'առավոտվա'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3069 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3070 return 'ցերեկվա'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3071 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3072 return 'երեկոյան'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3073 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3074 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3075 ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3076 ordinal: function (number, period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3077 switch (period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3078 case 'DDD': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3079 case 'w': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3080 case 'W': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3081 case 'DDDo': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3082 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3083 return number + '-ին'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3084 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3085 return number + '-րդ'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3086 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3087 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3088 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3089 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3090 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3091 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3092 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3093 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3094 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3095 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3096 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3097 //! locale : Bahasa Indonesia (id) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3098 //! author : Mohammad Satrio Utomo : https://github.com/tyok |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3099 //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3100 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3101 var id = moment.defineLocale('id', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3102 months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3103 monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3104 weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3105 weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3106 weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3107 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3108 LT : 'HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3109 LTS : 'HH.mm.ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3110 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3111 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3112 LLL : 'D MMMM YYYY [pukul] HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3113 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3114 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3115 meridiemParse: /pagi|siang|sore|malam/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3116 meridiemHour : function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3117 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3118 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3119 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3120 if (meridiem === 'pagi') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3121 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3122 } else if (meridiem === 'siang') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3123 return hour >= 11 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3124 } else if (meridiem === 'sore' || meridiem === 'malam') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3125 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3126 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3127 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3128 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3129 if (hours < 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3130 return 'pagi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3131 } else if (hours < 15) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3132 return 'siang'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3133 } else if (hours < 19) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3134 return 'sore'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3135 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3136 return 'malam'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3137 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3138 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3139 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3140 sameDay : '[Hari ini pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3141 nextDay : '[Besok pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3142 nextWeek : 'dddd [pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3143 lastDay : '[Kemarin pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3144 lastWeek : 'dddd [lalu pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3145 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3146 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3147 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3148 future : 'dalam %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3149 past : '%s yang lalu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3150 s : 'beberapa detik', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3151 m : 'semenit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3152 mm : '%d menit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3153 h : 'sejam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3154 hh : '%d jam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3155 d : 'sehari', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3156 dd : '%d hari', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3157 M : 'sebulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3158 MM : '%d bulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3159 y : 'setahun', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3160 yy : '%d tahun' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3161 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3162 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3163 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3164 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3165 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3166 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3167 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3168 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3169 //! locale : icelandic (is) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3170 //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3171 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3172 function is__plural(n) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3173 if (n % 100 === 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3174 return true; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3175 } else if (n % 10 === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3176 return false; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3177 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3178 return true; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3179 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3180 function is__translate(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3181 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3182 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3183 case 's': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3184 return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3185 case 'm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3186 return withoutSuffix ? 'mínúta' : 'mínútu'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3187 case 'mm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3188 if (is__plural(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3189 return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3190 } else if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3191 return result + 'mínúta'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3192 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3193 return result + 'mínútu'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3194 case 'hh': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3195 if (is__plural(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3196 return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3197 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3198 return result + 'klukkustund'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3199 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3200 if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3201 return 'dagur'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3202 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3203 return isFuture ? 'dag' : 'degi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3204 case 'dd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3205 if (is__plural(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3206 if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3207 return result + 'dagar'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3208 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3209 return result + (isFuture ? 'daga' : 'dögum'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3210 } else if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3211 return result + 'dagur'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3212 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3213 return result + (isFuture ? 'dag' : 'degi'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3214 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3215 if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3216 return 'mánuður'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3217 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3218 return isFuture ? 'mánuð' : 'mánuði'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3219 case 'MM': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3220 if (is__plural(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3221 if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3222 return result + 'mánuðir'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3223 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3224 return result + (isFuture ? 'mánuði' : 'mánuðum'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3225 } else if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3226 return result + 'mánuður'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3227 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3228 return result + (isFuture ? 'mánuð' : 'mánuði'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3229 case 'y': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3230 return withoutSuffix || isFuture ? 'ár' : 'ári'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3231 case 'yy': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3232 if (is__plural(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3233 return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3234 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3235 return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3236 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3237 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3238 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3239 var is = moment.defineLocale('is', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3240 months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3241 monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3242 weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3243 weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3244 weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3245 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3246 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3247 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3248 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3249 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3250 LLL : 'D. MMMM YYYY [kl.] H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3251 LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3252 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3253 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3254 sameDay : '[í dag kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3255 nextDay : '[á morgun kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3256 nextWeek : 'dddd [kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3257 lastDay : '[í gær kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3258 lastWeek : '[síðasta] dddd [kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3259 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3260 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3261 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3262 future : 'eftir %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3263 past : 'fyrir %s síðan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3264 s : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3265 m : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3266 mm : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3267 h : 'klukkustund', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3268 hh : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3269 d : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3270 dd : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3271 M : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3272 MM : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3273 y : is__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3274 yy : is__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3275 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3276 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3277 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3278 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3279 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3280 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3281 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3282 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3283 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3284 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3285 //! locale : italian (it) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3286 //! author : Lorenzo : https://github.com/aliem |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3287 //! author: Mattia Larentis: https://github.com/nostalgiaz |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3288 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3289 var it = moment.defineLocale('it', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3290 months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3291 monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3292 weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3293 weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3294 weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3295 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3296 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3297 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3298 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3299 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3300 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3301 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3302 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3303 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3304 sameDay: '[Oggi alle] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3305 nextDay: '[Domani alle] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3306 nextWeek: 'dddd [alle] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3307 lastDay: '[Ieri alle] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3308 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3309 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3310 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3311 return '[la scorsa] dddd [alle] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3312 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3313 return '[lo scorso] dddd [alle] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3314 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3315 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3316 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3317 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3318 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3319 future : function (s) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3320 return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3321 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3322 past : '%s fa', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3323 s : 'alcuni secondi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3324 m : 'un minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3325 mm : '%d minuti', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3326 h : 'un\'ora', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3327 hh : '%d ore', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3328 d : 'un giorno', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3329 dd : '%d giorni', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3330 M : 'un mese', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3331 MM : '%d mesi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3332 y : 'un anno', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3333 yy : '%d anni' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3334 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3335 ordinalParse : /\d{1,2}º/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3336 ordinal: '%dº', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3337 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3338 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3339 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3340 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3341 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3342 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3343 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3344 //! locale : japanese (ja) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3345 //! author : LI Long : https://github.com/baryon |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3346 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3347 var ja = moment.defineLocale('ja', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3348 months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3349 monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3350 weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3351 weekdaysShort : '日_月_火_水_木_金_土'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3352 weekdaysMin : '日_月_火_水_木_金_土'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3353 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3354 LT : 'Ah時m分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3355 LTS : 'Ah時m分s秒', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3356 L : 'YYYY/MM/DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3357 LL : 'YYYY年M月D日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3358 LLL : 'YYYY年M月D日Ah時m分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3359 LLLL : 'YYYY年M月D日Ah時m分 dddd' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3360 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3361 meridiemParse: /午前|午後/i, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3362 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3363 return input === '午後'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3364 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3365 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3366 if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3367 return '午前'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3368 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3369 return '午後'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3370 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3371 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3372 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3373 sameDay : '[今日] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3374 nextDay : '[明日] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3375 nextWeek : '[来週]dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3376 lastDay : '[昨日] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3377 lastWeek : '[前週]dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3378 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3379 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3380 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3381 future : '%s後', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3382 past : '%s前', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3383 s : '数秒', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3384 m : '1分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3385 mm : '%d分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3386 h : '1時間', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3387 hh : '%d時間', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3388 d : '1日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3389 dd : '%d日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3390 M : '1ヶ月', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3391 MM : '%dヶ月', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3392 y : '1年', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3393 yy : '%d年' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3394 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3395 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3396 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3397 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3398 //! locale : Boso Jowo (jv) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3399 //! author : Rony Lantip : https://github.com/lantip |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3400 //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3401 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3402 var jv = moment.defineLocale('jv', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3403 months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3404 monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3405 weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3406 weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3407 weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3408 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3409 LT : 'HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3410 LTS : 'HH.mm.ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3411 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3412 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3413 LLL : 'D MMMM YYYY [pukul] HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3414 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3415 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3416 meridiemParse: /enjing|siyang|sonten|ndalu/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3417 meridiemHour : function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3418 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3419 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3420 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3421 if (meridiem === 'enjing') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3422 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3423 } else if (meridiem === 'siyang') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3424 return hour >= 11 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3425 } else if (meridiem === 'sonten' || meridiem === 'ndalu') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3426 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3427 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3428 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3429 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3430 if (hours < 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3431 return 'enjing'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3432 } else if (hours < 15) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3433 return 'siyang'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3434 } else if (hours < 19) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3435 return 'sonten'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3436 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3437 return 'ndalu'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3438 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3439 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3440 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3441 sameDay : '[Dinten puniko pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3442 nextDay : '[Mbenjang pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3443 nextWeek : 'dddd [pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3444 lastDay : '[Kala wingi pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3445 lastWeek : 'dddd [kepengker pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3446 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3447 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3448 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3449 future : 'wonten ing %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3450 past : '%s ingkang kepengker', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3451 s : 'sawetawis detik', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3452 m : 'setunggal menit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3453 mm : '%d menit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3454 h : 'setunggal jam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3455 hh : '%d jam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3456 d : 'sedinten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3457 dd : '%d dinten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3458 M : 'sewulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3459 MM : '%d wulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3460 y : 'setaun', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3461 yy : '%d taun' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3462 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3463 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3464 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3465 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3466 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3467 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3468 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3469 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3470 //! locale : Georgian (ka) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3471 //! author : Irakli Janiashvili : https://github.com/irakli-janiashvili |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3472 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3473 function ka__monthsCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3474 var months = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3475 'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3476 'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3477 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3478 nounCase = (/D[oD] *MMMM?/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3479 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3480 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3481 return months[nounCase][m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3482 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3483 function ka__weekdaysCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3484 var weekdays = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3485 'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3486 'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3487 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3488 nounCase = (/(წინა|შემდეგ)/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3489 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3490 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3491 return weekdays[nounCase][m.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3492 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3493 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3494 var ka = moment.defineLocale('ka', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3495 months : ka__monthsCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3496 monthsShort : 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3497 weekdays : ka__weekdaysCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3498 weekdaysShort : 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3499 weekdaysMin : 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3500 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3501 LT : 'h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3502 LTS : 'h:mm:ss A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3503 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3504 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3505 LLL : 'D MMMM YYYY h:mm A', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3506 LLLL : 'dddd, D MMMM YYYY h:mm A' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3507 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3508 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3509 sameDay : '[დღეს] LT[-ზე]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3510 nextDay : '[ხვალ] LT[-ზე]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3511 lastDay : '[გუშინ] LT[-ზე]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3512 nextWeek : '[შემდეგ] dddd LT[-ზე]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3513 lastWeek : '[წინა] dddd LT-ზე', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3514 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3515 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3516 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3517 future : function (s) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3518 return (/(წამი|წუთი|საათი|წელი)/).test(s) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3519 s.replace(/ი$/, 'ში') : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3520 s + 'ში'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3521 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3522 past : function (s) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3523 if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3524 return s.replace(/(ი|ე)$/, 'ის წინ'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3525 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3526 if ((/წელი/).test(s)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3527 return s.replace(/წელი$/, 'წლის წინ'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3528 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3529 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3530 s : 'რამდენიმე წამი', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3531 m : 'წუთი', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3532 mm : '%d წუთი', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3533 h : 'საათი', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3534 hh : '%d საათი', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3535 d : 'დღე', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3536 dd : '%d დღე', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3537 M : 'თვე', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3538 MM : '%d თვე', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3539 y : 'წელი', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3540 yy : '%d წელი' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3541 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3542 ordinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3543 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3544 if (number === 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3545 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3546 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3547 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3548 return number + '-ლი'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3549 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3550 if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3551 return 'მე-' + number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3552 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3553 return number + '-ე'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3554 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3555 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3556 dow : 1, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3557 doy : 7 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3558 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3559 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3560 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3561 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3562 //! locale : khmer (km) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3563 //! author : Kruy Vanna : https://github.com/kruyvanna |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3564 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3565 var km = moment.defineLocale('km', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3566 months: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3567 monthsShort: 'មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3568 weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3569 weekdaysShort: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3570 weekdaysMin: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3571 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3572 LT: 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3573 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3574 L: 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3575 LL: 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3576 LLL: 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3577 LLLL: 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3578 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3579 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3580 sameDay: '[ថ្ងៃនៈ ម៉ោង] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3581 nextDay: '[ស្អែក ម៉ោង] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3582 nextWeek: 'dddd [ម៉ោង] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3583 lastDay: '[ម្សិលមិញ ម៉ោង] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3584 lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3585 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3586 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3587 relativeTime: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3588 future: '%sទៀត', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3589 past: '%sមុន', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3590 s: 'ប៉ុន្មានវិនាទី', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3591 m: 'មួយនាទី', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3592 mm: '%d នាទី', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3593 h: 'មួយម៉ោង', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3594 hh: '%d ម៉ោង', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3595 d: 'មួយថ្ងៃ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3596 dd: '%d ថ្ងៃ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3597 M: 'មួយខែ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3598 MM: '%d ខែ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3599 y: 'មួយឆ្នាំ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3600 yy: '%d ឆ្នាំ' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3601 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3602 week: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3603 dow: 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3604 doy: 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3605 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3606 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3607 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3608 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3609 //! locale : korean (ko) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3610 //! |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3611 //! authors |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3612 //! |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3613 //! - Kyungwook, Park : https://github.com/kyungw00k |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3614 //! - Jeeeyul Lee <jeeeyul@gmail.com> |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3615 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3616 var ko = moment.defineLocale('ko', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3617 months : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3618 monthsShort : '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3619 weekdays : '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3620 weekdaysShort : '일_월_화_수_목_금_토'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3621 weekdaysMin : '일_월_화_수_목_금_토'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3622 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3623 LT : 'A h시 m분', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3624 LTS : 'A h시 m분 s초', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3625 L : 'YYYY.MM.DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3626 LL : 'YYYY년 MMMM D일', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3627 LLL : 'YYYY년 MMMM D일 A h시 m분', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3628 LLLL : 'YYYY년 MMMM D일 dddd A h시 m분' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3629 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3630 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3631 sameDay : '오늘 LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3632 nextDay : '내일 LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3633 nextWeek : 'dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3634 lastDay : '어제 LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3635 lastWeek : '지난주 dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3636 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3637 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3638 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3639 future : '%s 후', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3640 past : '%s 전', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3641 s : '몇초', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3642 ss : '%d초', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3643 m : '일분', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3644 mm : '%d분', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3645 h : '한시간', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3646 hh : '%d시간', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3647 d : '하루', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3648 dd : '%d일', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3649 M : '한달', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3650 MM : '%d달', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3651 y : '일년', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3652 yy : '%d년' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3653 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3654 ordinalParse : /\d{1,2}일/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3655 ordinal : '%d일', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3656 meridiemParse : /오전|오후/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3657 isPM : function (token) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3658 return token === '오후'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3659 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3660 meridiem : function (hour, minute, isUpper) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3661 return hour < 12 ? '오전' : '오후'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3662 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3663 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3664 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3665 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3666 //! locale : Luxembourgish (lb) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3667 //! author : mweimerskirch : https://github.com/mweimerskirch, David Raison : https://github.com/kwisatz |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3668 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3669 function lb__processRelativeTime(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3670 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3671 'm': ['eng Minutt', 'enger Minutt'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3672 'h': ['eng Stonn', 'enger Stonn'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3673 'd': ['een Dag', 'engem Dag'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3674 'M': ['ee Mount', 'engem Mount'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3675 'y': ['ee Joer', 'engem Joer'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3676 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3677 return withoutSuffix ? format[key][0] : format[key][1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3678 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3679 function processFutureTime(string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3680 var number = string.substr(0, string.indexOf(' ')); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3681 if (eifelerRegelAppliesToNumber(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3682 return 'a ' + string; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3683 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3684 return 'an ' + string; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3685 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3686 function processPastTime(string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3687 var number = string.substr(0, string.indexOf(' ')); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3688 if (eifelerRegelAppliesToNumber(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3689 return 'viru ' + string; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3690 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3691 return 'virun ' + string; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3692 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3693 /** |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3694 * Returns true if the word before the given number loses the '-n' ending. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3695 * e.g. 'an 10 Deeg' but 'a 5 Deeg' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3696 * |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3697 * @param number {integer} |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3698 * @returns {boolean} |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3699 */ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3700 function eifelerRegelAppliesToNumber(number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3701 number = parseInt(number, 10); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3702 if (isNaN(number)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3703 return false; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3704 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3705 if (number < 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3706 // Negative Number --> always true |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3707 return true; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3708 } else if (number < 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3709 // Only 1 digit |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3710 if (4 <= number && number <= 7) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3711 return true; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3712 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3713 return false; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3714 } else if (number < 100) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3715 // 2 digits |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3716 var lastDigit = number % 10, firstDigit = number / 10; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3717 if (lastDigit === 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3718 return eifelerRegelAppliesToNumber(firstDigit); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3719 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3720 return eifelerRegelAppliesToNumber(lastDigit); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3721 } else if (number < 10000) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3722 // 3 or 4 digits --> recursively check first digit |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3723 while (number >= 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3724 number = number / 10; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3725 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3726 return eifelerRegelAppliesToNumber(number); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3727 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3728 // Anything larger than 4 digits: recursively check first n-3 digits |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3729 number = number / 1000; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3730 return eifelerRegelAppliesToNumber(number); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3731 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3732 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3733 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3734 var lb = moment.defineLocale('lb', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3735 months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3736 monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3737 weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3738 weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3739 weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3740 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3741 LT: 'H:mm [Auer]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3742 LTS: 'H:mm:ss [Auer]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3743 L: 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3744 LL: 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3745 LLL: 'D. MMMM YYYY H:mm [Auer]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3746 LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3747 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3748 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3749 sameDay: '[Haut um] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3750 sameElse: 'L', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3751 nextDay: '[Muer um] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3752 nextWeek: 'dddd [um] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3753 lastDay: '[Gëschter um] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3754 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3755 // Different date string for 'Dënschdeg' (Tuesday) and 'Donneschdeg' (Thursday) due to phonological rule |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3756 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3757 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3758 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3759 return '[Leschten] dddd [um] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3760 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3761 return '[Leschte] dddd [um] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3762 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3763 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3764 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3765 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3766 future : processFutureTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3767 past : processPastTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3768 s : 'e puer Sekonnen', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3769 m : lb__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3770 mm : '%d Minutten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3771 h : lb__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3772 hh : '%d Stonnen', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3773 d : lb__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3774 dd : '%d Deeg', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3775 M : lb__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3776 MM : '%d Méint', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3777 y : lb__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3778 yy : '%d Joer' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3779 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3780 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3781 ordinal: '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3782 week: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3783 dow: 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3784 doy: 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3785 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3786 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3787 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3788 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3789 //! locale : Lithuanian (lt) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3790 //! author : Mindaugas Mozūras : https://github.com/mmozuras |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3791 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3792 var lt__units = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3793 'm' : 'minutė_minutės_minutę', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3794 'mm': 'minutės_minučių_minutes', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3795 'h' : 'valanda_valandos_valandą', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3796 'hh': 'valandos_valandų_valandas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3797 'd' : 'diena_dienos_dieną', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3798 'dd': 'dienos_dienų_dienas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3799 'M' : 'mėnuo_mėnesio_mėnesį', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3800 'MM': 'mėnesiai_mėnesių_mėnesius', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3801 'y' : 'metai_metų_metus', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3802 'yy': 'metai_metų_metus' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3803 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3804 weekDays = 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3805 function translateSeconds(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3806 if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3807 return 'kelios sekundės'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3808 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3809 return isFuture ? 'kelių sekundžių' : 'kelias sekundes'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3810 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3811 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3812 function lt__monthsCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3813 var months = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3814 'nominative': 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3815 'accusative': 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3816 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3817 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3818 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3819 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3820 return months[nounCase][m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3821 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3822 function translateSingular(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3823 return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3824 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3825 function special(number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3826 return number % 10 === 0 || (number > 10 && number < 20); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3827 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3828 function forms(key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3829 return lt__units[key].split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3830 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3831 function lt__translate(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3832 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3833 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3834 return result + translateSingular(number, withoutSuffix, key[0], isFuture); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3835 } else if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3836 return result + (special(number) ? forms(key)[1] : forms(key)[0]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3837 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3838 if (isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3839 return result + forms(key)[1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3840 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3841 return result + (special(number) ? forms(key)[1] : forms(key)[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3842 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3843 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3844 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3845 function relativeWeekDay(moment, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3846 var nominative = format.indexOf('dddd HH:mm') === -1, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3847 weekDay = weekDays[moment.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3848 return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + 'į'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3849 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3850 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3851 var lt = moment.defineLocale('lt', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3852 months : lt__monthsCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3853 monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3854 weekdays : relativeWeekDay, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3855 weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3856 weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3857 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3858 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3859 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3860 L : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3861 LL : 'YYYY [m.] MMMM D [d.]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3862 LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3863 LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3864 l : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3865 ll : 'YYYY [m.] MMMM D [d.]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3866 lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3867 llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3868 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3869 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3870 sameDay : '[Šiandien] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3871 nextDay : '[Rytoj] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3872 nextWeek : 'dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3873 lastDay : '[Vakar] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3874 lastWeek : '[Praėjusį] dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3875 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3876 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3877 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3878 future : 'po %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3879 past : 'prieš %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3880 s : translateSeconds, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3881 m : translateSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3882 mm : lt__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3883 h : translateSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3884 hh : lt__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3885 d : translateSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3886 dd : lt__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3887 M : translateSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3888 MM : lt__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3889 y : translateSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3890 yy : lt__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3891 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3892 ordinalParse: /\d{1,2}-oji/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3893 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3894 return number + '-oji'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3895 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3896 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3897 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3898 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3899 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3900 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3901 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3902 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3903 //! locale : latvian (lv) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3904 //! author : Kristaps Karlsons : https://github.com/skakri |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3905 //! author : Jānis Elmeris : https://github.com/JanisE |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3906 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3907 var lv__units = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3908 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3909 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3910 'h': 'stundas_stundām_stunda_stundas'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3911 'hh': 'stundas_stundām_stunda_stundas'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3912 'd': 'dienas_dienām_diena_dienas'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3913 'dd': 'dienas_dienām_diena_dienas'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3914 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3915 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3916 'y': 'gada_gadiem_gads_gadi'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3917 'yy': 'gada_gadiem_gads_gadi'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3918 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3919 /** |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3920 * @param withoutSuffix boolean true = a length of time; false = before/after a period of time. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3921 */ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3922 function format(forms, number, withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3923 if (withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3924 // E.g. "21 minūte", "3 minūtes". |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3925 return number % 10 === 1 && number !== 11 ? forms[2] : forms[3]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3926 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3927 // E.g. "21 minūtes" as in "pēc 21 minūtes". |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3928 // E.g. "3 minūtēm" as in "pēc 3 minūtēm". |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3929 return number % 10 === 1 && number !== 11 ? forms[0] : forms[1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3930 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3931 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3932 function lv__relativeTimeWithPlural(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3933 return number + ' ' + format(lv__units[key], number, withoutSuffix); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3934 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3935 function relativeTimeWithSingular(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3936 return format(lv__units[key], number, withoutSuffix); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3937 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3938 function relativeSeconds(number, withoutSuffix) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3939 return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3940 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3941 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3942 var lv = moment.defineLocale('lv', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3943 months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3944 monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3945 weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3946 weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3947 weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3948 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3949 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3950 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3951 L : 'DD.MM.YYYY.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3952 LL : 'YYYY. [gada] D. MMMM', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3953 LLL : 'YYYY. [gada] D. MMMM, HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3954 LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3955 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3956 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3957 sameDay : '[Šodien pulksten] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3958 nextDay : '[Rīt pulksten] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3959 nextWeek : 'dddd [pulksten] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3960 lastDay : '[Vakar pulksten] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3961 lastWeek : '[Pagājušā] dddd [pulksten] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3962 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3963 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3964 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3965 future : 'pēc %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3966 past : 'pirms %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3967 s : relativeSeconds, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3968 m : relativeTimeWithSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3969 mm : lv__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3970 h : relativeTimeWithSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3971 hh : lv__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3972 d : relativeTimeWithSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3973 dd : lv__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3974 M : relativeTimeWithSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3975 MM : lv__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3976 y : relativeTimeWithSingular, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3977 yy : lv__relativeTimeWithPlural |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3978 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3979 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3980 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3981 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3982 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3983 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3984 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3985 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3986 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3987 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3988 //! locale : Montenegrin (me) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3989 //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3990 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3991 var me__translator = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3992 words: { //Different grammatical cases |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3993 m: ['jedan minut', 'jednog minuta'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3994 mm: ['minut', 'minuta', 'minuta'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3995 h: ['jedan sat', 'jednog sata'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3996 hh: ['sat', 'sata', 'sati'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3997 dd: ['dan', 'dana', 'dana'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3998 MM: ['mjesec', 'mjeseca', 'mjeseci'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
3999 yy: ['godina', 'godine', 'godina'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4000 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4001 correctGrammaticalCase: function (number, wordKey) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4002 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4003 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4004 translate: function (number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4005 var wordKey = me__translator.words[key]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4006 if (key.length === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4007 return withoutSuffix ? wordKey[0] : wordKey[1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4008 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4009 return number + ' ' + me__translator.correctGrammaticalCase(number, wordKey); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4010 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4011 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4012 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4013 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4014 var me = moment.defineLocale('me', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4015 months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4016 monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4017 weekdays: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4018 weekdaysShort: ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4019 weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4020 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4021 LT: 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4022 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4023 L: 'DD. MM. YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4024 LL: 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4025 LLL: 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4026 LLLL: 'dddd, D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4027 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4028 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4029 sameDay: '[danas u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4030 nextDay: '[sjutra u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4031 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4032 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4033 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4034 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4035 return '[u] [nedjelju] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4036 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4037 return '[u] [srijedu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4038 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4039 return '[u] [subotu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4040 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4041 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4042 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4043 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4044 return '[u] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4045 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4046 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4047 lastDay : '[juče u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4048 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4049 var lastWeekDays = [ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4050 '[prošle] [nedjelje] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4051 '[prošlog] [ponedjeljka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4052 '[prošlog] [utorka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4053 '[prošle] [srijede] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4054 '[prošlog] [četvrtka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4055 '[prošlog] [petka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4056 '[prošle] [subote] [u] LT' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4057 ]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4058 return lastWeekDays[this.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4059 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4060 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4061 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4062 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4063 future : 'za %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4064 past : 'prije %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4065 s : 'nekoliko sekundi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4066 m : me__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4067 mm : me__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4068 h : me__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4069 hh : me__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4070 d : 'dan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4071 dd : me__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4072 M : 'mjesec', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4073 MM : me__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4074 y : 'godinu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4075 yy : me__translator.translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4076 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4077 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4078 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4079 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4080 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4081 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4082 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4083 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4084 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4085 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4086 //! locale : macedonian (mk) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4087 //! author : Borislav Mickov : https://github.com/B0k0 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4088 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4089 var mk = moment.defineLocale('mk', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4090 months : 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4091 monthsShort : 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4092 weekdays : 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4093 weekdaysShort : 'нед_пон_вто_сре_чет_пет_саб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4094 weekdaysMin : 'нe_пo_вт_ср_че_пе_сa'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4095 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4096 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4097 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4098 L : 'D.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4099 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4100 LLL : 'D MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4101 LLLL : 'dddd, D MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4102 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4103 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4104 sameDay : '[Денес во] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4105 nextDay : '[Утре во] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4106 nextWeek : 'dddd [во] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4107 lastDay : '[Вчера во] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4108 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4109 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4110 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4111 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4112 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4113 return '[Во изминатата] dddd [во] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4114 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4115 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4116 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4117 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4118 return '[Во изминатиот] dddd [во] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4119 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4120 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4121 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4122 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4123 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4124 future : 'после %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4125 past : 'пред %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4126 s : 'неколку секунди', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4127 m : 'минута', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4128 mm : '%d минути', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4129 h : 'час', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4130 hh : '%d часа', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4131 d : 'ден', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4132 dd : '%d дена', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4133 M : 'месец', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4134 MM : '%d месеци', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4135 y : 'година', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4136 yy : '%d години' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4137 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4138 ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4139 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4140 var lastDigit = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4141 last2Digits = number % 100; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4142 if (number === 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4143 return number + '-ев'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4144 } else if (last2Digits === 0) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4145 return number + '-ен'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4146 } else if (last2Digits > 10 && last2Digits < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4147 return number + '-ти'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4148 } else if (lastDigit === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4149 return number + '-ви'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4150 } else if (lastDigit === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4151 return number + '-ри'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4152 } else if (lastDigit === 7 || lastDigit === 8) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4153 return number + '-ми'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4154 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4155 return number + '-ти'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4156 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4157 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4158 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4159 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4160 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4161 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4162 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4163 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4164 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4165 //! locale : malayalam (ml) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4166 //! author : Floyd Pink : https://github.com/floydpink |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4167 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4168 var ml = moment.defineLocale('ml', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4169 months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4170 monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4171 weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4172 weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4173 weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4174 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4175 LT : 'A h:mm -നു', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4176 LTS : 'A h:mm:ss -നു', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4177 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4178 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4179 LLL : 'D MMMM YYYY, A h:mm -നു', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4180 LLLL : 'dddd, D MMMM YYYY, A h:mm -നു' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4181 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4182 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4183 sameDay : '[ഇന്ന്] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4184 nextDay : '[നാളെ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4185 nextWeek : 'dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4186 lastDay : '[ഇന്നലെ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4187 lastWeek : '[കഴിഞ്ഞ] dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4188 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4189 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4190 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4191 future : '%s കഴിഞ്ഞ്', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4192 past : '%s മുൻപ്', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4193 s : 'അൽപ നിമിഷങ്ങൾ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4194 m : 'ഒരു മിനിറ്റ്', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4195 mm : '%d മിനിറ്റ്', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4196 h : 'ഒരു മണിക്കൂർ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4197 hh : '%d മണിക്കൂർ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4198 d : 'ഒരു ദിവസം', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4199 dd : '%d ദിവസം', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4200 M : 'ഒരു മാസം', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4201 MM : '%d മാസം', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4202 y : 'ഒരു വർഷം', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4203 yy : '%d വർഷം' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4204 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4205 meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4206 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4207 return /^(ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4208 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4209 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4210 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4211 return 'രാത്രി'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4212 } else if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4213 return 'രാവിലെ'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4214 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4215 return 'ഉച്ച കഴിഞ്ഞ്'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4216 } else if (hour < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4217 return 'വൈകുന്നേരം'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4218 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4219 return 'രാത്രി'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4220 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4221 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4222 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4223 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4224 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4225 //! locale : Marathi (mr) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4226 //! author : Harshad Kale : https://github.com/kalehv |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4227 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4228 var mr__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4229 '1': '१', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4230 '2': '२', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4231 '3': '३', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4232 '4': '४', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4233 '5': '५', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4234 '6': '६', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4235 '7': '७', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4236 '8': '८', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4237 '9': '९', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4238 '0': '०' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4239 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4240 mr__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4241 '१': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4242 '२': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4243 '३': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4244 '४': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4245 '५': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4246 '६': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4247 '७': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4248 '८': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4249 '९': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4250 '०': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4251 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4252 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4253 var mr = moment.defineLocale('mr', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4254 months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4255 monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4256 weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4257 weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4258 weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4259 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4260 LT : 'A h:mm वाजता', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4261 LTS : 'A h:mm:ss वाजता', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4262 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4263 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4264 LLL : 'D MMMM YYYY, A h:mm वाजता', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4265 LLLL : 'dddd, D MMMM YYYY, A h:mm वाजता' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4266 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4267 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4268 sameDay : '[आज] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4269 nextDay : '[उद्या] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4270 nextWeek : 'dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4271 lastDay : '[काल] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4272 lastWeek: '[मागील] dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4273 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4274 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4275 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4276 future : '%s नंतर', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4277 past : '%s पूर्वी', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4278 s : 'सेकंद', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4279 m: 'एक मिनिट', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4280 mm: '%d मिनिटे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4281 h : 'एक तास', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4282 hh : '%d तास', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4283 d : 'एक दिवस', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4284 dd : '%d दिवस', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4285 M : 'एक महिना', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4286 MM : '%d महिने', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4287 y : 'एक वर्ष', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4288 yy : '%d वर्षे' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4289 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4290 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4291 return string.replace(/[१२३४५६७८९०]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4292 return mr__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4293 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4294 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4295 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4296 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4297 return mr__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4298 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4299 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4300 meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4301 meridiemHour : function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4302 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4303 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4304 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4305 if (meridiem === 'रात्री') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4306 return hour < 4 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4307 } else if (meridiem === 'सकाळी') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4308 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4309 } else if (meridiem === 'दुपारी') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4310 return hour >= 10 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4311 } else if (meridiem === 'सायंकाळी') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4312 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4313 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4314 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4315 meridiem: function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4316 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4317 return 'रात्री'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4318 } else if (hour < 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4319 return 'सकाळी'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4320 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4321 return 'दुपारी'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4322 } else if (hour < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4323 return 'सायंकाळी'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4324 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4325 return 'रात्री'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4326 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4327 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4328 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4329 dow : 0, // Sunday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4330 doy : 6 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4331 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4332 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4333 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4334 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4335 //! locale : Bahasa Malaysia (ms-MY) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4336 //! author : Weldan Jamili : https://github.com/weldan |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4337 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4338 var ms_my = moment.defineLocale('ms-my', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4339 months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4340 monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4341 weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4342 weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4343 weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4344 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4345 LT : 'HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4346 LTS : 'HH.mm.ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4347 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4348 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4349 LLL : 'D MMMM YYYY [pukul] HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4350 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4351 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4352 meridiemParse: /pagi|tengahari|petang|malam/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4353 meridiemHour: function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4354 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4355 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4356 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4357 if (meridiem === 'pagi') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4358 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4359 } else if (meridiem === 'tengahari') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4360 return hour >= 11 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4361 } else if (meridiem === 'petang' || meridiem === 'malam') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4362 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4363 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4364 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4365 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4366 if (hours < 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4367 return 'pagi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4368 } else if (hours < 15) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4369 return 'tengahari'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4370 } else if (hours < 19) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4371 return 'petang'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4372 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4373 return 'malam'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4374 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4375 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4376 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4377 sameDay : '[Hari ini pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4378 nextDay : '[Esok pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4379 nextWeek : 'dddd [pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4380 lastDay : '[Kelmarin pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4381 lastWeek : 'dddd [lepas pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4382 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4383 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4384 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4385 future : 'dalam %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4386 past : '%s yang lepas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4387 s : 'beberapa saat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4388 m : 'seminit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4389 mm : '%d minit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4390 h : 'sejam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4391 hh : '%d jam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4392 d : 'sehari', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4393 dd : '%d hari', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4394 M : 'sebulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4395 MM : '%d bulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4396 y : 'setahun', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4397 yy : '%d tahun' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4398 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4399 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4400 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4401 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4402 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4403 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4404 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4405 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4406 //! locale : Bahasa Malaysia (ms-MY) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4407 //! author : Weldan Jamili : https://github.com/weldan |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4408 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4409 var ms = moment.defineLocale('ms', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4410 months : 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4411 monthsShort : 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4412 weekdays : 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4413 weekdaysShort : 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4414 weekdaysMin : 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4415 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4416 LT : 'HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4417 LTS : 'HH.mm.ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4418 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4419 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4420 LLL : 'D MMMM YYYY [pukul] HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4421 LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4422 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4423 meridiemParse: /pagi|tengahari|petang|malam/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4424 meridiemHour: function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4425 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4426 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4427 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4428 if (meridiem === 'pagi') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4429 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4430 } else if (meridiem === 'tengahari') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4431 return hour >= 11 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4432 } else if (meridiem === 'petang' || meridiem === 'malam') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4433 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4434 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4435 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4436 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4437 if (hours < 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4438 return 'pagi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4439 } else if (hours < 15) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4440 return 'tengahari'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4441 } else if (hours < 19) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4442 return 'petang'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4443 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4444 return 'malam'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4445 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4446 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4447 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4448 sameDay : '[Hari ini pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4449 nextDay : '[Esok pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4450 nextWeek : 'dddd [pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4451 lastDay : '[Kelmarin pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4452 lastWeek : 'dddd [lepas pukul] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4453 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4454 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4455 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4456 future : 'dalam %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4457 past : '%s yang lepas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4458 s : 'beberapa saat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4459 m : 'seminit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4460 mm : '%d minit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4461 h : 'sejam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4462 hh : '%d jam', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4463 d : 'sehari', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4464 dd : '%d hari', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4465 M : 'sebulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4466 MM : '%d bulan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4467 y : 'setahun', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4468 yy : '%d tahun' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4469 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4470 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4471 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4472 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4473 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4474 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4475 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4476 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4477 //! locale : Burmese (my) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4478 //! author : Squar team, mysquar.com |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4479 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4480 var my__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4481 '1': '၁', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4482 '2': '၂', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4483 '3': '၃', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4484 '4': '၄', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4485 '5': '၅', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4486 '6': '၆', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4487 '7': '၇', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4488 '8': '၈', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4489 '9': '၉', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4490 '0': '၀' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4491 }, my__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4492 '၁': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4493 '၂': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4494 '၃': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4495 '၄': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4496 '၅': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4497 '၆': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4498 '၇': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4499 '၈': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4500 '၉': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4501 '၀': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4502 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4503 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4504 var my = moment.defineLocale('my', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4505 months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4506 monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4507 weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4508 weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4509 weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4510 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4511 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4512 LT: 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4513 LTS: 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4514 L: 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4515 LL: 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4516 LLL: 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4517 LLLL: 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4518 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4519 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4520 sameDay: '[ယနေ.] LT [မှာ]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4521 nextDay: '[မနက်ဖြန်] LT [မှာ]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4522 nextWeek: 'dddd LT [မှာ]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4523 lastDay: '[မနေ.က] LT [မှာ]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4524 lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4525 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4526 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4527 relativeTime: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4528 future: 'လာမည့် %s မှာ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4529 past: 'လွန်ခဲ့သော %s က', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4530 s: 'စက္ကန်.အနည်းငယ်', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4531 m: 'တစ်မိနစ်', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4532 mm: '%d မိနစ်', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4533 h: 'တစ်နာရီ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4534 hh: '%d နာရီ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4535 d: 'တစ်ရက်', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4536 dd: '%d ရက်', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4537 M: 'တစ်လ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4538 MM: '%d လ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4539 y: 'တစ်နှစ်', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4540 yy: '%d နှစ်' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4541 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4542 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4543 return string.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4544 return my__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4545 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4546 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4547 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4548 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4549 return my__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4550 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4551 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4552 week: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4553 dow: 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4554 doy: 4 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4555 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4556 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4557 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4558 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4559 //! locale : norwegian bokmål (nb) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4560 //! authors : Espen Hovlandsdal : https://github.com/rexxars |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4561 //! Sigurd Gartmann : https://github.com/sigurdga |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4562 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4563 var nb = moment.defineLocale('nb', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4564 months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4565 monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4566 weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4567 weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4568 weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4569 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4570 LT : 'H.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4571 LTS : 'H.mm.ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4572 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4573 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4574 LLL : 'D. MMMM YYYY [kl.] H.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4575 LLLL : 'dddd D. MMMM YYYY [kl.] H.mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4576 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4577 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4578 sameDay: '[i dag kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4579 nextDay: '[i morgen kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4580 nextWeek: 'dddd [kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4581 lastDay: '[i går kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4582 lastWeek: '[forrige] dddd [kl.] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4583 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4584 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4585 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4586 future : 'om %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4587 past : 'for %s siden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4588 s : 'noen sekunder', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4589 m : 'ett minutt', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4590 mm : '%d minutter', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4591 h : 'en time', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4592 hh : '%d timer', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4593 d : 'en dag', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4594 dd : '%d dager', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4595 M : 'en måned', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4596 MM : '%d måneder', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4597 y : 'ett år', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4598 yy : '%d år' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4599 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4600 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4601 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4602 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4603 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4604 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4605 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4606 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4607 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4608 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4609 //! locale : nepali/nepalese |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4610 //! author : suvash : https://github.com/suvash |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4611 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4612 var ne__symbolMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4613 '1': '१', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4614 '2': '२', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4615 '3': '३', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4616 '4': '४', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4617 '5': '५', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4618 '6': '६', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4619 '7': '७', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4620 '8': '८', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4621 '9': '९', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4622 '0': '०' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4623 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4624 ne__numberMap = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4625 '१': '1', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4626 '२': '2', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4627 '३': '3', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4628 '४': '4', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4629 '५': '5', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4630 '६': '6', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4631 '७': '7', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4632 '८': '8', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4633 '९': '9', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4634 '०': '0' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4635 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4636 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4637 var ne = moment.defineLocale('ne', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4638 months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4639 monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4640 weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4641 weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4642 weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4643 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4644 LT : 'Aको h:mm बजे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4645 LTS : 'Aको h:mm:ss बजे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4646 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4647 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4648 LLL : 'D MMMM YYYY, Aको h:mm बजे', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4649 LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4650 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4651 preparse: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4652 return string.replace(/[१२३४५६७८९०]/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4653 return ne__numberMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4654 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4655 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4656 postformat: function (string) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4657 return string.replace(/\d/g, function (match) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4658 return ne__symbolMap[match]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4659 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4660 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4661 meridiemParse: /राती|बिहान|दिउँसो|बेलुका|साँझ|राती/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4662 meridiemHour : function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4663 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4664 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4665 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4666 if (meridiem === 'राती') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4667 return hour < 3 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4668 } else if (meridiem === 'बिहान') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4669 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4670 } else if (meridiem === 'दिउँसो') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4671 return hour >= 10 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4672 } else if (meridiem === 'बेलुका' || meridiem === 'साँझ') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4673 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4674 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4675 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4676 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4677 if (hour < 3) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4678 return 'राती'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4679 } else if (hour < 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4680 return 'बिहान'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4681 } else if (hour < 15) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4682 return 'दिउँसो'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4683 } else if (hour < 18) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4684 return 'बेलुका'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4685 } else if (hour < 20) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4686 return 'साँझ'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4687 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4688 return 'राती'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4689 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4690 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4691 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4692 sameDay : '[आज] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4693 nextDay : '[भोली] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4694 nextWeek : '[आउँदो] dddd[,] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4695 lastDay : '[हिजो] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4696 lastWeek : '[गएको] dddd[,] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4697 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4698 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4699 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4700 future : '%sमा', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4701 past : '%s अगाडी', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4702 s : 'केही समय', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4703 m : 'एक मिनेट', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4704 mm : '%d मिनेट', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4705 h : 'एक घण्टा', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4706 hh : '%d घण्टा', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4707 d : 'एक दिन', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4708 dd : '%d दिन', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4709 M : 'एक महिना', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4710 MM : '%d महिना', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4711 y : 'एक बर्ष', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4712 yy : '%d बर्ष' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4713 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4714 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4715 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4716 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4717 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4718 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4719 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4720 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4721 //! locale : dutch (nl) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4722 //! author : Joris Röling : https://github.com/jjupiter |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4723 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4724 var nl__monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4725 nl__monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4726 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4727 var nl = moment.defineLocale('nl', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4728 months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4729 monthsShort : function (m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4730 if (/-MMM-/.test(format)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4731 return nl__monthsShortWithoutDots[m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4732 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4733 return nl__monthsShortWithDots[m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4734 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4735 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4736 weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4737 weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4738 weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4739 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4740 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4741 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4742 L : 'DD-MM-YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4743 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4744 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4745 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4746 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4747 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4748 sameDay: '[vandaag om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4749 nextDay: '[morgen om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4750 nextWeek: 'dddd [om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4751 lastDay: '[gisteren om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4752 lastWeek: '[afgelopen] dddd [om] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4753 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4754 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4755 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4756 future : 'over %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4757 past : '%s geleden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4758 s : 'een paar seconden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4759 m : 'één minuut', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4760 mm : '%d minuten', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4761 h : 'één uur', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4762 hh : '%d uur', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4763 d : 'één dag', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4764 dd : '%d dagen', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4765 M : 'één maand', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4766 MM : '%d maanden', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4767 y : 'één jaar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4768 yy : '%d jaar' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4769 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4770 ordinalParse: /\d{1,2}(ste|de)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4771 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4772 return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4773 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4774 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4775 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4776 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4777 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4778 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4779 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4780 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4781 //! locale : norwegian nynorsk (nn) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4782 //! author : https://github.com/mechuwind |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4783 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4784 var nn = moment.defineLocale('nn', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4785 months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4786 monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4787 weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4788 weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4789 weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4790 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4791 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4792 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4793 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4794 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4795 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4796 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4797 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4798 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4799 sameDay: '[I dag klokka] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4800 nextDay: '[I morgon klokka] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4801 nextWeek: 'dddd [klokka] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4802 lastDay: '[I går klokka] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4803 lastWeek: '[Føregåande] dddd [klokka] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4804 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4805 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4806 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4807 future : 'om %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4808 past : 'for %s sidan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4809 s : 'nokre sekund', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4810 m : 'eit minutt', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4811 mm : '%d minutt', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4812 h : 'ein time', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4813 hh : '%d timar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4814 d : 'ein dag', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4815 dd : '%d dagar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4816 M : 'ein månad', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4817 MM : '%d månader', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4818 y : 'eit år', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4819 yy : '%d år' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4820 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4821 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4822 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4823 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4824 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4825 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4826 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4827 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4828 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4829 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4830 //! locale : polish (pl) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4831 //! author : Rafal Hirsz : https://github.com/evoL |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4832 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4833 var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4834 monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4835 function pl__plural(n) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4836 return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4837 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4838 function pl__translate(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4839 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4840 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4841 case 'm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4842 return withoutSuffix ? 'minuta' : 'minutę'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4843 case 'mm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4844 return result + (pl__plural(number) ? 'minuty' : 'minut'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4845 case 'h': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4846 return withoutSuffix ? 'godzina' : 'godzinę'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4847 case 'hh': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4848 return result + (pl__plural(number) ? 'godziny' : 'godzin'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4849 case 'MM': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4850 return result + (pl__plural(number) ? 'miesiące' : 'miesięcy'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4851 case 'yy': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4852 return result + (pl__plural(number) ? 'lata' : 'lat'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4853 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4854 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4855 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4856 var pl = moment.defineLocale('pl', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4857 months : function (momentToFormat, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4858 if (format === '') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4859 // Hack: if format empty we know this is used to generate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4860 // RegExp by moment. Give then back both valid forms of months |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4861 // in RegExp ready format. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4862 return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4863 } else if (/D MMMM/.test(format)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4864 return monthsSubjective[momentToFormat.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4865 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4866 return monthsNominative[momentToFormat.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4867 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4868 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4869 monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4870 weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4871 weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4872 weekdaysMin : 'N_Pn_Wt_Śr_Cz_Pt_So'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4873 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4874 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4875 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4876 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4877 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4878 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4879 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4880 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4881 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4882 sameDay: '[Dziś o] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4883 nextDay: '[Jutro o] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4884 nextWeek: '[W] dddd [o] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4885 lastDay: '[Wczoraj o] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4886 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4887 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4888 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4889 return '[W zeszłą niedzielę o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4890 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4891 return '[W zeszłą środę o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4892 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4893 return '[W zeszłą sobotę o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4894 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4895 return '[W zeszły] dddd [o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4896 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4897 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4898 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4899 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4900 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4901 future : 'za %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4902 past : '%s temu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4903 s : 'kilka sekund', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4904 m : pl__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4905 mm : pl__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4906 h : pl__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4907 hh : pl__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4908 d : '1 dzień', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4909 dd : '%d dni', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4910 M : 'miesiąc', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4911 MM : pl__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4912 y : 'rok', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4913 yy : pl__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4914 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4915 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4916 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4917 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4918 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4919 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4920 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4921 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4922 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4923 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4924 //! locale : brazilian portuguese (pt-br) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4925 //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4926 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4927 var pt_br = moment.defineLocale('pt-br', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4928 months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4929 monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4930 weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4931 weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4932 weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4933 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4934 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4935 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4936 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4937 LL : 'D [de] MMMM [de] YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4938 LLL : 'D [de] MMMM [de] YYYY [às] HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4939 LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4940 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4941 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4942 sameDay: '[Hoje às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4943 nextDay: '[Amanhã às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4944 nextWeek: 'dddd [às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4945 lastDay: '[Ontem às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4946 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4947 return (this.day() === 0 || this.day() === 6) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4948 '[Último] dddd [às] LT' : // Saturday + Sunday |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4949 '[Última] dddd [às] LT'; // Monday - Friday |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4950 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4951 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4952 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4953 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4954 future : 'em %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4955 past : '%s atrás', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4956 s : 'poucos segundos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4957 m : 'um minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4958 mm : '%d minutos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4959 h : 'uma hora', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4960 hh : '%d horas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4961 d : 'um dia', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4962 dd : '%d dias', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4963 M : 'um mês', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4964 MM : '%d meses', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4965 y : 'um ano', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4966 yy : '%d anos' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4967 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4968 ordinalParse: /\d{1,2}º/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4969 ordinal : '%dº' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4970 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4971 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4972 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4973 //! locale : portuguese (pt) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4974 //! author : Jefferson : https://github.com/jalex79 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4975 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4976 var pt = moment.defineLocale('pt', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4977 months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4978 monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4979 weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4980 weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4981 weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4982 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4983 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4984 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4985 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4986 LL : 'D [de] MMMM [de] YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4987 LLL : 'D [de] MMMM [de] YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4988 LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4989 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4990 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4991 sameDay: '[Hoje às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4992 nextDay: '[Amanhã às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4993 nextWeek: 'dddd [às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4994 lastDay: '[Ontem às] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4995 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4996 return (this.day() === 0 || this.day() === 6) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4997 '[Último] dddd [às] LT' : // Saturday + Sunday |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4998 '[Última] dddd [às] LT'; // Monday - Friday |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
4999 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5000 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5001 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5002 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5003 future : 'em %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5004 past : 'há %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5005 s : 'segundos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5006 m : 'um minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5007 mm : '%d minutos', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5008 h : 'uma hora', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5009 hh : '%d horas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5010 d : 'um dia', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5011 dd : '%d dias', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5012 M : 'um mês', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5013 MM : '%d meses', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5014 y : 'um ano', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5015 yy : '%d anos' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5016 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5017 ordinalParse: /\d{1,2}º/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5018 ordinal : '%dº', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5019 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5020 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5021 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5022 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5023 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5024 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5025 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5026 //! locale : romanian (ro) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5027 //! author : Vlad Gurdiga : https://github.com/gurdiga |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5028 //! author : Valentin Agachi : https://github.com/avaly |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5029 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5030 function ro__relativeTimeWithPlural(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5031 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5032 'mm': 'minute', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5033 'hh': 'ore', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5034 'dd': 'zile', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5035 'MM': 'luni', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5036 'yy': 'ani' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5037 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5038 separator = ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5039 if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5040 separator = ' de '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5041 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5042 return number + separator + format[key]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5043 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5044 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5045 var ro = moment.defineLocale('ro', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5046 months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5047 monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5048 weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5049 weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5050 weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5051 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5052 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5053 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5054 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5055 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5056 LLL : 'D MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5057 LLLL : 'dddd, D MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5058 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5059 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5060 sameDay: '[azi la] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5061 nextDay: '[mâine la] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5062 nextWeek: 'dddd [la] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5063 lastDay: '[ieri la] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5064 lastWeek: '[fosta] dddd [la] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5065 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5066 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5067 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5068 future : 'peste %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5069 past : '%s în urmă', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5070 s : 'câteva secunde', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5071 m : 'un minut', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5072 mm : ro__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5073 h : 'o oră', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5074 hh : ro__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5075 d : 'o zi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5076 dd : ro__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5077 M : 'o lună', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5078 MM : ro__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5079 y : 'un an', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5080 yy : ro__relativeTimeWithPlural |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5081 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5082 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5083 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5084 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5085 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5086 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5087 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5088 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5089 //! locale : russian (ru) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5090 //! author : Viktorminator : https://github.com/Viktorminator |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5091 //! Author : Menelion Elensúle : https://github.com/Oire |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5092 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5093 function ru__plural(word, num) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5094 var forms = word.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5095 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5096 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5097 function ru__relativeTimeWithPlural(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5098 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5099 'mm': withoutSuffix ? 'минута_минуты_минут' : 'минуту_минуты_минут', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5100 'hh': 'час_часа_часов', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5101 'dd': 'день_дня_дней', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5102 'MM': 'месяц_месяца_месяцев', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5103 'yy': 'год_года_лет' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5104 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5105 if (key === 'm') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5106 return withoutSuffix ? 'минута' : 'минуту'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5107 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5108 else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5109 return number + ' ' + ru__plural(format[key], +number); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5110 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5111 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5112 function ru__monthsCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5113 var months = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5114 'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5115 'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5116 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5117 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5118 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5119 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5120 return months[nounCase][m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5121 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5122 function ru__monthsShortCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5123 var monthsShort = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5124 'nominative': 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5125 'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5126 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5127 nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5128 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5129 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5130 return monthsShort[nounCase][m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5131 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5132 function ru__weekdaysCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5133 var weekdays = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5134 'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5135 'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5136 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5137 nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5138 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5139 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5140 return weekdays[nounCase][m.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5141 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5142 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5143 var ru = moment.defineLocale('ru', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5144 months : ru__monthsCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5145 monthsShort : ru__monthsShortCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5146 weekdays : ru__weekdaysCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5147 weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5148 weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5149 monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5150 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5151 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5152 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5153 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5154 LL : 'D MMMM YYYY г.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5155 LLL : 'D MMMM YYYY г., HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5156 LLLL : 'dddd, D MMMM YYYY г., HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5157 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5158 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5159 sameDay: '[Сегодня в] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5160 nextDay: '[Завтра в] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5161 lastDay: '[Вчера в] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5162 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5163 return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5164 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5165 lastWeek: function (now) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5166 if (now.week() !== this.week()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5167 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5168 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5169 return '[В прошлое] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5170 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5171 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5172 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5173 return '[В прошлый] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5174 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5175 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5176 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5177 return '[В прошлую] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5178 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5179 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5180 if (this.day() === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5181 return '[Во] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5182 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5183 return '[В] dddd [в] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5184 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5185 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5186 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5187 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5188 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5189 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5190 future : 'через %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5191 past : '%s назад', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5192 s : 'несколько секунд', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5193 m : ru__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5194 mm : ru__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5195 h : 'час', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5196 hh : ru__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5197 d : 'день', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5198 dd : ru__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5199 M : 'месяц', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5200 MM : ru__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5201 y : 'год', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5202 yy : ru__relativeTimeWithPlural |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5203 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5204 meridiemParse: /ночи|утра|дня|вечера/i, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5205 isPM : function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5206 return /^(дня|вечера)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5207 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5208 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5209 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5210 return 'ночи'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5211 } else if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5212 return 'утра'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5213 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5214 return 'дня'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5215 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5216 return 'вечера'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5217 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5218 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5219 ordinalParse: /\d{1,2}-(й|го|я)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5220 ordinal: function (number, period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5221 switch (period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5222 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5223 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5224 case 'DDD': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5225 return number + '-й'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5226 case 'D': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5227 return number + '-го'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5228 case 'w': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5229 case 'W': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5230 return number + '-я'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5231 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5232 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5233 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5234 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5235 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5236 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5237 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5238 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5239 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5240 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5241 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5242 //! locale : Sinhalese (si) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5243 //! author : Sampath Sitinamaluwa : https://github.com/sampathsris |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5244 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5245 var si = moment.defineLocale('si', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5246 months : 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5247 monthsShort : 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5248 weekdays : 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5249 weekdaysShort : 'ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5250 weekdaysMin : 'ඉ_ස_අ_බ_බ්ර_සි_සෙ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5251 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5252 LT : 'a h:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5253 LTS : 'a h:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5254 L : 'YYYY/MM/DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5255 LL : 'YYYY MMMM D', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5256 LLL : 'YYYY MMMM D, a h:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5257 LLLL : 'YYYY MMMM D [වැනි] dddd, a h:mm:ss' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5258 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5259 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5260 sameDay : '[අද] LT[ට]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5261 nextDay : '[හෙට] LT[ට]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5262 nextWeek : 'dddd LT[ට]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5263 lastDay : '[ඊයේ] LT[ට]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5264 lastWeek : '[පසුගිය] dddd LT[ට]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5265 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5266 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5267 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5268 future : '%sකින්', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5269 past : '%sකට පෙර', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5270 s : 'තත්පර කිහිපය', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5271 m : 'මිනිත්තුව', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5272 mm : 'මිනිත්තු %d', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5273 h : 'පැය', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5274 hh : 'පැය %d', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5275 d : 'දිනය', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5276 dd : 'දින %d', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5277 M : 'මාසය', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5278 MM : 'මාස %d', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5279 y : 'වසර', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5280 yy : 'වසර %d' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5281 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5282 ordinalParse: /\d{1,2} වැනි/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5283 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5284 return number + ' වැනි'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5285 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5286 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5287 if (hours > 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5288 return isLower ? 'ප.ව.' : 'පස් වරු'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5289 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5290 return isLower ? 'පෙ.ව.' : 'පෙර වරු'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5291 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5292 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5293 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5294 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5295 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5296 //! locale : slovak (sk) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5297 //! author : Martin Minka : https://github.com/k2s |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5298 //! based on work of petrbela : https://github.com/petrbela |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5299 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5300 var sk__months = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5301 sk__monthsShort = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5302 function sk__plural(n) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5303 return (n > 1) && (n < 5); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5304 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5305 function sk__translate(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5306 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5307 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5308 case 's': // a few seconds / in a few seconds / a few seconds ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5309 return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5310 case 'm': // a minute / in a minute / a minute ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5311 return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5312 case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5313 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5314 return result + (sk__plural(number) ? 'minúty' : 'minút'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5315 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5316 return result + 'minútami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5317 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5318 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5319 case 'h': // an hour / in an hour / an hour ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5320 return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5321 case 'hh': // 9 hours / in 9 hours / 9 hours ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5322 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5323 return result + (sk__plural(number) ? 'hodiny' : 'hodín'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5324 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5325 return result + 'hodinami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5326 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5327 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5328 case 'd': // a day / in a day / a day ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5329 return (withoutSuffix || isFuture) ? 'deň' : 'dňom'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5330 case 'dd': // 9 days / in 9 days / 9 days ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5331 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5332 return result + (sk__plural(number) ? 'dni' : 'dní'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5333 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5334 return result + 'dňami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5335 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5336 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5337 case 'M': // a month / in a month / a month ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5338 return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5339 case 'MM': // 9 months / in 9 months / 9 months ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5340 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5341 return result + (sk__plural(number) ? 'mesiace' : 'mesiacov'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5342 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5343 return result + 'mesiacmi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5344 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5345 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5346 case 'y': // a year / in a year / a year ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5347 return (withoutSuffix || isFuture) ? 'rok' : 'rokom'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5348 case 'yy': // 9 years / in 9 years / 9 years ago |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5349 if (withoutSuffix || isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5350 return result + (sk__plural(number) ? 'roky' : 'rokov'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5351 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5352 return result + 'rokmi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5353 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5354 break; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5355 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5356 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5357 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5358 var sk = moment.defineLocale('sk', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5359 months : sk__months, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5360 monthsShort : sk__monthsShort, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5361 monthsParse : (function (months, monthsShort) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5362 var i, _monthsParse = []; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5363 for (i = 0; i < 12; i++) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5364 // use custom parser to solve problem with July (červenec) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5365 _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5366 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5367 return _monthsParse; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5368 }(sk__months, sk__monthsShort)), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5369 weekdays : 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5370 weekdaysShort : 'ne_po_ut_st_št_pi_so'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5371 weekdaysMin : 'ne_po_ut_st_št_pi_so'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5372 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5373 LT: 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5374 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5375 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5376 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5377 LLL : 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5378 LLLL : 'dddd D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5379 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5380 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5381 sameDay: '[dnes o] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5382 nextDay: '[zajtra o] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5383 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5384 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5385 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5386 return '[v nedeľu o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5387 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5388 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5389 return '[v] dddd [o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5390 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5391 return '[v stredu o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5392 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5393 return '[vo štvrtok o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5394 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5395 return '[v piatok o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5396 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5397 return '[v sobotu o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5398 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5399 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5400 lastDay: '[včera o] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5401 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5402 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5403 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5404 return '[minulú nedeľu o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5405 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5406 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5407 return '[minulý] dddd [o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5408 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5409 return '[minulú stredu o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5410 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5411 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5412 return '[minulý] dddd [o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5413 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5414 return '[minulú sobotu o] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5415 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5416 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5417 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5418 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5419 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5420 future : 'za %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5421 past : 'pred %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5422 s : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5423 m : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5424 mm : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5425 h : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5426 hh : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5427 d : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5428 dd : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5429 M : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5430 MM : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5431 y : sk__translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5432 yy : sk__translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5433 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5434 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5435 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5436 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5437 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5438 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5439 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5440 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5441 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5442 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5443 //! locale : slovenian (sl) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5444 //! author : Robert Sedovšek : https://github.com/sedovsek |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5445 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5446 function sl__processRelativeTime(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5447 var result = number + ' '; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5448 switch (key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5449 case 's': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5450 return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5451 case 'm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5452 return withoutSuffix ? 'ena minuta' : 'eno minuto'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5453 case 'mm': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5454 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5455 result += withoutSuffix ? 'minuta' : 'minuto'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5456 } else if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5457 result += withoutSuffix || isFuture ? 'minuti' : 'minutama'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5458 } else if (number < 5) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5459 result += withoutSuffix || isFuture ? 'minute' : 'minutami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5460 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5461 result += withoutSuffix || isFuture ? 'minut' : 'minutami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5462 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5463 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5464 case 'h': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5465 return withoutSuffix ? 'ena ura' : 'eno uro'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5466 case 'hh': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5467 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5468 result += withoutSuffix ? 'ura' : 'uro'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5469 } else if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5470 result += withoutSuffix || isFuture ? 'uri' : 'urama'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5471 } else if (number < 5) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5472 result += withoutSuffix || isFuture ? 'ure' : 'urami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5473 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5474 result += withoutSuffix || isFuture ? 'ur' : 'urami'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5475 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5476 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5477 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5478 return withoutSuffix || isFuture ? 'en dan' : 'enim dnem'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5479 case 'dd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5480 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5481 result += withoutSuffix || isFuture ? 'dan' : 'dnem'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5482 } else if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5483 result += withoutSuffix || isFuture ? 'dni' : 'dnevoma'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5484 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5485 result += withoutSuffix || isFuture ? 'dni' : 'dnevi'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5486 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5487 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5488 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5489 return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5490 case 'MM': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5491 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5492 result += withoutSuffix || isFuture ? 'mesec' : 'mesecem'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5493 } else if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5494 result += withoutSuffix || isFuture ? 'meseca' : 'mesecema'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5495 } else if (number < 5) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5496 result += withoutSuffix || isFuture ? 'mesece' : 'meseci'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5497 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5498 result += withoutSuffix || isFuture ? 'mesecev' : 'meseci'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5499 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5500 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5501 case 'y': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5502 return withoutSuffix || isFuture ? 'eno leto' : 'enim letom'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5503 case 'yy': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5504 if (number === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5505 result += withoutSuffix || isFuture ? 'leto' : 'letom'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5506 } else if (number === 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5507 result += withoutSuffix || isFuture ? 'leti' : 'letoma'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5508 } else if (number < 5) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5509 result += withoutSuffix || isFuture ? 'leta' : 'leti'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5510 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5511 result += withoutSuffix || isFuture ? 'let' : 'leti'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5512 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5513 return result; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5514 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5515 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5516 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5517 var sl = moment.defineLocale('sl', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5518 months : 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5519 monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5520 weekdays : 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5521 weekdaysShort : 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5522 weekdaysMin : 'ne_po_to_sr_če_pe_so'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5523 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5524 LT : 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5525 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5526 L : 'DD. MM. YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5527 LL : 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5528 LLL : 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5529 LLLL : 'dddd, D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5530 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5531 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5532 sameDay : '[danes ob] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5533 nextDay : '[jutri ob] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5534 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5535 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5536 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5537 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5538 return '[v] [nedeljo] [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5539 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5540 return '[v] [sredo] [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5541 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5542 return '[v] [soboto] [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5543 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5544 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5545 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5546 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5547 return '[v] dddd [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5548 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5549 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5550 lastDay : '[včeraj ob] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5551 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5552 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5553 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5554 return '[prejšnjo] [nedeljo] [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5555 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5556 return '[prejšnjo] [sredo] [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5557 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5558 return '[prejšnjo] [soboto] [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5559 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5560 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5561 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5562 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5563 return '[prejšnji] dddd [ob] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5564 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5565 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5566 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5567 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5568 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5569 future : 'čez %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5570 past : 'pred %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5571 s : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5572 m : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5573 mm : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5574 h : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5575 hh : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5576 d : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5577 dd : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5578 M : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5579 MM : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5580 y : sl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5581 yy : sl__processRelativeTime |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5582 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5583 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5584 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5585 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5586 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5587 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5588 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5589 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5590 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5591 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5592 //! locale : Albanian (sq) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5593 //! author : Flakërim Ismani : https://github.com/flakerimi |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5594 //! author: Menelion Elensúle: https://github.com/Oire (tests) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5595 //! author : Oerd Cukalla : https://github.com/oerd (fixes) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5596 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5597 var sq = moment.defineLocale('sq', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5598 months : 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5599 monthsShort : 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5600 weekdays : 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5601 weekdaysShort : 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5602 weekdaysMin : 'D_H_Ma_Më_E_P_Sh'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5603 meridiemParse: /PD|MD/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5604 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5605 return input.charAt(0) === 'M'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5606 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5607 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5608 return hours < 12 ? 'PD' : 'MD'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5609 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5610 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5611 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5612 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5613 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5614 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5615 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5616 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5617 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5618 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5619 sameDay : '[Sot në] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5620 nextDay : '[Nesër në] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5621 nextWeek : 'dddd [në] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5622 lastDay : '[Dje në] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5623 lastWeek : 'dddd [e kaluar në] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5624 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5625 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5626 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5627 future : 'në %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5628 past : '%s më parë', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5629 s : 'disa sekonda', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5630 m : 'një minutë', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5631 mm : '%d minuta', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5632 h : 'një orë', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5633 hh : '%d orë', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5634 d : 'një ditë', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5635 dd : '%d ditë', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5636 M : 'një muaj', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5637 MM : '%d muaj', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5638 y : 'një vit', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5639 yy : '%d vite' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5640 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5641 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5642 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5643 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5644 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5645 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5646 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5647 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5648 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5649 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5650 //! locale : Serbian-cyrillic (sr-cyrl) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5651 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5652 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5653 var sr_cyrl__translator = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5654 words: { //Different grammatical cases |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5655 m: ['један минут', 'једне минуте'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5656 mm: ['минут', 'минуте', 'минута'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5657 h: ['један сат', 'једног сата'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5658 hh: ['сат', 'сата', 'сати'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5659 dd: ['дан', 'дана', 'дана'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5660 MM: ['месец', 'месеца', 'месеци'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5661 yy: ['година', 'године', 'година'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5662 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5663 correctGrammaticalCase: function (number, wordKey) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5664 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5665 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5666 translate: function (number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5667 var wordKey = sr_cyrl__translator.words[key]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5668 if (key.length === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5669 return withoutSuffix ? wordKey[0] : wordKey[1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5670 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5671 return number + ' ' + sr_cyrl__translator.correctGrammaticalCase(number, wordKey); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5672 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5673 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5674 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5675 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5676 var sr_cyrl = moment.defineLocale('sr-cyrl', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5677 months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5678 monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5679 weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5680 weekdaysShort: ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5681 weekdaysMin: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5682 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5683 LT: 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5684 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5685 L: 'DD. MM. YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5686 LL: 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5687 LLL: 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5688 LLLL: 'dddd, D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5689 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5690 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5691 sameDay: '[данас у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5692 nextDay: '[сутра у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5693 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5694 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5695 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5696 return '[у] [недељу] [у] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5697 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5698 return '[у] [среду] [у] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5699 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5700 return '[у] [суботу] [у] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5701 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5702 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5703 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5704 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5705 return '[у] dddd [у] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5706 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5707 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5708 lastDay : '[јуче у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5709 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5710 var lastWeekDays = [ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5711 '[прошле] [недеље] [у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5712 '[прошлог] [понедељка] [у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5713 '[прошлог] [уторка] [у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5714 '[прошле] [среде] [у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5715 '[прошлог] [четвртка] [у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5716 '[прошлог] [петка] [у] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5717 '[прошле] [суботе] [у] LT' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5718 ]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5719 return lastWeekDays[this.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5720 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5721 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5722 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5723 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5724 future : 'за %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5725 past : 'пре %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5726 s : 'неколико секунди', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5727 m : sr_cyrl__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5728 mm : sr_cyrl__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5729 h : sr_cyrl__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5730 hh : sr_cyrl__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5731 d : 'дан', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5732 dd : sr_cyrl__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5733 M : 'месец', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5734 MM : sr_cyrl__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5735 y : 'годину', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5736 yy : sr_cyrl__translator.translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5737 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5738 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5739 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5740 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5741 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5742 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5743 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5744 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5745 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5746 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5747 //! locale : Serbian-latin (sr) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5748 //! author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5749 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5750 var sr__translator = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5751 words: { //Different grammatical cases |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5752 m: ['jedan minut', 'jedne minute'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5753 mm: ['minut', 'minute', 'minuta'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5754 h: ['jedan sat', 'jednog sata'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5755 hh: ['sat', 'sata', 'sati'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5756 dd: ['dan', 'dana', 'dana'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5757 MM: ['mesec', 'meseca', 'meseci'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5758 yy: ['godina', 'godine', 'godina'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5759 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5760 correctGrammaticalCase: function (number, wordKey) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5761 return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5762 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5763 translate: function (number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5764 var wordKey = sr__translator.words[key]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5765 if (key.length === 1) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5766 return withoutSuffix ? wordKey[0] : wordKey[1]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5767 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5768 return number + ' ' + sr__translator.correctGrammaticalCase(number, wordKey); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5769 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5770 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5771 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5772 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5773 var sr = moment.defineLocale('sr', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5774 months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5775 monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5776 weekdays: ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5777 weekdaysShort: ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5778 weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5779 longDateFormat: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5780 LT: 'H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5781 LTS : 'H:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5782 L: 'DD. MM. YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5783 LL: 'D. MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5784 LLL: 'D. MMMM YYYY H:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5785 LLLL: 'dddd, D. MMMM YYYY H:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5786 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5787 calendar: { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5788 sameDay: '[danas u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5789 nextDay: '[sutra u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5790 nextWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5791 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5792 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5793 return '[u] [nedelju] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5794 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5795 return '[u] [sredu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5796 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5797 return '[u] [subotu] [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5798 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5799 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5800 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5801 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5802 return '[u] dddd [u] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5803 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5804 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5805 lastDay : '[juče u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5806 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5807 var lastWeekDays = [ |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5808 '[prošle] [nedelje] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5809 '[prošlog] [ponedeljka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5810 '[prošlog] [utorka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5811 '[prošle] [srede] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5812 '[prošlog] [četvrtka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5813 '[prošlog] [petka] [u] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5814 '[prošle] [subote] [u] LT' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5815 ]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5816 return lastWeekDays[this.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5817 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5818 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5819 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5820 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5821 future : 'za %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5822 past : 'pre %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5823 s : 'nekoliko sekundi', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5824 m : sr__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5825 mm : sr__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5826 h : sr__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5827 hh : sr__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5828 d : 'dan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5829 dd : sr__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5830 M : 'mesec', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5831 MM : sr__translator.translate, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5832 y : 'godinu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5833 yy : sr__translator.translate |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5834 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5835 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5836 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5837 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5838 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5839 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5840 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5841 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5842 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5843 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5844 //! locale : swedish (sv) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5845 //! author : Jens Alm : https://github.com/ulmus |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5846 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5847 var sv = moment.defineLocale('sv', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5848 months : 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5849 monthsShort : 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5850 weekdays : 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5851 weekdaysShort : 'sön_mån_tis_ons_tor_fre_lör'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5852 weekdaysMin : 'sö_må_ti_on_to_fr_lö'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5853 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5854 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5855 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5856 L : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5857 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5858 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5859 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5860 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5861 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5862 sameDay: '[Idag] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5863 nextDay: '[Imorgon] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5864 lastDay: '[Igår] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5865 nextWeek: '[På] dddd LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5866 lastWeek: '[I] dddd[s] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5867 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5868 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5869 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5870 future : 'om %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5871 past : 'för %s sedan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5872 s : 'några sekunder', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5873 m : 'en minut', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5874 mm : '%d minuter', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5875 h : 'en timme', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5876 hh : '%d timmar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5877 d : 'en dag', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5878 dd : '%d dagar', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5879 M : 'en månad', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5880 MM : '%d månader', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5881 y : 'ett år', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5882 yy : '%d år' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5883 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5884 ordinalParse: /\d{1,2}(e|a)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5885 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5886 var b = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5887 output = (~~(number % 100 / 10) === 1) ? 'e' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5888 (b === 1) ? 'a' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5889 (b === 2) ? 'a' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5890 (b === 3) ? 'e' : 'e'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5891 return number + output; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5892 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5893 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5894 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5895 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5896 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5897 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5898 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5899 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5900 //! locale : tamil (ta) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5901 //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5902 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5903 var ta = moment.defineLocale('ta', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5904 months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5905 monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5906 weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5907 weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5908 weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5909 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5910 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5911 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5912 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5913 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5914 LLL : 'D MMMM YYYY, HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5915 LLLL : 'dddd, D MMMM YYYY, HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5916 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5917 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5918 sameDay : '[இன்று] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5919 nextDay : '[நாளை] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5920 nextWeek : 'dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5921 lastDay : '[நேற்று] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5922 lastWeek : '[கடந்த வாரம்] dddd, LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5923 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5924 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5925 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5926 future : '%s இல்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5927 past : '%s முன்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5928 s : 'ஒரு சில விநாடிகள்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5929 m : 'ஒரு நிமிடம்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5930 mm : '%d நிமிடங்கள்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5931 h : 'ஒரு மணி நேரம்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5932 hh : '%d மணி நேரம்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5933 d : 'ஒரு நாள்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5934 dd : '%d நாட்கள்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5935 M : 'ஒரு மாதம்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5936 MM : '%d மாதங்கள்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5937 y : 'ஒரு வருடம்', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5938 yy : '%d ஆண்டுகள்' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5939 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5940 ordinalParse: /\d{1,2}வது/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5941 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5942 return number + 'வது'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5943 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5944 // refer http://ta.wikipedia.org/s/1er1 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5945 meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5946 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5947 if (hour < 2) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5948 return ' யாமம்'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5949 } else if (hour < 6) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5950 return ' வைகறை'; // வைகறை |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5951 } else if (hour < 10) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5952 return ' காலை'; // காலை |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5953 } else if (hour < 14) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5954 return ' நண்பகல்'; // நண்பகல் |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5955 } else if (hour < 18) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5956 return ' எற்பாடு'; // எற்பாடு |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5957 } else if (hour < 22) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5958 return ' மாலை'; // மாலை |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5959 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5960 return ' யாமம்'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5961 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5962 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5963 meridiemHour : function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5964 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5965 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5966 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5967 if (meridiem === 'யாமம்') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5968 return hour < 2 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5969 } else if (meridiem === 'வைகறை' || meridiem === 'காலை') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5970 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5971 } else if (meridiem === 'நண்பகல்') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5972 return hour >= 10 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5973 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5974 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5975 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5976 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5977 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5978 dow : 0, // Sunday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5979 doy : 6 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5980 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5981 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5982 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5983 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5984 //! locale : thai (th) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5985 //! author : Kridsada Thanabulpong : https://github.com/sirn |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5986 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5987 var th = moment.defineLocale('th', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5988 months : 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5989 monthsShort : 'มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5990 weekdays : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5991 weekdaysShort : 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5992 weekdaysMin : 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5993 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5994 LT : 'H นาฬิกา m นาที', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5995 LTS : 'H นาฬิกา m นาที s วินาที', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5996 L : 'YYYY/MM/DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5997 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5998 LLL : 'D MMMM YYYY เวลา H นาฬิกา m นาที', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
5999 LLLL : 'วันddddที่ D MMMM YYYY เวลา H นาฬิกา m นาที' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6000 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6001 meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6002 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6003 return input === 'หลังเที่ยง'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6004 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6005 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6006 if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6007 return 'ก่อนเที่ยง'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6008 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6009 return 'หลังเที่ยง'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6010 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6011 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6012 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6013 sameDay : '[วันนี้ เวลา] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6014 nextDay : '[พรุ่งนี้ เวลา] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6015 nextWeek : 'dddd[หน้า เวลา] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6016 lastDay : '[เมื่อวานนี้ เวลา] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6017 lastWeek : '[วัน]dddd[ที่แล้ว เวลา] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6018 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6019 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6020 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6021 future : 'อีก %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6022 past : '%sที่แล้ว', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6023 s : 'ไม่กี่วินาที', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6024 m : '1 นาที', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6025 mm : '%d นาที', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6026 h : '1 ชั่วโมง', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6027 hh : '%d ชั่วโมง', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6028 d : '1 วัน', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6029 dd : '%d วัน', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6030 M : '1 เดือน', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6031 MM : '%d เดือน', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6032 y : '1 ปี', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6033 yy : '%d ปี' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6034 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6035 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6036 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6037 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6038 //! locale : Tagalog/Filipino (tl-ph) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6039 //! author : Dan Hagman |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6040 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6041 var tl_ph = moment.defineLocale('tl-ph', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6042 months : 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6043 monthsShort : 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6044 weekdays : 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6045 weekdaysShort : 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6046 weekdaysMin : 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6047 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6048 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6049 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6050 L : 'MM/D/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6051 LL : 'MMMM D, YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6052 LLL : 'MMMM D, YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6053 LLLL : 'dddd, MMMM DD, YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6054 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6055 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6056 sameDay: '[Ngayon sa] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6057 nextDay: '[Bukas sa] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6058 nextWeek: 'dddd [sa] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6059 lastDay: '[Kahapon sa] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6060 lastWeek: 'dddd [huling linggo] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6061 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6062 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6063 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6064 future : 'sa loob ng %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6065 past : '%s ang nakalipas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6066 s : 'ilang segundo', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6067 m : 'isang minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6068 mm : '%d minuto', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6069 h : 'isang oras', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6070 hh : '%d oras', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6071 d : 'isang araw', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6072 dd : '%d araw', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6073 M : 'isang buwan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6074 MM : '%d buwan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6075 y : 'isang taon', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6076 yy : '%d taon' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6077 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6078 ordinalParse: /\d{1,2}/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6079 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6080 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6081 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6082 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6083 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6084 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6085 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6086 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6087 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6088 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6089 //! locale : turkish (tr) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6090 //! authors : Erhan Gundogan : https://github.com/erhangundogan, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6091 //! Burak Yiğit Kaya: https://github.com/BYK |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6092 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6093 var tr__suffixes = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6094 1: '\'inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6095 5: '\'inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6096 8: '\'inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6097 70: '\'inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6098 80: '\'inci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6099 2: '\'nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6100 7: '\'nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6101 20: '\'nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6102 50: '\'nci', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6103 3: '\'üncü', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6104 4: '\'üncü', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6105 100: '\'üncü', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6106 6: '\'ncı', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6107 9: '\'uncu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6108 10: '\'uncu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6109 30: '\'uncu', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6110 60: '\'ıncı', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6111 90: '\'ıncı' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6112 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6113 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6114 var tr = moment.defineLocale('tr', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6115 months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6116 monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6117 weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6118 weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6119 weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6120 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6121 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6122 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6123 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6124 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6125 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6126 LLLL : 'dddd, D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6127 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6128 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6129 sameDay : '[bugün saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6130 nextDay : '[yarın saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6131 nextWeek : '[haftaya] dddd [saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6132 lastDay : '[dün] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6133 lastWeek : '[geçen hafta] dddd [saat] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6134 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6135 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6136 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6137 future : '%s sonra', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6138 past : '%s önce', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6139 s : 'birkaç saniye', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6140 m : 'bir dakika', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6141 mm : '%d dakika', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6142 h : 'bir saat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6143 hh : '%d saat', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6144 d : 'bir gün', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6145 dd : '%d gün', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6146 M : 'bir ay', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6147 MM : '%d ay', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6148 y : 'bir yıl', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6149 yy : '%d yıl' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6150 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6151 ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6152 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6153 if (number === 0) { // special case for zero |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6154 return number + '\'ıncı'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6155 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6156 var a = number % 10, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6157 b = number % 100 - a, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6158 c = number >= 100 ? 100 : null; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6159 return number + (tr__suffixes[a] || tr__suffixes[b] || tr__suffixes[c]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6160 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6161 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6162 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6163 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6164 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6165 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6166 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6167 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6168 //! locale : talossan (tzl) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6169 //! author : Robin van der Vliet : https://github.com/robin0van0der0v with the help of Iustì Canun |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6170 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6171 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6172 var tzl = moment.defineLocale('tzl', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6173 months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6174 monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6175 weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6176 weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6177 weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6178 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6179 LT : 'HH.mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6180 LTS : 'LT.ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6181 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6182 LL : 'D. MMMM [dallas] YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6183 LLL : 'D. MMMM [dallas] YYYY LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6184 LLLL : 'dddd, [li] D. MMMM [dallas] YYYY LT' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6185 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6186 meridiem : function (hours, minutes, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6187 if (hours > 11) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6188 return isLower ? 'd\'o' : 'D\'O'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6189 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6190 return isLower ? 'd\'a' : 'D\'A'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6191 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6192 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6193 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6194 sameDay : '[oxhi à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6195 nextDay : '[demà à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6196 nextWeek : 'dddd [à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6197 lastDay : '[ieiri à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6198 lastWeek : '[sür el] dddd [lasteu à] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6199 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6200 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6201 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6202 future : 'osprei %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6203 past : 'ja%s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6204 s : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6205 m : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6206 mm : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6207 h : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6208 hh : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6209 d : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6210 dd : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6211 M : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6212 MM : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6213 y : tzl__processRelativeTime, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6214 yy : tzl__processRelativeTime |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6215 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6216 ordinalParse: /\d{1,2}\./, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6217 ordinal : '%d.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6218 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6219 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6220 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6221 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6222 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6223 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6224 function tzl__processRelativeTime(number, withoutSuffix, key, isFuture) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6225 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6226 's': ['viensas secunds', '\'iensas secunds'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6227 'm': ['\'n míut', '\'iens míut'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6228 'mm': [number + ' míuts', ' ' + number + ' míuts'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6229 'h': ['\'n þora', '\'iensa þora'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6230 'hh': [number + ' þoras', ' ' + number + ' þoras'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6231 'd': ['\'n ziua', '\'iensa ziua'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6232 'dd': [number + ' ziuas', ' ' + number + ' ziuas'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6233 'M': ['\'n mes', '\'iens mes'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6234 'MM': [number + ' mesen', ' ' + number + ' mesen'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6235 'y': ['\'n ar', '\'iens ar'], |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6236 'yy': [number + ' ars', ' ' + number + ' ars'] |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6237 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6238 return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1].trim()); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6239 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6240 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6241 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6242 //! locale : Morocco Central Atlas Tamaziɣt in Latin (tzm-latn) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6243 //! author : Abdel Said : https://github.com/abdelsaid |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6244 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6245 var tzm_latn = moment.defineLocale('tzm-latn', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6246 months : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6247 monthsShort : 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6248 weekdays : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6249 weekdaysShort : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6250 weekdaysMin : 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6251 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6252 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6253 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6254 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6255 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6256 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6257 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6258 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6259 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6260 sameDay: '[asdkh g] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6261 nextDay: '[aska g] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6262 nextWeek: 'dddd [g] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6263 lastDay: '[assant g] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6264 lastWeek: 'dddd [g] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6265 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6266 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6267 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6268 future : 'dadkh s yan %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6269 past : 'yan %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6270 s : 'imik', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6271 m : 'minuḍ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6272 mm : '%d minuḍ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6273 h : 'saɛa', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6274 hh : '%d tassaɛin', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6275 d : 'ass', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6276 dd : '%d ossan', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6277 M : 'ayowr', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6278 MM : '%d iyyirn', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6279 y : 'asgas', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6280 yy : '%d isgasn' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6281 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6282 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6283 dow : 6, // Saturday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6284 doy : 12 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6285 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6286 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6287 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6288 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6289 //! locale : Morocco Central Atlas Tamaziɣt (tzm) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6290 //! author : Abdel Said : https://github.com/abdelsaid |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6291 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6292 var tzm = moment.defineLocale('tzm', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6293 months : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6294 monthsShort : 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6295 weekdays : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6296 weekdaysShort : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6297 weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6298 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6299 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6300 LTS: 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6301 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6302 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6303 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6304 LLLL : 'dddd D MMMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6305 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6306 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6307 sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6308 nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6309 nextWeek: 'dddd [ⴴ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6310 lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6311 lastWeek: 'dddd [ⴴ] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6312 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6313 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6314 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6315 future : 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6316 past : 'ⵢⴰⵏ %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6317 s : 'ⵉⵎⵉⴽ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6318 m : 'ⵎⵉⵏⵓⴺ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6319 mm : '%d ⵎⵉⵏⵓⴺ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6320 h : 'ⵙⴰⵄⴰ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6321 hh : '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6322 d : 'ⴰⵙⵙ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6323 dd : '%d oⵙⵙⴰⵏ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6324 M : 'ⴰⵢoⵓⵔ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6325 MM : '%d ⵉⵢⵢⵉⵔⵏ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6326 y : 'ⴰⵙⴳⴰⵙ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6327 yy : '%d ⵉⵙⴳⴰⵙⵏ' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6328 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6329 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6330 dow : 6, // Saturday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6331 doy : 12 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6332 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6333 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6334 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6335 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6336 //! locale : ukrainian (uk) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6337 //! author : zemlanin : https://github.com/zemlanin |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6338 //! Author : Menelion Elensúle : https://github.com/Oire |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6339 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6340 function uk__plural(word, num) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6341 var forms = word.split('_'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6342 return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6343 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6344 function uk__relativeTimeWithPlural(number, withoutSuffix, key) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6345 var format = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6346 'mm': 'хвилина_хвилини_хвилин', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6347 'hh': 'година_години_годин', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6348 'dd': 'день_дні_днів', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6349 'MM': 'місяць_місяці_місяців', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6350 'yy': 'рік_роки_років' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6351 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6352 if (key === 'm') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6353 return withoutSuffix ? 'хвилина' : 'хвилину'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6354 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6355 else if (key === 'h') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6356 return withoutSuffix ? 'година' : 'годину'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6357 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6358 else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6359 return number + ' ' + uk__plural(format[key], +number); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6360 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6361 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6362 function uk__monthsCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6363 var months = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6364 'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6365 'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6366 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6367 nounCase = (/D[oD]? *MMMM?/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6368 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6369 'nominative'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6370 return months[nounCase][m.month()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6371 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6372 function uk__weekdaysCaseReplace(m, format) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6373 var weekdays = { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6374 'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6375 'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6376 'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_') |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6377 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6378 nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6379 'accusative' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6380 ((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ? |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6381 'genitive' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6382 'nominative'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6383 return weekdays[nounCase][m.day()]; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6384 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6385 function processHoursFunction(str) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6386 return function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6387 return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6388 }; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6389 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6390 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6391 var uk = moment.defineLocale('uk', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6392 months : uk__monthsCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6393 monthsShort : 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6394 weekdays : uk__weekdaysCaseReplace, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6395 weekdaysShort : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6396 weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6397 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6398 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6399 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6400 L : 'DD.MM.YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6401 LL : 'D MMMM YYYY р.', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6402 LLL : 'D MMMM YYYY р., HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6403 LLLL : 'dddd, D MMMM YYYY р., HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6404 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6405 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6406 sameDay: processHoursFunction('[Сьогодні '), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6407 nextDay: processHoursFunction('[Завтра '), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6408 lastDay: processHoursFunction('[Вчора '), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6409 nextWeek: processHoursFunction('[У] dddd ['), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6410 lastWeek: function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6411 switch (this.day()) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6412 case 0: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6413 case 3: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6414 case 5: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6415 case 6: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6416 return processHoursFunction('[Минулої] dddd [').call(this); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6417 case 1: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6418 case 2: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6419 case 4: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6420 return processHoursFunction('[Минулого] dddd [').call(this); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6421 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6422 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6423 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6424 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6425 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6426 future : 'за %s', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6427 past : '%s тому', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6428 s : 'декілька секунд', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6429 m : uk__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6430 mm : uk__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6431 h : 'годину', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6432 hh : uk__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6433 d : 'день', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6434 dd : uk__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6435 M : 'місяць', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6436 MM : uk__relativeTimeWithPlural, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6437 y : 'рік', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6438 yy : uk__relativeTimeWithPlural |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6439 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6440 // M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6441 meridiemParse: /ночі|ранку|дня|вечора/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6442 isPM: function (input) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6443 return /^(дня|вечора)$/.test(input); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6444 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6445 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6446 if (hour < 4) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6447 return 'ночі'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6448 } else if (hour < 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6449 return 'ранку'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6450 } else if (hour < 17) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6451 return 'дня'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6452 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6453 return 'вечора'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6454 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6455 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6456 ordinalParse: /\d{1,2}-(й|го)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6457 ordinal: function (number, period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6458 switch (period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6459 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6460 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6461 case 'DDD': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6462 case 'w': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6463 case 'W': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6464 return number + '-й'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6465 case 'D': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6466 return number + '-го'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6467 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6468 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6469 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6470 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6471 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6472 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6473 doy : 7 // The week that contains Jan 1st is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6474 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6475 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6476 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6477 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6478 //! locale : uzbek (uz) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6479 //! author : Sardor Muminov : https://github.com/muminoff |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6480 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6481 var uz = moment.defineLocale('uz', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6482 months : 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6483 monthsShort : 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6484 weekdays : 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6485 weekdaysShort : 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6486 weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6487 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6488 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6489 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6490 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6491 LL : 'D MMMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6492 LLL : 'D MMMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6493 LLLL : 'D MMMM YYYY, dddd HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6494 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6495 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6496 sameDay : '[Бугун соат] LT [да]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6497 nextDay : '[Эртага] LT [да]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6498 nextWeek : 'dddd [куни соат] LT [да]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6499 lastDay : '[Кеча соат] LT [да]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6500 lastWeek : '[Утган] dddd [куни соат] LT [да]', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6501 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6502 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6503 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6504 future : 'Якин %s ичида', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6505 past : 'Бир неча %s олдин', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6506 s : 'фурсат', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6507 m : 'бир дакика', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6508 mm : '%d дакика', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6509 h : 'бир соат', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6510 hh : '%d соат', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6511 d : 'бир кун', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6512 dd : '%d кун', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6513 M : 'бир ой', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6514 MM : '%d ой', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6515 y : 'бир йил', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6516 yy : '%d йил' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6517 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6518 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6519 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6520 doy : 7 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6521 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6522 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6523 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6524 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6525 //! locale : vietnamese (vi) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6526 //! author : Bang Nguyen : https://github.com/bangnk |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6527 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6528 var vi = moment.defineLocale('vi', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6529 months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6530 monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6531 weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6532 weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6533 weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6534 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6535 LT : 'HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6536 LTS : 'HH:mm:ss', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6537 L : 'DD/MM/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6538 LL : 'D MMMM [năm] YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6539 LLL : 'D MMMM [năm] YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6540 LLLL : 'dddd, D MMMM [năm] YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6541 l : 'DD/M/YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6542 ll : 'D MMM YYYY', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6543 lll : 'D MMM YYYY HH:mm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6544 llll : 'ddd, D MMM YYYY HH:mm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6545 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6546 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6547 sameDay: '[Hôm nay lúc] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6548 nextDay: '[Ngày mai lúc] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6549 nextWeek: 'dddd [tuần tới lúc] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6550 lastDay: '[Hôm qua lúc] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6551 lastWeek: 'dddd [tuần rồi lúc] LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6552 sameElse: 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6553 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6554 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6555 future : '%s tới', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6556 past : '%s trước', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6557 s : 'vài giây', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6558 m : 'một phút', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6559 mm : '%d phút', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6560 h : 'một giờ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6561 hh : '%d giờ', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6562 d : 'một ngày', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6563 dd : '%d ngày', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6564 M : 'một tháng', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6565 MM : '%d tháng', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6566 y : 'một năm', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6567 yy : '%d năm' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6568 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6569 ordinalParse: /\d{1,2}/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6570 ordinal : function (number) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6571 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6572 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6573 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6574 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6575 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6576 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6577 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6578 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6579 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6580 //! locale : chinese (zh-cn) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6581 //! author : suupic : https://github.com/suupic |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6582 //! author : Zeno Zeng : https://github.com/zenozeng |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6583 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6584 var zh_cn = moment.defineLocale('zh-cn', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6585 months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6586 monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6587 weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6588 weekdaysShort : '周日_周一_周二_周三_周四_周五_周六'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6589 weekdaysMin : '日_一_二_三_四_五_六'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6590 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6591 LT : 'Ah点mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6592 LTS : 'Ah点m分s秒', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6593 L : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6594 LL : 'YYYY年MMMD日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6595 LLL : 'YYYY年MMMD日Ah点mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6596 LLLL : 'YYYY年MMMD日ddddAh点mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6597 l : 'YYYY-MM-DD', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6598 ll : 'YYYY年MMMD日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6599 lll : 'YYYY年MMMD日Ah点mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6600 llll : 'YYYY年MMMD日ddddAh点mm分' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6601 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6602 meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6603 meridiemHour: function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6604 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6605 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6606 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6607 if (meridiem === '凌晨' || meridiem === '早上' || |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6608 meridiem === '上午') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6609 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6610 } else if (meridiem === '下午' || meridiem === '晚上') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6611 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6612 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6613 // '中午' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6614 return hour >= 11 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6615 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6616 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6617 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6618 var hm = hour * 100 + minute; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6619 if (hm < 600) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6620 return '凌晨'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6621 } else if (hm < 900) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6622 return '早上'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6623 } else if (hm < 1130) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6624 return '上午'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6625 } else if (hm < 1230) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6626 return '中午'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6627 } else if (hm < 1800) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6628 return '下午'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6629 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6630 return '晚上'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6631 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6632 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6633 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6634 sameDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6635 return this.minutes() === 0 ? '[今天]Ah[点整]' : '[今天]LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6636 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6637 nextDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6638 return this.minutes() === 0 ? '[明天]Ah[点整]' : '[明天]LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6639 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6640 lastDay : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6641 return this.minutes() === 0 ? '[昨天]Ah[点整]' : '[昨天]LT'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6642 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6643 nextWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6644 var startOfWeek, prefix; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6645 startOfWeek = moment().startOf('week'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6646 prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6647 return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6648 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6649 lastWeek : function () { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6650 var startOfWeek, prefix; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6651 startOfWeek = moment().startOf('week'); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6652 prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6653 return this.minutes() === 0 ? prefix + 'dddAh点整' : prefix + 'dddAh点mm'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6654 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6655 sameElse : 'LL' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6656 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6657 ordinalParse: /\d{1,2}(日|月|周)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6658 ordinal : function (number, period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6659 switch (period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6660 case 'd': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6661 case 'D': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6662 case 'DDD': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6663 return number + '日'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6664 case 'M': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6665 return number + '月'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6666 case 'w': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6667 case 'W': |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6668 return number + '周'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6669 default: |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6670 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6671 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6672 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6673 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6674 future : '%s内', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6675 past : '%s前', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6676 s : '几秒', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6677 m : '1 分钟', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6678 mm : '%d 分钟', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6679 h : '1 小时', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6680 hh : '%d 小时', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6681 d : '1 天', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6682 dd : '%d 天', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6683 M : '1 个月', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6684 MM : '%d 个月', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6685 y : '1 年', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6686 yy : '%d 年' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6687 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6688 week : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6689 // GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6690 dow : 1, // Monday is the first day of the week. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6691 doy : 4 // The week that contains Jan 4th is the first week of the year. |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6692 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6693 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6694 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6695 //! moment.js locale configuration |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6696 //! locale : traditional chinese (zh-tw) |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6697 //! author : Ben : https://github.com/ben-lin |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6698 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6699 var zh_tw = moment.defineLocale('zh-tw', { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6700 months : '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6701 monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6702 weekdays : '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6703 weekdaysShort : '週日_週一_週二_週三_週四_週五_週六'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6704 weekdaysMin : '日_一_二_三_四_五_六'.split('_'), |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6705 longDateFormat : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6706 LT : 'Ah點mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6707 LTS : 'Ah點m分s秒', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6708 L : 'YYYY年MMMD日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6709 LL : 'YYYY年MMMD日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6710 LLL : 'YYYY年MMMD日Ah點mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6711 LLLL : 'YYYY年MMMD日ddddAh點mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6712 l : 'YYYY年MMMD日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6713 ll : 'YYYY年MMMD日', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6714 lll : 'YYYY年MMMD日Ah點mm分', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6715 llll : 'YYYY年MMMD日ddddAh點mm分' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6716 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6717 meridiemParse: /早上|上午|中午|下午|晚上/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6718 meridiemHour : function (hour, meridiem) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6719 if (hour === 12) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6720 hour = 0; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6721 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6722 if (meridiem === '早上' || meridiem === '上午') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6723 return hour; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6724 } else if (meridiem === '中午') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6725 return hour >= 11 ? hour : hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6726 } else if (meridiem === '下午' || meridiem === '晚上') { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6727 return hour + 12; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6728 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6729 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6730 meridiem : function (hour, minute, isLower) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6731 var hm = hour * 100 + minute; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6732 if (hm < 900) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6733 return '早上'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6734 } else if (hm < 1130) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6735 return '上午'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6736 } else if (hm < 1230) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6737 return '中午'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6738 } else if (hm < 1800) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6739 return '下午'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6740 } else { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6741 return '晚上'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6742 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6743 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6744 calendar : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6745 sameDay : '[今天]LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6746 nextDay : '[明天]LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6747 nextWeek : '[下]ddddLT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6748 lastDay : '[昨天]LT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6749 lastWeek : '[上]ddddLT', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6750 sameElse : 'L' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6751 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6752 ordinalParse: /\d{1,2}(日|月|週)/, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6753 ordinal : function (number, period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6754 switch (period) { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6755 case 'd' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6756 case 'D' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6757 case 'DDD' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6758 return number + '日'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6759 case 'M' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6760 return number + '月'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6761 case 'w' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6762 case 'W' : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6763 return number + '週'; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6764 default : |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6765 return number; |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6766 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6767 }, |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6768 relativeTime : { |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6769 future : '%s內', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6770 past : '%s前', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6771 s : '幾秒', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6772 m : '一分鐘', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6773 mm : '%d分鐘', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6774 h : '一小時', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6775 hh : '%d小時', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6776 d : '一天', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6777 dd : '%d天', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6778 M : '一個月', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6779 MM : '%d個月', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6780 y : '一年', |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6781 yy : '%d年' |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6782 } |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6783 }); |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6784 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6785 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6786 |
22be4ea663a7
Trying to work out having json request from neo4j display properly in drop down selectize box
arussell
parents:
diff
changeset
|
6787 })); |