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,108 @@
1
+ //! moment.js locale configuration
2
+ //! locale : hungarian (hu)
3
+ //! author : Adam Brunner : https://github.com/adambrunner
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 weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
13
+ function translate(number, withoutSuffix, key, isFuture) {
14
+ var num = number,
15
+ suffix;
16
+ switch (key) {
17
+ case 's':
18
+ return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
19
+ case 'm':
20
+ return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
21
+ case 'mm':
22
+ return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
23
+ case 'h':
24
+ return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
25
+ case 'hh':
26
+ return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
27
+ case 'd':
28
+ return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
29
+ case 'dd':
30
+ return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
31
+ case 'M':
32
+ return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
33
+ case 'MM':
34
+ return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
35
+ case 'y':
36
+ return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
37
+ case 'yy':
38
+ return num + (isFuture || withoutSuffix ? ' év' : ' éve');
39
+ }
40
+ return '';
41
+ }
42
+ function week(isFuture) {
43
+ return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
44
+ }
45
+
46
+ var hu = moment.defineLocale('hu', {
47
+ months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'),
48
+ monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'),
49
+ weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'),
50
+ weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'),
51
+ weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'),
52
+ longDateFormat : {
53
+ LT : 'H:mm',
54
+ LTS : 'H:mm:ss',
55
+ L : 'YYYY.MM.DD.',
56
+ LL : 'YYYY. MMMM D.',
57
+ LLL : 'YYYY. MMMM D. H:mm',
58
+ LLLL : 'YYYY. MMMM D., dddd H:mm'
59
+ },
60
+ meridiemParse: /de|du/i,
61
+ isPM: function (input) {
62
+ return input.charAt(1).toLowerCase() === 'u';
63
+ },
64
+ meridiem : function (hours, minutes, isLower) {
65
+ if (hours < 12) {
66
+ return isLower === true ? 'de' : 'DE';
67
+ } else {
68
+ return isLower === true ? 'du' : 'DU';
69
+ }
70
+ },
71
+ calendar : {
72
+ sameDay : '[ma] LT[-kor]',
73
+ nextDay : '[holnap] LT[-kor]',
74
+ nextWeek : function () {
75
+ return week.call(this, true);
76
+ },
77
+ lastDay : '[tegnap] LT[-kor]',
78
+ lastWeek : function () {
79
+ return week.call(this, false);
80
+ },
81
+ sameElse : 'L'
82
+ },
83
+ relativeTime : {
84
+ future : '%s múlva',
85
+ past : '%s',
86
+ s : translate,
87
+ m : translate,
88
+ mm : translate,
89
+ h : translate,
90
+ hh : translate,
91
+ d : translate,
92
+ dd : translate,
93
+ M : translate,
94
+ MM : translate,
95
+ y : translate,
96
+ yy : translate
97
+ },
98
+ ordinalParse: /\d{1,2}\./,
99
+ ordinal : '%d.',
100
+ week : {
101
+ dow : 1, // Monday is the first day of the week.
102
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
103
+ }
104
+ });
105
+
106
+ return hu;
107
+
108
+ }));
@@ -0,0 +1,110 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Armenian (hy-am)
3
+ //! author : Armendarabyan : https://github.com/armendarabyan
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
+ function monthsCaseReplace(m, format) {
13
+ var months = {
14
+ 'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
15
+ 'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
16
+ },
17
+ nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
18
+ 'accusative' :
19
+ 'nominative';
20
+ return months[nounCase][m.month()];
21
+ }
22
+ function monthsShortCaseReplace(m, format) {
23
+ var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_');
24
+ return monthsShort[m.month()];
25
+ }
26
+ function weekdaysCaseReplace(m, format) {
27
+ var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_');
28
+ return weekdays[m.day()];
29
+ }
30
+
31
+ var hy_am = moment.defineLocale('hy-am', {
32
+ months : monthsCaseReplace,
33
+ monthsShort : monthsShortCaseReplace,
34
+ weekdays : weekdaysCaseReplace,
35
+ weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
36
+ weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
37
+ longDateFormat : {
38
+ LT : 'HH:mm',
39
+ LTS : 'HH:mm:ss',
40
+ L : 'DD.MM.YYYY',
41
+ LL : 'D MMMM YYYY թ.',
42
+ LLL : 'D MMMM YYYY թ., HH:mm',
43
+ LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
44
+ },
45
+ calendar : {
46
+ sameDay: '[այսօր] LT',
47
+ nextDay: '[վաղը] LT',
48
+ lastDay: '[երեկ] LT',
49
+ nextWeek: function () {
50
+ return 'dddd [օրը ժամը] LT';
51
+ },
52
+ lastWeek: function () {
53
+ return '[անցած] dddd [օրը ժամը] LT';
54
+ },
55
+ sameElse: 'L'
56
+ },
57
+ relativeTime : {
58
+ future : '%s հետո',
59
+ past : '%s առաջ',
60
+ s : 'մի քանի վայրկյան',
61
+ m : 'րոպե',
62
+ mm : '%d րոպե',
63
+ h : 'ժամ',
64
+ hh : '%d ժամ',
65
+ d : 'օր',
66
+ dd : '%d օր',
67
+ M : 'ամիս',
68
+ MM : '%d ամիս',
69
+ y : 'տարի',
70
+ yy : '%d տարի'
71
+ },
72
+ meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
73
+ isPM: function (input) {
74
+ return /^(ցերեկվա|երեկոյան)$/.test(input);
75
+ },
76
+ meridiem : function (hour) {
77
+ if (hour < 4) {
78
+ return 'գիշերվա';
79
+ } else if (hour < 12) {
80
+ return 'առավոտվա';
81
+ } else if (hour < 17) {
82
+ return 'ցերեկվա';
83
+ } else {
84
+ return 'երեկոյան';
85
+ }
86
+ },
87
+ ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
88
+ ordinal: function (number, period) {
89
+ switch (period) {
90
+ case 'DDD':
91
+ case 'w':
92
+ case 'W':
93
+ case 'DDDo':
94
+ if (number === 1) {
95
+ return number + '-ին';
96
+ }
97
+ return number + '-րդ';
98
+ default:
99
+ return number;
100
+ }
101
+ },
102
+ week : {
103
+ dow : 1, // Monday is the first day of the week.
104
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
105
+ }
106
+ });
107
+
108
+ return hy_am;
109
+
110
+ }));
@@ -0,0 +1,82 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Bahasa Indonesia (id)
3
+ //! author : Mohammad Satrio Utomo : https://github.com/tyok
4
+ //! reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan
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 id = moment.defineLocale('id', {
14
+ months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
15
+ monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
16
+ weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
17
+ weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
18
+ weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'HH.mm',
21
+ LTS : 'HH.mm.ss',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY [pukul] HH.mm',
25
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
26
+ },
27
+ meridiemParse: /pagi|siang|sore|malam/,
28
+ meridiemHour : function (hour, meridiem) {
29
+ if (hour === 12) {
30
+ hour = 0;
31
+ }
32
+ if (meridiem === 'pagi') {
33
+ return hour;
34
+ } else if (meridiem === 'siang') {
35
+ return hour >= 11 ? hour : hour + 12;
36
+ } else if (meridiem === 'sore' || meridiem === 'malam') {
37
+ return hour + 12;
38
+ }
39
+ },
40
+ meridiem : function (hours, minutes, isLower) {
41
+ if (hours < 11) {
42
+ return 'pagi';
43
+ } else if (hours < 15) {
44
+ return 'siang';
45
+ } else if (hours < 19) {
46
+ return 'sore';
47
+ } else {
48
+ return 'malam';
49
+ }
50
+ },
51
+ calendar : {
52
+ sameDay : '[Hari ini pukul] LT',
53
+ nextDay : '[Besok pukul] LT',
54
+ nextWeek : 'dddd [pukul] LT',
55
+ lastDay : '[Kemarin pukul] LT',
56
+ lastWeek : 'dddd [lalu pukul] LT',
57
+ sameElse : 'L'
58
+ },
59
+ relativeTime : {
60
+ future : 'dalam %s',
61
+ past : '%s yang lalu',
62
+ s : 'beberapa detik',
63
+ m : 'semenit',
64
+ mm : '%d menit',
65
+ h : 'sejam',
66
+ hh : '%d jam',
67
+ d : 'sehari',
68
+ dd : '%d hari',
69
+ M : 'sebulan',
70
+ MM : '%d bulan',
71
+ y : 'setahun',
72
+ yy : '%d tahun'
73
+ },
74
+ week : {
75
+ dow : 1, // Monday is the first day of the week.
76
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
77
+ }
78
+ });
79
+
80
+ return id;
81
+
82
+ }));
@@ -0,0 +1,126 @@
1
+ //! moment.js locale configuration
2
+ //! locale : icelandic (is)
3
+ //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
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
+ function plural(n) {
13
+ if (n % 100 === 11) {
14
+ return true;
15
+ } else if (n % 10 === 1) {
16
+ return false;
17
+ }
18
+ return true;
19
+ }
20
+ function translate(number, withoutSuffix, key, isFuture) {
21
+ var result = number + ' ';
22
+ switch (key) {
23
+ case 's':
24
+ return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
25
+ case 'm':
26
+ return withoutSuffix ? 'mínúta' : 'mínútu';
27
+ case 'mm':
28
+ if (plural(number)) {
29
+ return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
30
+ } else if (withoutSuffix) {
31
+ return result + 'mínúta';
32
+ }
33
+ return result + 'mínútu';
34
+ case 'hh':
35
+ if (plural(number)) {
36
+ return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
37
+ }
38
+ return result + 'klukkustund';
39
+ case 'd':
40
+ if (withoutSuffix) {
41
+ return 'dagur';
42
+ }
43
+ return isFuture ? 'dag' : 'degi';
44
+ case 'dd':
45
+ if (plural(number)) {
46
+ if (withoutSuffix) {
47
+ return result + 'dagar';
48
+ }
49
+ return result + (isFuture ? 'daga' : 'dögum');
50
+ } else if (withoutSuffix) {
51
+ return result + 'dagur';
52
+ }
53
+ return result + (isFuture ? 'dag' : 'degi');
54
+ case 'M':
55
+ if (withoutSuffix) {
56
+ return 'mánuður';
57
+ }
58
+ return isFuture ? 'mánuð' : 'mánuði';
59
+ case 'MM':
60
+ if (plural(number)) {
61
+ if (withoutSuffix) {
62
+ return result + 'mánuðir';
63
+ }
64
+ return result + (isFuture ? 'mánuði' : 'mánuðum');
65
+ } else if (withoutSuffix) {
66
+ return result + 'mánuður';
67
+ }
68
+ return result + (isFuture ? 'mánuð' : 'mánuði');
69
+ case 'y':
70
+ return withoutSuffix || isFuture ? 'ár' : 'ári';
71
+ case 'yy':
72
+ if (plural(number)) {
73
+ return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
74
+ }
75
+ return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
76
+ }
77
+ }
78
+
79
+ var is = moment.defineLocale('is', {
80
+ months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
81
+ monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
82
+ weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
83
+ weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
84
+ weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
85
+ longDateFormat : {
86
+ LT : 'H:mm',
87
+ LTS : 'H:mm:ss',
88
+ L : 'DD/MM/YYYY',
89
+ LL : 'D. MMMM YYYY',
90
+ LLL : 'D. MMMM YYYY [kl.] H:mm',
91
+ LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
92
+ },
93
+ calendar : {
94
+ sameDay : '[í dag kl.] LT',
95
+ nextDay : '[á morgun kl.] LT',
96
+ nextWeek : 'dddd [kl.] LT',
97
+ lastDay : '[í gær kl.] LT',
98
+ lastWeek : '[síðasta] dddd [kl.] LT',
99
+ sameElse : 'L'
100
+ },
101
+ relativeTime : {
102
+ future : 'eftir %s',
103
+ past : 'fyrir %s síðan',
104
+ s : translate,
105
+ m : translate,
106
+ mm : translate,
107
+ h : 'klukkustund',
108
+ hh : translate,
109
+ d : translate,
110
+ dd : translate,
111
+ M : translate,
112
+ MM : translate,
113
+ y : translate,
114
+ yy : translate
115
+ },
116
+ ordinalParse: /\d{1,2}\./,
117
+ ordinal : '%d.',
118
+ week : {
119
+ dow : 1, // Monday is the first day of the week.
120
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
121
+ }
122
+ });
123
+
124
+ return is;
125
+
126
+ }));
@@ -0,0 +1,69 @@
1
+ //! moment.js locale configuration
2
+ //! locale : italian (it)
3
+ //! author : Lorenzo : https://github.com/aliem
4
+ //! author: Mattia Larentis: https://github.com/nostalgiaz
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 it = moment.defineLocale('it', {
14
+ months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
15
+ monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
16
+ weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
17
+ weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
18
+ weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'HH:mm',
21
+ LTS : 'HH:mm:ss',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY HH:mm',
25
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
26
+ },
27
+ calendar : {
28
+ sameDay: '[Oggi alle] LT',
29
+ nextDay: '[Domani alle] LT',
30
+ nextWeek: 'dddd [alle] LT',
31
+ lastDay: '[Ieri alle] LT',
32
+ lastWeek: function () {
33
+ switch (this.day()) {
34
+ case 0:
35
+ return '[la scorsa] dddd [alle] LT';
36
+ default:
37
+ return '[lo scorso] dddd [alle] LT';
38
+ }
39
+ },
40
+ sameElse: 'L'
41
+ },
42
+ relativeTime : {
43
+ future : function (s) {
44
+ return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
45
+ },
46
+ past : '%s fa',
47
+ s : 'alcuni secondi',
48
+ m : 'un minuto',
49
+ mm : '%d minuti',
50
+ h : 'un\'ora',
51
+ hh : '%d ore',
52
+ d : 'un giorno',
53
+ dd : '%d giorni',
54
+ M : 'un mese',
55
+ MM : '%d mesi',
56
+ y : 'un anno',
57
+ yy : '%d anni'
58
+ },
59
+ ordinalParse : /\d{1,2}º/,
60
+ ordinal: '%dº',
61
+ week : {
62
+ dow : 1, // Monday is the first day of the week.
63
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
64
+ }
65
+ });
66
+
67
+ return it;
68
+
69
+ }));
@@ -0,0 +1,64 @@
1
+ //! moment.js locale configuration
2
+ //! locale : japanese (ja)
3
+ //! author : LI Long : https://github.com/baryon
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 ja = moment.defineLocale('ja', {
13
+ months : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
14
+ monthsShort : '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split('_'),
15
+ weekdays : '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'),
16
+ weekdaysShort : '日_月_火_水_木_金_土'.split('_'),
17
+ weekdaysMin : '日_月_火_水_木_金_土'.split('_'),
18
+ longDateFormat : {
19
+ LT : 'Ah時m分',
20
+ LTS : 'Ah時m分s秒',
21
+ L : 'YYYY/MM/DD',
22
+ LL : 'YYYY年M月D日',
23
+ LLL : 'YYYY年M月D日Ah時m分',
24
+ LLLL : 'YYYY年M月D日Ah時m分 dddd'
25
+ },
26
+ meridiemParse: /午前|午後/i,
27
+ isPM : function (input) {
28
+ return input === '午後';
29
+ },
30
+ meridiem : function (hour, minute, isLower) {
31
+ if (hour < 12) {
32
+ return '午前';
33
+ } else {
34
+ return '午後';
35
+ }
36
+ },
37
+ calendar : {
38
+ sameDay : '[今日] LT',
39
+ nextDay : '[明日] LT',
40
+ nextWeek : '[来週]dddd LT',
41
+ lastDay : '[昨日] LT',
42
+ lastWeek : '[前週]dddd LT',
43
+ sameElse : 'L'
44
+ },
45
+ relativeTime : {
46
+ future : '%s後',
47
+ past : '%s前',
48
+ s : '数秒',
49
+ m : '1分',
50
+ mm : '%d分',
51
+ h : '1時間',
52
+ hh : '%d時間',
53
+ d : '1日',
54
+ dd : '%d日',
55
+ M : '1ヶ月',
56
+ MM : '%dヶ月',
57
+ y : '1年',
58
+ yy : '%d年'
59
+ }
60
+ });
61
+
62
+ return ja;
63
+
64
+ }));
@@ -0,0 +1,82 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Boso Jowo (jv)
3
+ //! author : Rony Lantip : https://github.com/lantip
4
+ //! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
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 jv = moment.defineLocale('jv', {
14
+ months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
15
+ monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
16
+ weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
17
+ weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
18
+ weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'HH.mm',
21
+ LTS : 'HH.mm.ss',
22
+ L : 'DD/MM/YYYY',
23
+ LL : 'D MMMM YYYY',
24
+ LLL : 'D MMMM YYYY [pukul] HH.mm',
25
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
26
+ },
27
+ meridiemParse: /enjing|siyang|sonten|ndalu/,
28
+ meridiemHour : function (hour, meridiem) {
29
+ if (hour === 12) {
30
+ hour = 0;
31
+ }
32
+ if (meridiem === 'enjing') {
33
+ return hour;
34
+ } else if (meridiem === 'siyang') {
35
+ return hour >= 11 ? hour : hour + 12;
36
+ } else if (meridiem === 'sonten' || meridiem === 'ndalu') {
37
+ return hour + 12;
38
+ }
39
+ },
40
+ meridiem : function (hours, minutes, isLower) {
41
+ if (hours < 11) {
42
+ return 'enjing';
43
+ } else if (hours < 15) {
44
+ return 'siyang';
45
+ } else if (hours < 19) {
46
+ return 'sonten';
47
+ } else {
48
+ return 'ndalu';
49
+ }
50
+ },
51
+ calendar : {
52
+ sameDay : '[Dinten puniko pukul] LT',
53
+ nextDay : '[Mbenjang pukul] LT',
54
+ nextWeek : 'dddd [pukul] LT',
55
+ lastDay : '[Kala wingi pukul] LT',
56
+ lastWeek : 'dddd [kepengker pukul] LT',
57
+ sameElse : 'L'
58
+ },
59
+ relativeTime : {
60
+ future : 'wonten ing %s',
61
+ past : '%s ingkang kepengker',
62
+ s : 'sawetawis detik',
63
+ m : 'setunggal menit',
64
+ mm : '%d menit',
65
+ h : 'setunggal jam',
66
+ hh : '%d jam',
67
+ d : 'sedinten',
68
+ dd : '%d dinten',
69
+ M : 'sewulan',
70
+ MM : '%d wulan',
71
+ y : 'setaun',
72
+ yy : '%d taun'
73
+ },
74
+ week : {
75
+ dow : 1, // Monday is the first day of the week.
76
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
77
+ }
78
+ });
79
+
80
+ return jv;
81
+
82
+ }));