momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  5. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  6. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  7. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  10. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  11. data/test/integration/navigation_test.rb +1 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -1,102 +1,78 @@
1
- // moment.js locale configuration
2
- // locale : Armenian (hy-am)
3
- // author : Armendarabyan : https://github.com/armendarabyan
1
+ //! moment.js locale configuration
2
+ //! locale : Armenian [hy-am]
3
+ //! author : Armendarabyan : https://github.com/armendarabyan
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- function monthsCaseReplace(m, format) {
15
- var months = {
16
- 'nominative': 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_'),
17
- 'accusative': 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_')
18
- },
19
-
20
- nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
21
- 'accusative' :
22
- 'nominative';
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? factory(require('../moment')) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
+ factory(global.moment)
10
+ }(this, (function (moment) { 'use strict';
23
11
 
24
- return months[nounCase][m.month()];
25
- }
26
-
27
- function monthsShortCaseReplace(m, format) {
28
- var monthsShort = 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_');
29
12
 
30
- return monthsShort[m.month()];
31
- }
32
-
33
- function weekdaysCaseReplace(m, format) {
34
- var weekdays = 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_');
35
-
36
- return weekdays[m.day()];
37
- }
38
-
39
- return moment.defineLocale('hy-am', {
40
- months : monthsCaseReplace,
41
- monthsShort : monthsShortCaseReplace,
42
- weekdays : weekdaysCaseReplace,
43
- weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
44
- weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
45
- longDateFormat : {
46
- LT : 'HH:mm',
47
- LTS : 'LT:ss',
48
- L : 'DD.MM.YYYY',
49
- LL : 'D MMMM YYYY թ.',
50
- LLL : 'D MMMM YYYY թ., LT',
51
- LLLL : 'dddd, D MMMM YYYY թ., LT'
52
- },
53
- calendar : {
54
- sameDay: '[այսօր] LT',
55
- nextDay: '[վաղը] LT',
56
- lastDay: '[երեկ] LT',
57
- nextWeek: function () {
58
- return 'dddd [օրը ժամը] LT';
59
- },
60
- lastWeek: function () {
61
- return '[անցած] dddd [օրը ժամը] LT';
62
- },
63
- sameElse: 'L'
13
+ var hyAm = moment.defineLocale('hy-am', {
14
+ months : {
15
+ format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
16
+ standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
17
+ },
18
+ monthsShort : 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split('_'),
19
+ weekdays : 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split('_'),
20
+ weekdaysShort : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
21
+ weekdaysMin : 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'),
22
+ longDateFormat : {
23
+ LT : 'HH:mm',
24
+ LTS : 'HH:mm:ss',
25
+ L : 'DD.MM.YYYY',
26
+ LL : 'D MMMM YYYY թ.',
27
+ LLL : 'D MMMM YYYY թ., HH:mm',
28
+ LLLL : 'dddd, D MMMM YYYY թ., HH:mm'
29
+ },
30
+ calendar : {
31
+ sameDay: '[այսօր] LT',
32
+ nextDay: '[վաղը] LT',
33
+ lastDay: '[երեկ] LT',
34
+ nextWeek: function () {
35
+ return 'dddd [օրը ժամը] LT';
64
36
  },
65
- relativeTime : {
66
- future : '%s հետո',
67
- past : '%s առաջ',
68
- s : 'մի քանի վայրկյան',
69
- m : 'րոպե',
70
- mm : '%d րոպե',
71
- h : 'ժամ',
72
- hh : '%d ժամ',
73
- d : 'օր',
74
- dd : '%d օր',
75
- M : 'ամիս',
76
- MM : '%d ամիս',
77
- y : 'տարի',
78
- yy : '%d տարի'
37
+ lastWeek: function () {
38
+ return '[անցած] dddd [օրը ժամը] LT';
79
39
  },
80
-
81
- meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
82
- isPM: function (input) {
83
- return /^(ցերեկվա|երեկոյան)$/.test(input);
84
- },
85
- meridiem : function (hour) {
86
- if (hour < 4) {
87
- return 'գիշերվա';
88
- } else if (hour < 12) {
89
- return 'առավոտվա';
90
- } else if (hour < 17) {
91
- return 'ցերեկվա';
92
- } else {
93
- return 'երեկոյան';
94
- }
95
- },
96
-
97
- ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
98
- ordinal: function (number, period) {
99
- switch (period) {
40
+ sameElse: 'L'
41
+ },
42
+ relativeTime : {
43
+ future : '%s հետո',
44
+ past : '%s առաջ',
45
+ s : 'մի քանի վայրկյան',
46
+ ss : '%d վայրկյան',
47
+ m : 'րոպե',
48
+ mm : '%d րոպե',
49
+ h : 'ժամ',
50
+ hh : '%d ժամ',
51
+ d : 'օր',
52
+ dd : '%d օր',
53
+ M : 'ամիս',
54
+ MM : '%d ամիս',
55
+ y : 'տարի',
56
+ yy : '%d տարի'
57
+ },
58
+ meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
59
+ isPM: function (input) {
60
+ return /^(ցերեկվա|երեկոյան)$/.test(input);
61
+ },
62
+ meridiem : function (hour) {
63
+ if (hour < 4) {
64
+ return 'գիշերվա';
65
+ } else if (hour < 12) {
66
+ return 'առավոտվա';
67
+ } else if (hour < 17) {
68
+ return 'ցերեկվա';
69
+ } else {
70
+ return 'երեկոյան';
71
+ }
72
+ },
73
+ dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
74
+ ordinal: function (number, period) {
75
+ switch (period) {
100
76
  case 'DDD':
101
77
  case 'w':
102
78
  case 'W':
@@ -107,12 +83,14 @@
107
83
  return number + '-րդ';
108
84
  default:
109
85
  return number;
110
- }
111
- },
112
-
113
- week : {
114
- dow : 1, // Monday is the first day of the week.
115
- doy : 7 // The week that contains Jan 1st is the first week of the year.
116
86
  }
117
- });
118
- }));
87
+ },
88
+ week : {
89
+ dow : 1, // Monday is the first day of the week.
90
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
91
+ }
92
+ });
93
+
94
+ return hyAm;
95
+
96
+ })));
@@ -1,81 +1,84 @@
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
1
+ //! moment.js locale configuration
2
+ //! locale : Indonesian [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
5
 
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13
- }
14
- }(function (moment) {
15
- return moment.defineLocale('id', {
16
- months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
17
- monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
18
- weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
19
- weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
20
- weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
21
- longDateFormat : {
22
- LT : 'HH.mm',
23
- LTS : 'LT.ss',
24
- L : 'DD/MM/YYYY',
25
- LL : 'D MMMM YYYY',
26
- LLL : 'D MMMM YYYY [pukul] LT',
27
- LLLL : 'dddd, D MMMM YYYY [pukul] LT'
28
- },
29
- meridiemParse: /pagi|siang|sore|malam/,
30
- meridiemHour : function (hour, meridiem) {
31
- if (hour === 12) {
32
- hour = 0;
33
- }
34
- if (meridiem === 'pagi') {
35
- return hour;
36
- } else if (meridiem === 'siang') {
37
- return hour >= 11 ? hour : hour + 12;
38
- } else if (meridiem === 'sore' || meridiem === 'malam') {
39
- return hour + 12;
40
- }
41
- },
42
- meridiem : function (hours, minutes, isLower) {
43
- if (hours < 11) {
44
- return 'pagi';
45
- } else if (hours < 15) {
46
- return 'siang';
47
- } else if (hours < 19) {
48
- return 'sore';
49
- } else {
50
- return 'malam';
51
- }
52
- },
53
- calendar : {
54
- sameDay : '[Hari ini pukul] LT',
55
- nextDay : '[Besok pukul] LT',
56
- nextWeek : 'dddd [pukul] LT',
57
- lastDay : '[Kemarin pukul] LT',
58
- lastWeek : 'dddd [lalu pukul] LT',
59
- sameElse : 'L'
60
- },
61
- relativeTime : {
62
- future : 'dalam %s',
63
- past : '%s yang lalu',
64
- s : 'beberapa detik',
65
- m : 'semenit',
66
- mm : '%d menit',
67
- h : 'sejam',
68
- hh : '%d jam',
69
- d : 'sehari',
70
- dd : '%d hari',
71
- M : 'sebulan',
72
- MM : '%d bulan',
73
- y : 'setahun',
74
- yy : '%d tahun'
75
- },
76
- week : {
77
- dow : 1, // Monday is the first day of the week.
78
- doy : 7 // The week that contains Jan 1st is the first week of the year.
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ var id = moment.defineLocale('id', {
15
+ months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split('_'),
16
+ monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des'.split('_'),
17
+ weekdays : 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'),
18
+ weekdaysShort : 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'),
19
+ weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'HH.mm',
22
+ LTS : 'HH.mm.ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY [pukul] HH.mm',
26
+ LLLL : 'dddd, D MMMM YYYY [pukul] HH.mm'
27
+ },
28
+ meridiemParse: /pagi|siang|sore|malam/,
29
+ meridiemHour : function (hour, meridiem) {
30
+ if (hour === 12) {
31
+ hour = 0;
32
+ }
33
+ if (meridiem === 'pagi') {
34
+ return hour;
35
+ } else if (meridiem === 'siang') {
36
+ return hour >= 11 ? hour : hour + 12;
37
+ } else if (meridiem === 'sore' || meridiem === 'malam') {
38
+ return hour + 12;
79
39
  }
80
- });
81
- }));
40
+ },
41
+ meridiem : function (hours, minutes, isLower) {
42
+ if (hours < 11) {
43
+ return 'pagi';
44
+ } else if (hours < 15) {
45
+ return 'siang';
46
+ } else if (hours < 19) {
47
+ return 'sore';
48
+ } else {
49
+ return 'malam';
50
+ }
51
+ },
52
+ calendar : {
53
+ sameDay : '[Hari ini pukul] LT',
54
+ nextDay : '[Besok pukul] LT',
55
+ nextWeek : 'dddd [pukul] LT',
56
+ lastDay : '[Kemarin pukul] LT',
57
+ lastWeek : 'dddd [lalu pukul] LT',
58
+ sameElse : 'L'
59
+ },
60
+ relativeTime : {
61
+ future : 'dalam %s',
62
+ past : '%s yang lalu',
63
+ s : 'beberapa detik',
64
+ ss : '%d detik',
65
+ m : 'semenit',
66
+ mm : '%d menit',
67
+ h : 'sejam',
68
+ hh : '%d jam',
69
+ d : 'sehari',
70
+ dd : '%d hari',
71
+ M : 'sebulan',
72
+ MM : '%d bulan',
73
+ y : 'setahun',
74
+ yy : '%d tahun'
75
+ },
76
+ week : {
77
+ dow : 1, // Monday is the first day of the week.
78
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
79
+ }
80
+ });
81
+
82
+ return id;
83
+
84
+ })));
@@ -1,30 +1,33 @@
1
- // moment.js locale configuration
2
- // locale : icelandic (is)
3
- // author : Hinrik Örn Sigurðsson : https://github.com/hinrik
1
+ //! moment.js locale configuration
2
+ //! locale : Icelandic [is]
3
+ //! author : Hinrik Örn Sigurðsson : https://github.com/hinrik
4
4
 
5
- (function (factory) {
6
- if (typeof define === 'function' && define.amd) {
7
- define(['moment'], factory); // AMD
8
- } else if (typeof exports === 'object') {
9
- module.exports = factory(require('../moment')); // Node
10
- } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- function plural(n) {
15
- if (n % 100 === 11) {
16
- return true;
17
- } else if (n % 10 === 1) {
18
- return false;
19
- }
5
+ ;(function (global, factory) {
6
+ typeof exports === 'object' && typeof module !== 'undefined'
7
+ && typeof require === 'function' ? 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 plural(n) {
14
+ if (n % 100 === 11) {
20
15
  return true;
16
+ } else if (n % 10 === 1) {
17
+ return false;
21
18
  }
22
-
23
- function translate(number, withoutSuffix, key, isFuture) {
24
- var result = number + ' ';
25
- switch (key) {
19
+ return true;
20
+ }
21
+ function translate(number, withoutSuffix, key, isFuture) {
22
+ var result = number + ' ';
23
+ switch (key) {
26
24
  case 's':
27
25
  return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
26
+ case 'ss':
27
+ if (plural(number)) {
28
+ return result + (withoutSuffix || isFuture ? 'sekúndur' : 'sekúndum');
29
+ }
30
+ return result + 'sekúnda';
28
31
  case 'm':
29
32
  return withoutSuffix ? 'mínúta' : 'mínútu';
30
33
  case 'mm':
@@ -76,51 +79,55 @@
76
79
  return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
77
80
  }
78
81
  return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
79
- }
80
82
  }
83
+ }
84
+
85
+ var is = moment.defineLocale('is', {
86
+ months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
87
+ monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
88
+ weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
89
+ weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
90
+ weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
91
+ longDateFormat : {
92
+ LT : 'H:mm',
93
+ LTS : 'H:mm:ss',
94
+ L : 'DD.MM.YYYY',
95
+ LL : 'D. MMMM YYYY',
96
+ LLL : 'D. MMMM YYYY [kl.] H:mm',
97
+ LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
98
+ },
99
+ calendar : {
100
+ sameDay : '[í dag kl.] LT',
101
+ nextDay : '[á morgun kl.] LT',
102
+ nextWeek : 'dddd [kl.] LT',
103
+ lastDay : '[í gær kl.] LT',
104
+ lastWeek : '[síðasta] dddd [kl.] LT',
105
+ sameElse : 'L'
106
+ },
107
+ relativeTime : {
108
+ future : 'eftir %s',
109
+ past : 'fyrir %s síðan',
110
+ s : translate,
111
+ ss : translate,
112
+ m : translate,
113
+ mm : translate,
114
+ h : 'klukkustund',
115
+ hh : translate,
116
+ d : translate,
117
+ dd : translate,
118
+ M : translate,
119
+ MM : translate,
120
+ y : translate,
121
+ yy : translate
122
+ },
123
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
124
+ ordinal : '%d.',
125
+ week : {
126
+ dow : 1, // Monday is the first day of the week.
127
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
128
+ }
129
+ });
130
+
131
+ return is;
81
132
 
82
- return moment.defineLocale('is', {
83
- months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
84
- monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
85
- weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
86
- weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
87
- weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
88
- longDateFormat : {
89
- LT : 'H:mm',
90
- LTS : 'LT:ss',
91
- L : 'DD/MM/YYYY',
92
- LL : 'D. MMMM YYYY',
93
- LLL : 'D. MMMM YYYY [kl.] LT',
94
- LLLL : 'dddd, D. MMMM YYYY [kl.] LT'
95
- },
96
- calendar : {
97
- sameDay : '[í dag kl.] LT',
98
- nextDay : '[á morgun kl.] LT',
99
- nextWeek : 'dddd [kl.] LT',
100
- lastDay : '[í gær kl.] LT',
101
- lastWeek : '[síðasta] dddd [kl.] LT',
102
- sameElse : 'L'
103
- },
104
- relativeTime : {
105
- future : 'eftir %s',
106
- past : 'fyrir %s síðan',
107
- s : translate,
108
- m : translate,
109
- mm : translate,
110
- h : 'klukkustund',
111
- hh : translate,
112
- d : translate,
113
- dd : translate,
114
- M : translate,
115
- MM : translate,
116
- y : translate,
117
- yy : translate
118
- },
119
- ordinalParse: /\d{1,2}\./,
120
- ordinal : '%d.',
121
- week : {
122
- dow : 1, // Monday is the first day of the week.
123
- doy : 4 // The week that contains Jan 4th is the first week of the year.
124
- }
125
- });
126
- }));
133
+ })));
@@ -1,68 +1,71 @@
1
- // moment.js locale configuration
2
- // locale : italian (it)
3
- // author : Lorenzo : https://github.com/aliem
4
- // author: Mattia Larentis: https://github.com/nostalgiaz
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
5
 
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13
- }
14
- }(function (moment) {
15
- return moment.defineLocale('it', {
16
- months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
17
- monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
18
- weekdays : 'Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato'.split('_'),
19
- weekdaysShort : 'Dom_Lun_Mar_Mer_Gio_Ven_Sab'.split('_'),
20
- weekdaysMin : 'D_L_Ma_Me_G_V_S'.split('_'),
21
- longDateFormat : {
22
- LT : 'HH:mm',
23
- LTS : 'LT:ss',
24
- L : 'DD/MM/YYYY',
25
- LL : 'D MMMM YYYY',
26
- LLL : 'D MMMM YYYY LT',
27
- LLLL : 'dddd, D MMMM YYYY LT'
28
- },
29
- calendar : {
30
- sameDay: '[Oggi alle] LT',
31
- nextDay: '[Domani alle] LT',
32
- nextWeek: 'dddd [alle] LT',
33
- lastDay: '[Ieri alle] LT',
34
- lastWeek: function () {
35
- switch (this.day()) {
36
- case 0:
37
- return '[la scorsa] dddd [alle] LT';
38
- default:
39
- return '[lo scorso] dddd [alle] LT';
40
- }
41
- },
42
- sameElse: 'L'
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ var it = moment.defineLocale('it', {
15
+ months : 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),
16
+ monthsShort : 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),
17
+ weekdays : 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split('_'),
18
+ weekdaysShort : 'dom_lun_mar_mer_gio_ven_sab'.split('_'),
19
+ weekdaysMin : 'do_lu_ma_me_gi_ve_sa'.split('_'),
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D MMMM YYYY',
25
+ LLL : 'D MMMM YYYY HH:mm',
26
+ LLLL : 'dddd D MMMM YYYY HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[Oggi alle] LT',
30
+ nextDay: '[Domani alle] LT',
31
+ nextWeek: 'dddd [alle] LT',
32
+ lastDay: '[Ieri alle] LT',
33
+ lastWeek: function () {
34
+ switch (this.day()) {
35
+ case 0:
36
+ return '[la scorsa] dddd [alle] LT';
37
+ default:
38
+ return '[lo scorso] dddd [alle] LT';
39
+ }
43
40
  },
44
- relativeTime : {
45
- future : function (s) {
46
- return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
47
- },
48
- past : '%s fa',
49
- s : 'alcuni secondi',
50
- m : 'un minuto',
51
- mm : '%d minuti',
52
- h : 'un\'ora',
53
- hh : '%d ore',
54
- d : 'un giorno',
55
- dd : '%d giorni',
56
- M : 'un mese',
57
- MM : '%d mesi',
58
- y : 'un anno',
59
- yy : '%d anni'
41
+ sameElse: 'L'
42
+ },
43
+ relativeTime : {
44
+ future : function (s) {
45
+ return ((/^[0-9].+$/).test(s) ? 'tra' : 'in') + ' ' + s;
60
46
  },
61
- ordinalParse : /\d{1,2}º/,
62
- ordinal: '%dº',
63
- week : {
64
- dow : 1, // Monday is the first day of the week.
65
- doy : 4 // The week that contains Jan 4th is the first week of the year.
66
- }
67
- });
68
- }));
47
+ past : '%s fa',
48
+ s : 'alcuni secondi',
49
+ ss : '%d secondi',
50
+ m : 'un minuto',
51
+ mm : '%d minuti',
52
+ h : 'un\'ora',
53
+ hh : '%d ore',
54
+ d : 'un giorno',
55
+ dd : '%d giorni',
56
+ M : 'un mese',
57
+ MM : '%d mesi',
58
+ y : 'un anno',
59
+ yy : '%d anni'
60
+ },
61
+ dayOfMonthOrdinalParse : /\d{1,2}º/,
62
+ ordinal: '%dº',
63
+ week : {
64
+ dow : 1, // Monday is the first day of the week.
65
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
66
+ }
67
+ });
68
+
69
+ return it;
70
+
71
+ })));