js_stack 1.10.0 → 1.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +6 -6
  4. data/js_stack.gemspec +0 -1
  5. data/lib/js_stack/version.rb +1 -1
  6. data/lib/js_stack.rb +0 -1
  7. data/vendor/assets/javascripts/js_stack/base/backbone/1.2.3.js +1894 -0
  8. data/vendor/assets/javascripts/js_stack/base/backbone.js +1 -1
  9. data/vendor/assets/javascripts/js_stack/base/marionette/{2.4.1.js → 2.4.3.js} +265 -138
  10. data/vendor/assets/javascripts/js_stack/base/marionette.js +1 -1
  11. data/vendor/assets/javascripts/js_stack/plugins/backbone/stickit/{0.9.0.js → 0.9.2.js} +1 -1
  12. data/vendor/assets/javascripts/js_stack/plugins/backbone.stickit.js +1 -1
  13. data/vendor/assets/javascripts/js_stack/plugins/moment/2.10.6.js +3195 -0
  14. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/af.js +72 -0
  15. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-ma.js +58 -0
  16. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-sa.js +102 -0
  17. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar-tn.js +56 -0
  18. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ar.js +135 -0
  19. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/az.js +103 -0
  20. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/be.js +146 -0
  21. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bg.js +89 -0
  22. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bn.js +112 -0
  23. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bo.js +109 -0
  24. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/br.js +106 -0
  25. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/bs.js +140 -0
  26. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ca.js +78 -0
  27. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cs.js +156 -0
  28. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cv.js +62 -0
  29. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/cy.js +78 -0
  30. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/da.js +59 -0
  31. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de-at.js +75 -0
  32. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/de.js +74 -0
  33. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/el.js +93 -0
  34. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-au.js +65 -0
  35. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-ca.js +62 -0
  36. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/en-gb.js +66 -0
  37. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eo.js +72 -0
  38. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/es.js +78 -0
  39. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/et.js +79 -0
  40. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/eu.js +63 -0
  41. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fa.js +104 -0
  42. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fi.js +106 -0
  43. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fo.js +59 -0
  44. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr-ca.js +57 -0
  45. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fr.js +61 -0
  46. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/fy.js +70 -0
  47. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/gl.js +74 -0
  48. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/he.js +81 -0
  49. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hi.js +122 -0
  50. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hr.js +139 -0
  51. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hu.js +108 -0
  52. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/hy-am.js +110 -0
  53. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/id.js +82 -0
  54. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/is.js +126 -0
  55. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/it.js +69 -0
  56. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ja.js +64 -0
  57. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/jv.js +82 -0
  58. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ka.js +102 -0
  59. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/km.js +57 -0
  60. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ko.js +67 -0
  61. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lb.js +133 -0
  62. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lt.js +124 -0
  63. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/lv.js +95 -0
  64. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/me.js +108 -0
  65. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mk.js +89 -0
  66. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ml.js +70 -0
  67. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/mr.js +120 -0
  68. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms-my.js +81 -0
  69. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ms.js +81 -0
  70. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/my.js +92 -0
  71. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nb.js +60 -0
  72. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ne.js +122 -0
  73. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nl.js +70 -0
  74. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/nn.js +59 -0
  75. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pl.js +104 -0
  76. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt-br.js +59 -0
  77. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/pt.js +63 -0
  78. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ro.js +73 -0
  79. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ru.js +163 -0
  80. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/si.js +64 -0
  81. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sk.js +157 -0
  82. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sl.js +159 -0
  83. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sq.js +68 -0
  84. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr-cyrl.js +107 -0
  85. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sr.js +107 -0
  86. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/sv.js +66 -0
  87. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/ta.js +94 -0
  88. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/th.js +64 -0
  89. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tl-ph.js +61 -0
  90. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tr.js +89 -0
  91. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzl.js +84 -0
  92. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm-latn.js +57 -0
  93. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/tzm.js +57 -0
  94. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uk.js +152 -0
  95. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/uz.js +57 -0
  96. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/vi.js +65 -0
  97. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-cn.js +126 -0
  98. data/vendor/assets/javascripts/js_stack/plugins/moment/locale/zh-tw.js +100 -0
  99. data/vendor/assets/javascripts/js_stack/plugins/moment.js +1 -1
  100. data/vendor/assets/javascripts/js_stack/plugins/underscore/string/3.2.2.js +1186 -0
  101. data/vendor/assets/javascripts/js_stack/plugins/underscore.string.js +1 -1
  102. metadata +93 -20
@@ -0,0 +1,60 @@
1
+ //! moment.js locale configuration
2
+ //! locale : norwegian bokmål (nb)
3
+ //! authors : Espen Hovlandsdal : https://github.com/rexxars
4
+ //! Sigurd Gartmann : https://github.com/sigurdga
5
+
6
+ (function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, function (moment) { 'use strict';
11
+
12
+
13
+ var nb = moment.defineLocale('nb', {
14
+ months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
15
+ monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16
+ weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
17
+ weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'),
18
+ weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'H.mm',
21
+ LTS : 'H.mm.ss',
22
+ L : 'DD.MM.YYYY',
23
+ LL : 'D. MMMM YYYY',
24
+ LLL : 'D. MMMM YYYY [kl.] H.mm',
25
+ LLLL : 'dddd D. MMMM YYYY [kl.] H.mm'
26
+ },
27
+ calendar : {
28
+ sameDay: '[i dag kl.] LT',
29
+ nextDay: '[i morgen kl.] LT',
30
+ nextWeek: 'dddd [kl.] LT',
31
+ lastDay: '[i går kl.] LT',
32
+ lastWeek: '[forrige] dddd [kl.] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : 'om %s',
37
+ past : 'for %s siden',
38
+ s : 'noen sekunder',
39
+ m : 'ett minutt',
40
+ mm : '%d minutter',
41
+ h : 'en time',
42
+ hh : '%d timer',
43
+ d : 'en dag',
44
+ dd : '%d dager',
45
+ M : 'en måned',
46
+ MM : '%d måneder',
47
+ y : 'ett år',
48
+ yy : '%d år'
49
+ },
50
+ ordinalParse: /\d{1,2}\./,
51
+ ordinal : '%d.',
52
+ week : {
53
+ dow : 1, // Monday is the first day of the week.
54
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
55
+ }
56
+ });
57
+
58
+ return nb;
59
+
60
+ }));
@@ -0,0 +1,122 @@
1
+ //! moment.js locale configuration
2
+ //! locale : nepali/nepalese
3
+ //! author : suvash : https://github.com/suvash
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var symbolMap = {
13
+ '1': '१',
14
+ '2': '२',
15
+ '3': '३',
16
+ '4': '४',
17
+ '5': '५',
18
+ '6': '६',
19
+ '7': '७',
20
+ '8': '८',
21
+ '9': '९',
22
+ '0': '०'
23
+ },
24
+ numberMap = {
25
+ '१': '1',
26
+ '२': '2',
27
+ '३': '3',
28
+ '४': '4',
29
+ '५': '5',
30
+ '६': '6',
31
+ '७': '7',
32
+ '८': '8',
33
+ '९': '9',
34
+ '०': '0'
35
+ };
36
+
37
+ var ne = moment.defineLocale('ne', {
38
+ months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split('_'),
39
+ monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split('_'),
40
+ weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split('_'),
41
+ weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'),
42
+ weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split('_'),
43
+ longDateFormat : {
44
+ LT : 'Aको h:mm बजे',
45
+ LTS : 'Aको h:mm:ss बजे',
46
+ L : 'DD/MM/YYYY',
47
+ LL : 'D MMMM YYYY',
48
+ LLL : 'D MMMM YYYY, Aको h:mm बजे',
49
+ LLLL : 'dddd, D MMMM YYYY, Aको h:mm बजे'
50
+ },
51
+ preparse: function (string) {
52
+ return string.replace(/[१२३४५६७८९०]/g, function (match) {
53
+ return numberMap[match];
54
+ });
55
+ },
56
+ postformat: function (string) {
57
+ return string.replace(/\d/g, function (match) {
58
+ return symbolMap[match];
59
+ });
60
+ },
61
+ meridiemParse: /राती|बिहान|दिउँसो|बेलुका|साँझ|राती/,
62
+ meridiemHour : function (hour, meridiem) {
63
+ if (hour === 12) {
64
+ hour = 0;
65
+ }
66
+ if (meridiem === 'राती') {
67
+ return hour < 3 ? hour : hour + 12;
68
+ } else if (meridiem === 'बिहान') {
69
+ return hour;
70
+ } else if (meridiem === 'दिउँसो') {
71
+ return hour >= 10 ? hour : hour + 12;
72
+ } else if (meridiem === 'बेलुका' || meridiem === 'साँझ') {
73
+ return hour + 12;
74
+ }
75
+ },
76
+ meridiem : function (hour, minute, isLower) {
77
+ if (hour < 3) {
78
+ return 'राती';
79
+ } else if (hour < 10) {
80
+ return 'बिहान';
81
+ } else if (hour < 15) {
82
+ return 'दिउँसो';
83
+ } else if (hour < 18) {
84
+ return 'बेलुका';
85
+ } else if (hour < 20) {
86
+ return 'साँझ';
87
+ } else {
88
+ return 'राती';
89
+ }
90
+ },
91
+ calendar : {
92
+ sameDay : '[आज] LT',
93
+ nextDay : '[भोली] LT',
94
+ nextWeek : '[आउँदो] dddd[,] LT',
95
+ lastDay : '[हिजो] LT',
96
+ lastWeek : '[गएको] dddd[,] LT',
97
+ sameElse : 'L'
98
+ },
99
+ relativeTime : {
100
+ future : '%sमा',
101
+ past : '%s अगाडी',
102
+ s : 'केही समय',
103
+ m : 'एक मिनेट',
104
+ mm : '%d मिनेट',
105
+ h : 'एक घण्टा',
106
+ hh : '%d घण्टा',
107
+ d : 'एक दिन',
108
+ dd : '%d दिन',
109
+ M : 'एक महिना',
110
+ MM : '%d महिना',
111
+ y : 'एक बर्ष',
112
+ yy : '%d बर्ष'
113
+ },
114
+ week : {
115
+ dow : 1, // Monday is the first day of the week.
116
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
117
+ }
118
+ });
119
+
120
+ return ne;
121
+
122
+ }));
@@ -0,0 +1,70 @@
1
+ //! moment.js locale configuration
2
+ //! locale : dutch (nl)
3
+ //! author : Joris Röling : https://github.com/jjupiter
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
13
+ monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
14
+
15
+ var nl = moment.defineLocale('nl', {
16
+ months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
17
+ monthsShort : function (m, format) {
18
+ if (/-MMM-/.test(format)) {
19
+ return monthsShortWithoutDots[m.month()];
20
+ } else {
21
+ return monthsShortWithDots[m.month()];
22
+ }
23
+ },
24
+ weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
25
+ weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
26
+ weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
27
+ longDateFormat : {
28
+ LT : 'HH:mm',
29
+ LTS : 'HH:mm:ss',
30
+ L : 'DD-MM-YYYY',
31
+ LL : 'D MMMM YYYY',
32
+ LLL : 'D MMMM YYYY HH:mm',
33
+ LLLL : 'dddd D MMMM YYYY HH:mm'
34
+ },
35
+ calendar : {
36
+ sameDay: '[vandaag om] LT',
37
+ nextDay: '[morgen om] LT',
38
+ nextWeek: 'dddd [om] LT',
39
+ lastDay: '[gisteren om] LT',
40
+ lastWeek: '[afgelopen] dddd [om] LT',
41
+ sameElse: 'L'
42
+ },
43
+ relativeTime : {
44
+ future : 'over %s',
45
+ past : '%s geleden',
46
+ s : 'een paar seconden',
47
+ m : 'één minuut',
48
+ mm : '%d minuten',
49
+ h : 'één uur',
50
+ hh : '%d uur',
51
+ d : 'één dag',
52
+ dd : '%d dagen',
53
+ M : 'één maand',
54
+ MM : '%d maanden',
55
+ y : 'één jaar',
56
+ yy : '%d jaar'
57
+ },
58
+ ordinalParse: /\d{1,2}(ste|de)/,
59
+ ordinal : function (number) {
60
+ return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de');
61
+ },
62
+ week : {
63
+ dow : 1, // Monday is the first day of the week.
64
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
65
+ }
66
+ });
67
+
68
+ return nl;
69
+
70
+ }));
@@ -0,0 +1,59 @@
1
+ //! moment.js locale configuration
2
+ //! locale : norwegian nynorsk (nn)
3
+ //! author : https://github.com/mechuwind
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var nn = moment.defineLocale('nn', {
13
+ months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
14
+ monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
15
+ weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
16
+ weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
17
+ weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'HH:mm',
20
+ LTS : 'HH:mm:ss',
21
+ L : 'DD.MM.YYYY',
22
+ LL : 'D MMMM YYYY',
23
+ LLL : 'D MMMM YYYY HH:mm',
24
+ LLLL : 'dddd D MMMM YYYY HH:mm'
25
+ },
26
+ calendar : {
27
+ sameDay: '[I dag klokka] LT',
28
+ nextDay: '[I morgon klokka] LT',
29
+ nextWeek: 'dddd [klokka] LT',
30
+ lastDay: '[I går klokka] LT',
31
+ lastWeek: '[Føregåande] dddd [klokka] LT',
32
+ sameElse: 'L'
33
+ },
34
+ relativeTime : {
35
+ future : 'om %s',
36
+ past : 'for %s sidan',
37
+ s : 'nokre sekund',
38
+ m : 'eit minutt',
39
+ mm : '%d minutt',
40
+ h : 'ein time',
41
+ hh : '%d timar',
42
+ d : 'ein dag',
43
+ dd : '%d dagar',
44
+ M : 'ein månad',
45
+ MM : '%d månader',
46
+ y : 'eit år',
47
+ yy : '%d år'
48
+ },
49
+ ordinalParse: /\d{1,2}\./,
50
+ ordinal : '%d.',
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+
57
+ return nn;
58
+
59
+ }));
@@ -0,0 +1,104 @@
1
+ //! moment.js locale configuration
2
+ //! locale : polish (pl)
3
+ //! author : Rafal Hirsz : https://github.com/evoL
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
13
+ monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
14
+ function plural(n) {
15
+ return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
16
+ }
17
+ function translate(number, withoutSuffix, key) {
18
+ var result = number + ' ';
19
+ switch (key) {
20
+ case 'm':
21
+ return withoutSuffix ? 'minuta' : 'minutę';
22
+ case 'mm':
23
+ return result + (plural(number) ? 'minuty' : 'minut');
24
+ case 'h':
25
+ return withoutSuffix ? 'godzina' : 'godzinę';
26
+ case 'hh':
27
+ return result + (plural(number) ? 'godziny' : 'godzin');
28
+ case 'MM':
29
+ return result + (plural(number) ? 'miesiące' : 'miesięcy');
30
+ case 'yy':
31
+ return result + (plural(number) ? 'lata' : 'lat');
32
+ }
33
+ }
34
+
35
+ var pl = moment.defineLocale('pl', {
36
+ months : function (momentToFormat, format) {
37
+ if (format === '') {
38
+ // Hack: if format empty we know this is used to generate
39
+ // RegExp by moment. Give then back both valid forms of months
40
+ // in RegExp ready format.
41
+ return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
42
+ } else if (/D MMMM/.test(format)) {
43
+ return monthsSubjective[momentToFormat.month()];
44
+ } else {
45
+ return monthsNominative[momentToFormat.month()];
46
+ }
47
+ },
48
+ monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
49
+ weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
50
+ weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
51
+ weekdaysMin : 'N_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
52
+ longDateFormat : {
53
+ LT : 'HH:mm',
54
+ LTS : 'HH:mm:ss',
55
+ L : 'DD.MM.YYYY',
56
+ LL : 'D MMMM YYYY',
57
+ LLL : 'D MMMM YYYY HH:mm',
58
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
59
+ },
60
+ calendar : {
61
+ sameDay: '[Dziś o] LT',
62
+ nextDay: '[Jutro o] LT',
63
+ nextWeek: '[W] dddd [o] LT',
64
+ lastDay: '[Wczoraj o] LT',
65
+ lastWeek: function () {
66
+ switch (this.day()) {
67
+ case 0:
68
+ return '[W zeszłą niedzielę o] LT';
69
+ case 3:
70
+ return '[W zeszłą środę o] LT';
71
+ case 6:
72
+ return '[W zeszłą sobotę o] LT';
73
+ default:
74
+ return '[W zeszły] dddd [o] LT';
75
+ }
76
+ },
77
+ sameElse: 'L'
78
+ },
79
+ relativeTime : {
80
+ future : 'za %s',
81
+ past : '%s temu',
82
+ s : 'kilka sekund',
83
+ m : translate,
84
+ mm : translate,
85
+ h : translate,
86
+ hh : translate,
87
+ d : '1 dzień',
88
+ dd : '%d dni',
89
+ M : 'miesiąc',
90
+ MM : translate,
91
+ y : 'rok',
92
+ yy : translate
93
+ },
94
+ ordinalParse: /\d{1,2}\./,
95
+ ordinal : '%d.',
96
+ week : {
97
+ dow : 1, // Monday is the first day of the week.
98
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
99
+ }
100
+ });
101
+
102
+ return pl;
103
+
104
+ }));
@@ -0,0 +1,59 @@
1
+ //! moment.js locale configuration
2
+ //! locale : brazilian portuguese (pt-br)
3
+ //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var pt_br = moment.defineLocale('pt-br', {
13
+ months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
14
+ monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
15
+ weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
16
+ weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17
+ weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'HH:mm',
20
+ LTS : 'HH:mm:ss',
21
+ L : 'DD/MM/YYYY',
22
+ LL : 'D [de] MMMM [de] YYYY',
23
+ LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
24
+ LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
25
+ },
26
+ calendar : {
27
+ sameDay: '[Hoje às] LT',
28
+ nextDay: '[Amanhã às] LT',
29
+ nextWeek: 'dddd [às] LT',
30
+ lastDay: '[Ontem às] LT',
31
+ lastWeek: function () {
32
+ return (this.day() === 0 || this.day() === 6) ?
33
+ '[Último] dddd [às] LT' : // Saturday + Sunday
34
+ '[Última] dddd [às] LT'; // Monday - Friday
35
+ },
36
+ sameElse: 'L'
37
+ },
38
+ relativeTime : {
39
+ future : 'em %s',
40
+ past : '%s atrás',
41
+ s : 'poucos segundos',
42
+ m : 'um minuto',
43
+ mm : '%d minutos',
44
+ h : 'uma hora',
45
+ hh : '%d horas',
46
+ d : 'um dia',
47
+ dd : '%d dias',
48
+ M : 'um mês',
49
+ MM : '%d meses',
50
+ y : 'um ano',
51
+ yy : '%d anos'
52
+ },
53
+ ordinalParse: /\d{1,2}º/,
54
+ ordinal : '%dº'
55
+ });
56
+
57
+ return pt_br;
58
+
59
+ }));
@@ -0,0 +1,63 @@
1
+ //! moment.js locale configuration
2
+ //! locale : portuguese (pt)
3
+ //! author : Jefferson : https://github.com/jalex79
4
+
5
+ (function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
7
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ factory(global.moment)
9
+ }(this, function (moment) { 'use strict';
10
+
11
+
12
+ var pt = moment.defineLocale('pt', {
13
+ months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
14
+ monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
15
+ weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
16
+ weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
17
+ weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'HH:mm',
20
+ LTS : 'HH:mm:ss',
21
+ L : 'DD/MM/YYYY',
22
+ LL : 'D [de] MMMM [de] YYYY',
23
+ LLL : 'D [de] MMMM [de] YYYY HH:mm',
24
+ LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
25
+ },
26
+ calendar : {
27
+ sameDay: '[Hoje às] LT',
28
+ nextDay: '[Amanhã às] LT',
29
+ nextWeek: 'dddd [às] LT',
30
+ lastDay: '[Ontem às] LT',
31
+ lastWeek: function () {
32
+ return (this.day() === 0 || this.day() === 6) ?
33
+ '[Último] dddd [às] LT' : // Saturday + Sunday
34
+ '[Última] dddd [às] LT'; // Monday - Friday
35
+ },
36
+ sameElse: 'L'
37
+ },
38
+ relativeTime : {
39
+ future : 'em %s',
40
+ past : 'há %s',
41
+ s : 'segundos',
42
+ m : 'um minuto',
43
+ mm : '%d minutos',
44
+ h : 'uma hora',
45
+ hh : '%d horas',
46
+ d : 'um dia',
47
+ dd : '%d dias',
48
+ M : 'um mês',
49
+ MM : '%d meses',
50
+ y : 'um ano',
51
+ yy : '%d anos'
52
+ },
53
+ ordinalParse: /\d{1,2}º/,
54
+ ordinal : '%dº',
55
+ week : {
56
+ dow : 1, // Monday is the first day of the week.
57
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
58
+ }
59
+ });
60
+
61
+ return pt;
62
+
63
+ }));
@@ -0,0 +1,73 @@
1
+ //! moment.js locale configuration
2
+ //! locale : romanian (ro)
3
+ //! author : Vlad Gurdiga : https://github.com/gurdiga
4
+ //! author : Valentin Agachi : https://github.com/avaly
5
+
6
+ (function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, function (moment) { 'use strict';
11
+
12
+
13
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
14
+ var format = {
15
+ 'mm': 'minute',
16
+ 'hh': 'ore',
17
+ 'dd': 'zile',
18
+ 'MM': 'luni',
19
+ 'yy': 'ani'
20
+ },
21
+ separator = ' ';
22
+ if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
23
+ separator = ' de ';
24
+ }
25
+ return number + separator + format[key];
26
+ }
27
+
28
+ var ro = moment.defineLocale('ro', {
29
+ months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
30
+ monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
31
+ weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
32
+ weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
33
+ weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
34
+ longDateFormat : {
35
+ LT : 'H:mm',
36
+ LTS : 'H:mm:ss',
37
+ L : 'DD.MM.YYYY',
38
+ LL : 'D MMMM YYYY',
39
+ LLL : 'D MMMM YYYY H:mm',
40
+ LLLL : 'dddd, D MMMM YYYY H:mm'
41
+ },
42
+ calendar : {
43
+ sameDay: '[azi la] LT',
44
+ nextDay: '[mâine la] LT',
45
+ nextWeek: 'dddd [la] LT',
46
+ lastDay: '[ieri la] LT',
47
+ lastWeek: '[fosta] dddd [la] LT',
48
+ sameElse: 'L'
49
+ },
50
+ relativeTime : {
51
+ future : 'peste %s',
52
+ past : '%s în urmă',
53
+ s : 'câteva secunde',
54
+ m : 'un minut',
55
+ mm : relativeTimeWithPlural,
56
+ h : 'o oră',
57
+ hh : relativeTimeWithPlural,
58
+ d : 'o zi',
59
+ dd : relativeTimeWithPlural,
60
+ M : 'o lună',
61
+ MM : relativeTimeWithPlural,
62
+ y : 'un an',
63
+ yy : relativeTimeWithPlural
64
+ },
65
+ week : {
66
+ dow : 1, // Monday is the first day of the week.
67
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
68
+ }
69
+ });
70
+
71
+ return ro;
72
+
73
+ }));