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
@@ -0,0 +1,71 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Lao [lo]
3
+ //! author : Ryan Hart : https://github.com/ryanhart2
4
+
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
+ var lo = moment.defineLocale('lo', {
14
+ months : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
15
+ monthsShort : 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split('_'),
16
+ weekdays : 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
17
+ weekdaysShort : 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'),
18
+ weekdaysMin : 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'),
19
+ weekdaysParseExact : true,
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
+ meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/,
29
+ isPM: function (input) {
30
+ return input === 'ຕອນແລງ';
31
+ },
32
+ meridiem : function (hour, minute, isLower) {
33
+ if (hour < 12) {
34
+ return 'ຕອນເຊົ້າ';
35
+ } else {
36
+ return 'ຕອນແລງ';
37
+ }
38
+ },
39
+ calendar : {
40
+ sameDay : '[ມື້ນີ້ເວລາ] LT',
41
+ nextDay : '[ມື້ອື່ນເວລາ] LT',
42
+ nextWeek : '[ວັນ]dddd[ໜ້າເວລາ] LT',
43
+ lastDay : '[ມື້ວານນີ້ເວລາ] LT',
44
+ lastWeek : '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT',
45
+ sameElse : 'L'
46
+ },
47
+ relativeTime : {
48
+ future : 'ອີກ %s',
49
+ past : '%sຜ່ານມາ',
50
+ s : 'ບໍ່ເທົ່າໃດວິນາທີ',
51
+ ss : '%d ວິນາທີ' ,
52
+ m : '1 ນາທີ',
53
+ mm : '%d ນາທີ',
54
+ h : '1 ຊົ່ວໂມງ',
55
+ hh : '%d ຊົ່ວໂມງ',
56
+ d : '1 ມື້',
57
+ dd : '%d ມື້',
58
+ M : '1 ເດືອນ',
59
+ MM : '%d ເດືອນ',
60
+ y : '1 ປີ',
61
+ yy : '%d ປີ'
62
+ },
63
+ dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/,
64
+ ordinal : function (number) {
65
+ return 'ທີ່' + number;
66
+ }
67
+ });
68
+
69
+ return lo;
70
+
71
+ })));
@@ -1,120 +1,119 @@
1
- // moment.js locale configuration
2
- // locale : Lithuanian (lt)
3
- // author : Mindaugas Mozūras : https://github.com/mmozuras
1
+ //! moment.js locale configuration
2
+ //! locale : Lithuanian [lt]
3
+ //! author : Mindaugas Mozūras : https://github.com/mmozuras
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
- var units = {
15
- 'm' : 'minutė_minutės_minutę',
16
- 'mm': 'minutės_minučių_minutes',
17
- 'h' : 'valanda_valandos_valandą',
18
- 'hh': 'valandos_valandų_valandas',
19
- 'd' : 'diena_dienos_dieną',
20
- 'dd': 'dienos_dienų_dienas',
21
- 'M' : 'mėnuo_mėnesio_mėnesį',
22
- 'MM': 'mėnesiai_mėnesių_mėnesius',
23
- 'y' : 'metai_metų_metus',
24
- 'yy': 'metai_metų_metus'
25
- },
26
- weekDays = 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_');
27
-
28
- function translateSeconds(number, withoutSuffix, key, isFuture) {
29
- if (withoutSuffix) {
30
- return 'kelios sekundės';
31
- } else {
32
- return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
33
- }
34
- }
35
-
36
- function translateSingular(number, withoutSuffix, key, isFuture) {
37
- return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
38
- }
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';
39
11
 
40
- function special(number) {
41
- return number % 10 === 0 || (number > 10 && number < 20);
42
- }
43
12
 
44
- function forms(key) {
45
- return units[key].split('_');
13
+ var units = {
14
+ 'ss' : 'sekundė_sekundžių_sekundes',
15
+ 'm' : 'minutė_minutės_minutę',
16
+ 'mm': 'minutės_minučių_minutes',
17
+ 'h' : 'valanda_valandos_valandą',
18
+ 'hh': 'valandos_valandų_valandas',
19
+ 'd' : 'diena_dienos_dieną',
20
+ 'dd': 'dienos_dienų_dienas',
21
+ 'M' : 'mėnuo_mėnesio_mėnesį',
22
+ 'MM': 'mėnesiai_mėnesių_mėnesius',
23
+ 'y' : 'metai_metų_metus',
24
+ 'yy': 'metai_metų_metus'
25
+ };
26
+ function translateSeconds(number, withoutSuffix, key, isFuture) {
27
+ if (withoutSuffix) {
28
+ return 'kelios sekundės';
29
+ } else {
30
+ return isFuture ? 'kelių sekundžių' : 'kelias sekundes';
46
31
  }
47
-
48
- function translate(number, withoutSuffix, key, isFuture) {
49
- var result = number + ' ';
50
- if (number === 1) {
51
- return result + translateSingular(number, withoutSuffix, key[0], isFuture);
52
- } else if (withoutSuffix) {
53
- return result + (special(number) ? forms(key)[1] : forms(key)[0]);
32
+ }
33
+ function translateSingular(number, withoutSuffix, key, isFuture) {
34
+ return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]);
35
+ }
36
+ function special(number) {
37
+ return number % 10 === 0 || (number > 10 && number < 20);
38
+ }
39
+ function forms(key) {
40
+ return units[key].split('_');
41
+ }
42
+ function translate(number, withoutSuffix, key, isFuture) {
43
+ var result = number + ' ';
44
+ if (number === 1) {
45
+ return result + translateSingular(number, withoutSuffix, key[0], isFuture);
46
+ } else if (withoutSuffix) {
47
+ return result + (special(number) ? forms(key)[1] : forms(key)[0]);
48
+ } else {
49
+ if (isFuture) {
50
+ return result + forms(key)[1];
54
51
  } else {
55
- if (isFuture) {
56
- return result + forms(key)[1];
57
- } else {
58
- return result + (special(number) ? forms(key)[1] : forms(key)[2]);
59
- }
52
+ return result + (special(number) ? forms(key)[1] : forms(key)[2]);
60
53
  }
61
54
  }
62
-
63
- function relativeWeekDay(moment, format) {
64
- var nominative = format.indexOf('dddd HH:mm') === -1,
65
- weekDay = weekDays[moment.day()];
66
-
67
- return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + 'į';
55
+ }
56
+ var lt = moment.defineLocale('lt', {
57
+ months : {
58
+ format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
59
+ standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split('_'),
60
+ isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/
61
+ },
62
+ monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
63
+ weekdays : {
64
+ format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split('_'),
65
+ standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split('_'),
66
+ isFormat: /dddd HH:mm/
67
+ },
68
+ weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
69
+ weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
70
+ weekdaysParseExact : true,
71
+ longDateFormat : {
72
+ LT : 'HH:mm',
73
+ LTS : 'HH:mm:ss',
74
+ L : 'YYYY-MM-DD',
75
+ LL : 'YYYY [m.] MMMM D [d.]',
76
+ LLL : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
77
+ LLLL : 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]',
78
+ l : 'YYYY-MM-DD',
79
+ ll : 'YYYY [m.] MMMM D [d.]',
80
+ lll : 'YYYY [m.] MMMM D [d.], HH:mm [val.]',
81
+ llll : 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]'
82
+ },
83
+ calendar : {
84
+ sameDay : '[Šiandien] LT',
85
+ nextDay : '[Rytoj] LT',
86
+ nextWeek : 'dddd LT',
87
+ lastDay : '[Vakar] LT',
88
+ lastWeek : '[Praėjusį] dddd LT',
89
+ sameElse : 'L'
90
+ },
91
+ relativeTime : {
92
+ future : 'po %s',
93
+ past : 'prieš %s',
94
+ s : translateSeconds,
95
+ ss : translate,
96
+ m : translateSingular,
97
+ mm : translate,
98
+ h : translateSingular,
99
+ hh : translate,
100
+ d : translateSingular,
101
+ dd : translate,
102
+ M : translateSingular,
103
+ MM : translate,
104
+ y : translateSingular,
105
+ yy : translate
106
+ },
107
+ dayOfMonthOrdinalParse: /\d{1,2}-oji/,
108
+ ordinal : function (number) {
109
+ return number + '-oji';
110
+ },
111
+ week : {
112
+ dow : 1, // Monday is the first day of the week.
113
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
68
114
  }
115
+ });
69
116
 
70
- return moment.defineLocale('lt', {
71
- months : 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split('_'),
72
- monthsShort : 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split('_'),
73
- weekdays : relativeWeekDay,
74
- weekdaysShort : 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'),
75
- weekdaysMin : 'S_P_A_T_K_Pn_Š'.split('_'),
76
- longDateFormat : {
77
- LT : 'HH:mm',
78
- LTS : 'LT:ss',
79
- L : 'YYYY-MM-DD',
80
- LL : 'YYYY [m.] MMMM D [d.]',
81
- LLL : 'YYYY [m.] MMMM D [d.], LT [val.]',
82
- LLLL : 'YYYY [m.] MMMM D [d.], dddd, LT [val.]',
83
- l : 'YYYY-MM-DD',
84
- ll : 'YYYY [m.] MMMM D [d.]',
85
- lll : 'YYYY [m.] MMMM D [d.], LT [val.]',
86
- llll : 'YYYY [m.] MMMM D [d.], ddd, LT [val.]'
87
- },
88
- calendar : {
89
- sameDay : '[Šiandien] LT',
90
- nextDay : '[Rytoj] LT',
91
- nextWeek : 'dddd LT',
92
- lastDay : '[Vakar] LT',
93
- lastWeek : '[Praėjusį] dddd LT',
94
- sameElse : 'L'
95
- },
96
- relativeTime : {
97
- future : 'po %s',
98
- past : 'prieš %s',
99
- s : translateSeconds,
100
- m : translateSingular,
101
- mm : translate,
102
- h : translateSingular,
103
- hh : translate,
104
- d : translateSingular,
105
- dd : translate,
106
- M : translateSingular,
107
- MM : translate,
108
- y : translateSingular,
109
- yy : translate
110
- },
111
- ordinalParse: /\d{1,2}-oji/,
112
- ordinal : function (number) {
113
- return number + '-oji';
114
- },
115
- week : {
116
- dow : 1, // Monday is the first day of the week.
117
- doy : 4 // The week that contains Jan 4th is the first week of the year.
118
- }
119
- });
120
- }));
117
+ return lt;
118
+
119
+ })));
@@ -1,79 +1,99 @@
1
- // moment.js locale configuration
2
- // locale : latvian (lv)
3
- // author : Kristaps Karlsons : https://github.com/skakri
1
+ //! moment.js locale configuration
2
+ //! locale : Latvian [lv]
3
+ //! author : Kristaps Karlsons : https://github.com/skakri
4
+ //! author : Jānis Elmeris : https://github.com/JanisE
4
5
 
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
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 units = {
15
+ 'ss': 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
16
+ 'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
17
+ 'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
18
+ 'h': 'stundas_stundām_stunda_stundas'.split('_'),
19
+ 'hh': 'stundas_stundām_stunda_stundas'.split('_'),
20
+ 'd': 'dienas_dienām_diena_dienas'.split('_'),
21
+ 'dd': 'dienas_dienām_diena_dienas'.split('_'),
22
+ 'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
23
+ 'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
24
+ 'y': 'gada_gadiem_gads_gadi'.split('_'),
25
+ 'yy': 'gada_gadiem_gads_gadi'.split('_')
26
+ };
27
+ /**
28
+ * @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
29
+ */
30
+ function format(forms, number, withoutSuffix) {
31
+ if (withoutSuffix) {
32
+ // E.g. "21 minūte", "3 minūtes".
33
+ return number % 10 === 1 && number % 100 !== 11 ? forms[2] : forms[3];
10
34
  } else {
11
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
35
+ // E.g. "21 minūtes" as in "pēc 21 minūtes".
36
+ // E.g. "3 minūtēm" as in "pēc 3 minūtēm".
37
+ return number % 10 === 1 && number % 100 !== 11 ? forms[0] : forms[1];
12
38
  }
13
- }(function (moment) {
14
- var units = {
15
- 'mm': 'minūti_minūtes_minūte_minūtes',
16
- 'hh': 'stundu_stundas_stunda_stundas',
17
- 'dd': 'dienu_dienas_diena_dienas',
18
- 'MM': 'mēnesi_mēnešus_mēnesis_mēneši',
19
- 'yy': 'gadu_gadus_gads_gadi'
20
- };
39
+ }
40
+ function relativeTimeWithPlural(number, withoutSuffix, key) {
41
+ return number + ' ' + format(units[key], number, withoutSuffix);
42
+ }
43
+ function relativeTimeWithSingular(number, withoutSuffix, key) {
44
+ return format(units[key], number, withoutSuffix);
45
+ }
46
+ function relativeSeconds(number, withoutSuffix) {
47
+ return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
48
+ }
21
49
 
22
- function format(word, number, withoutSuffix) {
23
- var forms = word.split('_');
24
- if (withoutSuffix) {
25
- return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
26
- } else {
27
- return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
28
- }
50
+ var lv = moment.defineLocale('lv', {
51
+ months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
52
+ monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
53
+ weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
54
+ weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
55
+ weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
56
+ weekdaysParseExact : true,
57
+ longDateFormat : {
58
+ LT : 'HH:mm',
59
+ LTS : 'HH:mm:ss',
60
+ L : 'DD.MM.YYYY.',
61
+ LL : 'YYYY. [gada] D. MMMM',
62
+ LLL : 'YYYY. [gada] D. MMMM, HH:mm',
63
+ LLLL : 'YYYY. [gada] D. MMMM, dddd, HH:mm'
64
+ },
65
+ calendar : {
66
+ sameDay : '[Šodien pulksten] LT',
67
+ nextDay : '[Rīt pulksten] LT',
68
+ nextWeek : 'dddd [pulksten] LT',
69
+ lastDay : '[Vakar pulksten] LT',
70
+ lastWeek : '[Pagājušā] dddd [pulksten] LT',
71
+ sameElse : 'L'
72
+ },
73
+ relativeTime : {
74
+ future : 'pēc %s',
75
+ past : 'pirms %s',
76
+ s : relativeSeconds,
77
+ ss : relativeTimeWithPlural,
78
+ m : relativeTimeWithSingular,
79
+ mm : relativeTimeWithPlural,
80
+ h : relativeTimeWithSingular,
81
+ hh : relativeTimeWithPlural,
82
+ d : relativeTimeWithSingular,
83
+ dd : relativeTimeWithPlural,
84
+ M : relativeTimeWithSingular,
85
+ MM : relativeTimeWithPlural,
86
+ y : relativeTimeWithSingular,
87
+ yy : relativeTimeWithPlural
88
+ },
89
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
90
+ ordinal : '%d.',
91
+ week : {
92
+ dow : 1, // Monday is the first day of the week.
93
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
29
94
  }
95
+ });
30
96
 
31
- function relativeTimeWithPlural(number, withoutSuffix, key) {
32
- return number + ' ' + format(units[key], number, withoutSuffix);
33
- }
97
+ return lv;
34
98
 
35
- return moment.defineLocale('lv', {
36
- months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
37
- monthsShort : 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split('_'),
38
- weekdays : 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split('_'),
39
- weekdaysShort : 'Sv_P_O_T_C_Pk_S'.split('_'),
40
- weekdaysMin : 'Sv_P_O_T_C_Pk_S'.split('_'),
41
- longDateFormat : {
42
- LT : 'HH:mm',
43
- LTS : 'LT:ss',
44
- L : 'DD.MM.YYYY',
45
- LL : 'YYYY. [gada] D. MMMM',
46
- LLL : 'YYYY. [gada] D. MMMM, LT',
47
- LLLL : 'YYYY. [gada] D. MMMM, dddd, LT'
48
- },
49
- calendar : {
50
- sameDay : '[Šodien pulksten] LT',
51
- nextDay : '[Rīt pulksten] LT',
52
- nextWeek : 'dddd [pulksten] LT',
53
- lastDay : '[Vakar pulksten] LT',
54
- lastWeek : '[Pagājušā] dddd [pulksten] LT',
55
- sameElse : 'L'
56
- },
57
- relativeTime : {
58
- future : '%s vēlāk',
59
- past : '%s agrāk',
60
- s : 'dažas sekundes',
61
- m : 'minūti',
62
- mm : relativeTimeWithPlural,
63
- h : 'stundu',
64
- hh : relativeTimeWithPlural,
65
- d : 'dienu',
66
- dd : relativeTimeWithPlural,
67
- M : 'mēnesi',
68
- MM : relativeTimeWithPlural,
69
- y : 'gadu',
70
- yy : relativeTimeWithPlural
71
- },
72
- ordinalParse: /\d{1,2}\./,
73
- ordinal : '%d.',
74
- week : {
75
- dow : 1, // Monday is the first day of the week.
76
- doy : 4 // The week that contains Jan 4th is the first week of the year.
77
- }
78
- });
79
- }));
99
+ })));
@@ -0,0 +1,113 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Montenegrin [me]
3
+ //! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
4
+
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
+ var translator = {
14
+ words: { //Different grammatical cases
15
+ ss: ['sekund', 'sekunda', 'sekundi'],
16
+ m: ['jedan minut', 'jednog minuta'],
17
+ mm: ['minut', 'minuta', 'minuta'],
18
+ h: ['jedan sat', 'jednog sata'],
19
+ hh: ['sat', 'sata', 'sati'],
20
+ dd: ['dan', 'dana', 'dana'],
21
+ MM: ['mjesec', 'mjeseca', 'mjeseci'],
22
+ yy: ['godina', 'godine', 'godina']
23
+ },
24
+ correctGrammaticalCase: function (number, wordKey) {
25
+ return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
26
+ },
27
+ translate: function (number, withoutSuffix, key) {
28
+ var wordKey = translator.words[key];
29
+ if (key.length === 1) {
30
+ return withoutSuffix ? wordKey[0] : wordKey[1];
31
+ } else {
32
+ return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
33
+ }
34
+ }
35
+ };
36
+
37
+ var me = moment.defineLocale('me', {
38
+ months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split('_'),
39
+ monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split('_'),
40
+ monthsParseExact : true,
41
+ weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
42
+ weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
43
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
44
+ weekdaysParseExact : true,
45
+ longDateFormat: {
46
+ LT: 'H:mm',
47
+ LTS : 'H:mm:ss',
48
+ L: 'DD.MM.YYYY',
49
+ LL: 'D. MMMM YYYY',
50
+ LLL: 'D. MMMM YYYY H:mm',
51
+ LLLL: 'dddd, D. MMMM YYYY H:mm'
52
+ },
53
+ calendar: {
54
+ sameDay: '[danas u] LT',
55
+ nextDay: '[sjutra u] LT',
56
+
57
+ nextWeek: function () {
58
+ switch (this.day()) {
59
+ case 0:
60
+ return '[u] [nedjelju] [u] LT';
61
+ case 3:
62
+ return '[u] [srijedu] [u] LT';
63
+ case 6:
64
+ return '[u] [subotu] [u] LT';
65
+ case 1:
66
+ case 2:
67
+ case 4:
68
+ case 5:
69
+ return '[u] dddd [u] LT';
70
+ }
71
+ },
72
+ lastDay : '[juče u] LT',
73
+ lastWeek : function () {
74
+ var lastWeekDays = [
75
+ '[prošle] [nedjelje] [u] LT',
76
+ '[prošlog] [ponedjeljka] [u] LT',
77
+ '[prošlog] [utorka] [u] LT',
78
+ '[prošle] [srijede] [u] LT',
79
+ '[prošlog] [četvrtka] [u] LT',
80
+ '[prošlog] [petka] [u] LT',
81
+ '[prošle] [subote] [u] LT'
82
+ ];
83
+ return lastWeekDays[this.day()];
84
+ },
85
+ sameElse : 'L'
86
+ },
87
+ relativeTime : {
88
+ future : 'za %s',
89
+ past : 'prije %s',
90
+ s : 'nekoliko sekundi',
91
+ ss : translator.translate,
92
+ m : translator.translate,
93
+ mm : translator.translate,
94
+ h : translator.translate,
95
+ hh : translator.translate,
96
+ d : 'dan',
97
+ dd : translator.translate,
98
+ M : 'mjesec',
99
+ MM : translator.translate,
100
+ y : 'godinu',
101
+ yy : translator.translate
102
+ },
103
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
104
+ ordinal : '%d.',
105
+ week : {
106
+ dow : 1, // Monday is the first day of the week.
107
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
108
+ }
109
+ });
110
+
111
+ return me;
112
+
113
+ })));
@@ -0,0 +1,65 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Maori [mi]
3
+ //! author : John Corrigan <robbiecloset@gmail.com> : https://github.com/johnideal
4
+
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
+ var mi = moment.defineLocale('mi', {
14
+ months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split('_'),
15
+ monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split('_'),
16
+ monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
17
+ monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
18
+ monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,
19
+ monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,
20
+ weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'),
21
+ weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
22
+ weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'),
23
+ longDateFormat: {
24
+ LT: 'HH:mm',
25
+ LTS: 'HH:mm:ss',
26
+ L: 'DD/MM/YYYY',
27
+ LL: 'D MMMM YYYY',
28
+ LLL: 'D MMMM YYYY [i] HH:mm',
29
+ LLLL: 'dddd, D MMMM YYYY [i] HH:mm'
30
+ },
31
+ calendar: {
32
+ sameDay: '[i teie mahana, i] LT',
33
+ nextDay: '[apopo i] LT',
34
+ nextWeek: 'dddd [i] LT',
35
+ lastDay: '[inanahi i] LT',
36
+ lastWeek: 'dddd [whakamutunga i] LT',
37
+ sameElse: 'L'
38
+ },
39
+ relativeTime: {
40
+ future: 'i roto i %s',
41
+ past: '%s i mua',
42
+ s: 'te hēkona ruarua',
43
+ ss: '%d hēkona',
44
+ m: 'he meneti',
45
+ mm: '%d meneti',
46
+ h: 'te haora',
47
+ hh: '%d haora',
48
+ d: 'he ra',
49
+ dd: '%d ra',
50
+ M: 'he marama',
51
+ MM: '%d marama',
52
+ y: 'he tau',
53
+ yy: '%d tau'
54
+ },
55
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
56
+ ordinal: '%dº',
57
+ week : {
58
+ dow : 1, // Monday is the first day of the week.
59
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
60
+ }
61
+ });
62
+
63
+ return mi;
64
+
65
+ })));