momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -7,89 +7,89 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var hy_am = moment.defineLocale('hy-am', {
14
- months : {
15
- format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split('_'),
16
- standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split('_')
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';
17
36
  },
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'
37
+ lastWeek: function () {
38
+ return '[անցած] dddd [օրը ժամը] LT';
29
39
  },
30
- calendar : {
31
- sameDay: '[այսօր] LT',
32
- nextDay: '[վաղը] LT',
33
- lastDay: '[երեկ] LT',
34
- nextWeek: function () {
35
- return 'dddd [օրը ժամը] LT';
36
- },
37
- lastWeek: function () {
38
- return '[անցած] dddd [օրը ժամը] LT';
39
- },
40
- sameElse: 'L'
41
- },
42
- relativeTime : {
43
- future : '%s հետո',
44
- past : '%s առաջ',
45
- s : 'մի քանի վայրկյան',
46
- m : 'րոպե',
47
- mm : '%d րոպե',
48
- h : 'ժամ',
49
- hh : '%d ժամ',
50
- d : 'օր',
51
- dd : '%d օր',
52
- M : 'ամիս',
53
- MM : '%d ամիս',
54
- y : 'տարի',
55
- yy : '%d տարի'
56
- },
57
- meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
58
- isPM: function (input) {
59
- return /^(ցերեկվա|երեկոյան)$/.test(input);
60
- },
61
- meridiem : function (hour) {
62
- if (hour < 4) {
63
- return 'գիշերվա';
64
- } else if (hour < 12) {
65
- return 'առավոտվա';
66
- } else if (hour < 17) {
67
- return 'ցերեկվա';
68
- } else {
69
- return 'երեկոյան';
70
- }
71
- },
72
- ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
73
- ordinal: function (number, period) {
74
- switch (period) {
75
- case 'DDD':
76
- case 'w':
77
- case 'W':
78
- case 'DDDo':
79
- if (number === 1) {
80
- return number + '-ին';
81
- }
82
- return number + '-րդ';
83
- default:
84
- return number;
85
- }
86
- },
87
- week : {
88
- dow : 1, // Monday is the first day of the week.
89
- doy : 7 // The week that contains Jan 1st is the first week of the year.
40
+ sameElse: 'L'
41
+ },
42
+ relativeTime : {
43
+ future : '%s հետո',
44
+ past : '%s առաջ',
45
+ s : 'մի քանի վայրկյան',
46
+ m : 'րոպե',
47
+ mm : '%d րոպե',
48
+ h : 'ժամ',
49
+ hh : '%d ժամ',
50
+ d : 'օր',
51
+ dd : '%d օր',
52
+ M : 'ամիս',
53
+ MM : '%d ամիս',
54
+ y : 'տարի',
55
+ yy : '%d տարի'
56
+ },
57
+ meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,
58
+ isPM: function (input) {
59
+ return /^(ցերեկվա|երեկոյան)$/.test(input);
60
+ },
61
+ meridiem : function (hour) {
62
+ if (hour < 4) {
63
+ return 'գիշերվա';
64
+ } else if (hour < 12) {
65
+ return 'առավոտվա';
66
+ } else if (hour < 17) {
67
+ return 'ցերեկվա';
68
+ } else {
69
+ return 'երեկոյան';
70
+ }
71
+ },
72
+ ordinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/,
73
+ ordinal: function (number, period) {
74
+ switch (period) {
75
+ case 'DDD':
76
+ case 'w':
77
+ case 'W':
78
+ case 'DDDo':
79
+ if (number === 1) {
80
+ return number + '-ին';
81
+ }
82
+ return number + '-րդ';
83
+ default:
84
+ return number;
90
85
  }
91
- });
86
+ },
87
+ week : {
88
+ dow : 1, // Monday is the first day of the week.
89
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
90
+ }
91
+ });
92
92
 
93
- return hy_am;
93
+ return hyAm;
94
94
 
95
- }));
95
+ })));
@@ -8,76 +8,76 @@
8
8
  && typeof require === 'function' ? factory(require('../moment')) :
9
9
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
10
  factory(global.moment)
11
- }(this, function (moment) { 'use strict';
11
+ }(this, (function (moment) { 'use strict';
12
12
 
13
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;
39
- }
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
- m : 'semenit',
65
- mm : '%d menit',
66
- h : 'sejam',
67
- hh : '%d jam',
68
- d : 'sehari',
69
- dd : '%d hari',
70
- M : 'sebulan',
71
- MM : '%d bulan',
72
- y : 'setahun',
73
- yy : '%d tahun'
74
- },
75
- week : {
76
- dow : 1, // Monday is the first day of the week.
77
- doy : 7 // The week that contains Jan 1st is the first week of the year.
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;
78
32
  }
79
- });
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;
39
+ }
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
+ m : 'semenit',
65
+ mm : '%d menit',
66
+ h : 'sejam',
67
+ hh : '%d jam',
68
+ d : 'sehari',
69
+ dd : '%d hari',
70
+ M : 'sebulan',
71
+ MM : '%d bulan',
72
+ y : 'setahun',
73
+ yy : '%d tahun'
74
+ },
75
+ week : {
76
+ dow : 1, // Monday is the first day of the week.
77
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
78
+ }
79
+ });
80
80
 
81
- return id;
81
+ return id;
82
82
 
83
- }));
83
+ })));
@@ -7,121 +7,121 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- function plural(n) {
14
- if (n % 100 === 11) {
15
- return true;
16
- } else if (n % 10 === 1) {
17
- return false;
18
- }
13
+ function plural(n) {
14
+ if (n % 100 === 11) {
19
15
  return true;
16
+ } else if (n % 10 === 1) {
17
+ return false;
20
18
  }
21
- function translate(number, withoutSuffix, key, isFuture) {
22
- var result = number + ' ';
23
- switch (key) {
24
- case 's':
25
- return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
26
- case 'm':
27
- return withoutSuffix ? 'mínúta' : 'mínútu';
28
- case 'mm':
29
- if (plural(number)) {
30
- return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
31
- } else if (withoutSuffix) {
32
- return result + 'mínúta';
33
- }
34
- return result + 'mínútu';
35
- case 'hh':
36
- if (plural(number)) {
37
- return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
38
- }
39
- return result + 'klukkustund';
40
- case 'd':
19
+ return true;
20
+ }
21
+ function translate(number, withoutSuffix, key, isFuture) {
22
+ var result = number + ' ';
23
+ switch (key) {
24
+ case 's':
25
+ return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum';
26
+ case 'm':
27
+ return withoutSuffix ? 'mínúta' : 'mínútu';
28
+ case 'mm':
29
+ if (plural(number)) {
30
+ return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum');
31
+ } else if (withoutSuffix) {
32
+ return result + 'mínúta';
33
+ }
34
+ return result + 'mínútu';
35
+ case 'hh':
36
+ if (plural(number)) {
37
+ return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum');
38
+ }
39
+ return result + 'klukkustund';
40
+ case 'd':
41
+ if (withoutSuffix) {
42
+ return 'dagur';
43
+ }
44
+ return isFuture ? 'dag' : 'degi';
45
+ case 'dd':
46
+ if (plural(number)) {
41
47
  if (withoutSuffix) {
42
- return 'dagur';
43
- }
44
- return isFuture ? 'dag' : 'degi';
45
- case 'dd':
46
- if (plural(number)) {
47
- if (withoutSuffix) {
48
- return result + 'dagar';
49
- }
50
- return result + (isFuture ? 'daga' : 'dögum');
51
- } else if (withoutSuffix) {
52
- return result + 'dagur';
48
+ return result + 'dagar';
53
49
  }
54
- return result + (isFuture ? 'dag' : 'degi');
55
- case 'M':
50
+ return result + (isFuture ? 'daga' : 'dögum');
51
+ } else if (withoutSuffix) {
52
+ return result + 'dagur';
53
+ }
54
+ return result + (isFuture ? 'dag' : 'degi');
55
+ case 'M':
56
+ if (withoutSuffix) {
57
+ return 'mánuður';
58
+ }
59
+ return isFuture ? 'mánuð' : 'mánuði';
60
+ case 'MM':
61
+ if (plural(number)) {
56
62
  if (withoutSuffix) {
57
- return 'mánuður';
63
+ return result + 'mánuðir';
58
64
  }
59
- return isFuture ? 'mánuð' : 'mánuði';
60
- case 'MM':
61
- if (plural(number)) {
62
- if (withoutSuffix) {
63
- return result + 'mánuðir';
64
- }
65
- return result + (isFuture ? 'mánuði' : 'mánuðum');
66
- } else if (withoutSuffix) {
67
- return result + 'mánuður';
68
- }
69
- return result + (isFuture ? 'mánuð' : 'mánuði');
70
- case 'y':
71
- return withoutSuffix || isFuture ? 'ár' : 'ári';
72
- case 'yy':
73
- if (plural(number)) {
74
- return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
75
- }
76
- return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
77
- }
65
+ return result + (isFuture ? 'mánuði' : 'mánuðum');
66
+ } else if (withoutSuffix) {
67
+ return result + 'mánuður';
68
+ }
69
+ return result + (isFuture ? 'mánuð' : 'mánuði');
70
+ case 'y':
71
+ return withoutSuffix || isFuture ? 'ár' : 'ári';
72
+ case 'yy':
73
+ if (plural(number)) {
74
+ return result + (withoutSuffix || isFuture ? 'ár' : 'árum');
75
+ }
76
+ return result + (withoutSuffix || isFuture ? 'ár' : 'ári');
78
77
  }
78
+ }
79
79
 
80
- var is = moment.defineLocale('is', {
81
- months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
82
- monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
83
- weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
84
- weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
85
- weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
86
- longDateFormat : {
87
- LT : 'H:mm',
88
- LTS : 'H:mm:ss',
89
- L : 'DD.MM.YYYY',
90
- LL : 'D. MMMM YYYY',
91
- LLL : 'D. MMMM YYYY [kl.] H:mm',
92
- LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
93
- },
94
- calendar : {
95
- sameDay : '[í dag kl.] LT',
96
- nextDay : '[á morgun kl.] LT',
97
- nextWeek : 'dddd [kl.] LT',
98
- lastDay : '[í gær kl.] LT',
99
- lastWeek : '[síðasta] dddd [kl.] LT',
100
- sameElse : 'L'
101
- },
102
- relativeTime : {
103
- future : 'eftir %s',
104
- past : 'fyrir %s síðan',
105
- s : translate,
106
- m : translate,
107
- mm : translate,
108
- h : 'klukkustund',
109
- hh : translate,
110
- d : translate,
111
- dd : translate,
112
- M : translate,
113
- MM : translate,
114
- y : translate,
115
- yy : translate
116
- },
117
- ordinalParse: /\d{1,2}\./,
118
- ordinal : '%d.',
119
- week : {
120
- dow : 1, // Monday is the first day of the week.
121
- doy : 4 // The week that contains Jan 4th is the first week of the year.
122
- }
123
- });
80
+ var is = moment.defineLocale('is', {
81
+ months : 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split('_'),
82
+ monthsShort : 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split('_'),
83
+ weekdays : 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split('_'),
84
+ weekdaysShort : 'sun_mán_þri_mið_fim_fös_lau'.split('_'),
85
+ weekdaysMin : 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'),
86
+ longDateFormat : {
87
+ LT : 'H:mm',
88
+ LTS : 'H:mm:ss',
89
+ L : 'DD.MM.YYYY',
90
+ LL : 'D. MMMM YYYY',
91
+ LLL : 'D. MMMM YYYY [kl.] H:mm',
92
+ LLLL : 'dddd, D. MMMM YYYY [kl.] H:mm'
93
+ },
94
+ calendar : {
95
+ sameDay : '[í dag kl.] LT',
96
+ nextDay : '[á morgun kl.] LT',
97
+ nextWeek : 'dddd [kl.] LT',
98
+ lastDay : '[í gær kl.] LT',
99
+ lastWeek : '[síðasta] dddd [kl.] LT',
100
+ sameElse : 'L'
101
+ },
102
+ relativeTime : {
103
+ future : 'eftir %s',
104
+ past : 'fyrir %s síðan',
105
+ s : translate,
106
+ m : translate,
107
+ mm : translate,
108
+ h : 'klukkustund',
109
+ hh : translate,
110
+ d : translate,
111
+ dd : translate,
112
+ M : translate,
113
+ MM : translate,
114
+ y : translate,
115
+ yy : translate
116
+ },
117
+ ordinalParse: /\d{1,2}\./,
118
+ ordinal : '%d.',
119
+ week : {
120
+ dow : 1, // Monday is the first day of the week.
121
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
122
+ }
123
+ });
124
124
 
125
- return is;
125
+ return is;
126
126
 
127
- }));
127
+ })));