momentjs-rails 2.20.1 → 2.29.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +12 -0
  4. data/test/dummy/app/assets/config/manifest.js +1 -0
  5. data/test/dummy/config/environments/development.rb +2 -0
  6. data/test/dummy/config/environments/production.rb +1 -0
  7. data/test/dummy/config/environments/test.rb +2 -0
  8. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/0t/0ty_fqRlzF-hGYQebubBsuGgCeT9YnqkULkaCu1nwMk.cache +0 -0
  9. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3D/3DLOuccQFCZCWz_kmyP6PagEyQM5ne4ONIzBwdwG-fY.cache +2 -0
  10. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3h/3hk-k7Z5qoOh6S1dyiOjpfiwRfblMf4NpG3NVkO_4GQ.cache +1 -0
  11. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/81/81FXcACo3ySybaa-2mJ9JsZ4xXvXxgi6rAT9sildrVs.cache +1 -0
  12. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/97/97gKfWGwqo7IhT-5nqdT3p547QEt2G9nbmU5XVAtEeE.cache +1 -0
  13. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/GO/GOYA_gO9tZqOtwNUptOfYUG1F6q5BF1ZZI0Wr7itvYM.cache +1 -0
  14. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/NG/NGyfZ_kRU3oHnf8bEjRHJwpjyx0NF_U8V_ENdenCoIg.cache +1 -0
  15. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/R9/R9pPKpyMZFVnjZL7kwY21faYzV2WpIx_hPb5GrUown8.cache +2 -0
  16. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/W1/W1cCnSuixTbIt3rgc5Z-4BGC1iBfw6gqKVjuOh66lSY.cache +3 -0
  17. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Xr/Xr9AioDZNswMqHmbREXo4J_kNVPlbysC8G37BX65-rY.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/lK/lKG81FVPPHkSni295teRgLDoWVYRamY_BCSFxMiagSs.cache +1 -0
  19. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/q7/q7CVcZSJHIEQqdPLpSAb4YHepJZFY541_7ToMaHvbtA.cache +0 -0
  20. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wF/wFKYFOm2u1A3crk6JyBKUw2L5ybvI0Tbt2jPPZXfdWQ.cache +3 -0
  21. data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/yY/yY97dYnGEDUjVioT9bUJucvTt0w_ToimRXWj3YYvD10.cache +0 -0
  22. data/test/integration/navigation_test.rb +1 -1
  23. data/vendor/assets/javascripts/moment/af.js +67 -59
  24. data/vendor/assets/javascripts/moment/ar-dz.js +153 -46
  25. data/vendor/assets/javascripts/moment/ar-kw.js +51 -45
  26. data/vendor/assets/javascripts/moment/ar-ly.js +167 -112
  27. data/vendor/assets/javascripts/moment/ar-ma.js +51 -45
  28. data/vendor/assets/javascripts/moment/ar-sa.js +100 -90
  29. data/vendor/assets/javascripts/moment/ar-tn.js +51 -45
  30. data/vendor/assets/javascripts/moment/ar.js +182 -125
  31. data/vendor/assets/javascripts/moment/az.js +97 -90
  32. data/vendor/assets/javascripts/moment/be.js +130 -112
  33. data/vendor/assets/javascripts/moment/bg.js +81 -74
  34. data/vendor/assets/javascripts/moment/bm.js +47 -45
  35. data/vendor/assets/javascripts/moment/bn-bd.js +140 -0
  36. data/vendor/assets/javascripts/moment/bn.js +113 -103
  37. data/vendor/assets/javascripts/moment/bo.js +118 -103
  38. data/vendor/assets/javascripts/moment/br.js +158 -88
  39. data/vendor/assets/javascripts/moment/bs.js +141 -133
  40. data/vendor/assets/javascripts/moment/ca.js +91 -69
  41. data/vendor/assets/javascripts/moment/cs.js +172 -161
  42. data/vendor/assets/javascripts/moment/cv.js +58 -48
  43. data/vendor/assets/javascripts/moment/cy.js +92 -65
  44. data/vendor/assets/javascripts/moment/da.js +49 -46
  45. data/vendor/assets/javascripts/moment/de-at.js +71 -61
  46. data/vendor/assets/javascripts/moment/de-ch.js +71 -63
  47. data/vendor/assets/javascripts/moment/de.js +71 -61
  48. data/vendor/assets/javascripts/moment/dv.js +85 -85
  49. data/vendor/assets/javascripts/moment/el.js +99 -83
  50. data/vendor/assets/javascripts/moment/en-au.js +64 -53
  51. data/vendor/assets/javascripts/moment/en-ca.js +60 -49
  52. data/vendor/assets/javascripts/moment/en-gb.js +64 -53
  53. data/vendor/assets/javascripts/moment/en-ie.js +64 -53
  54. data/vendor/assets/javascripts/moment/en-il.js +75 -0
  55. data/vendor/assets/javascripts/moment/en-in.js +79 -0
  56. data/vendor/assets/javascripts/moment/en-nz.js +64 -53
  57. data/vendor/assets/javascripts/moment/en-sg.js +79 -0
  58. data/vendor/assets/javascripts/moment/eo.js +62 -57
  59. data/vendor/assets/javascripts/moment/es-do.js +99 -72
  60. data/vendor/assets/javascripts/moment/es-mx.js +121 -0
  61. data/vendor/assets/javascripts/moment/es-us.js +100 -63
  62. data/vendor/assets/javascripts/moment/es.js +100 -72
  63. data/vendor/assets/javascripts/moment/et.js +71 -64
  64. data/vendor/assets/javascripts/moment/eu.js +61 -52
  65. data/vendor/assets/javascripts/moment/fa.js +108 -92
  66. data/vendor/assets/javascripts/moment/fi.js +118 -93
  67. data/vendor/assets/javascripts/moment/fil.js +69 -0
  68. data/vendor/assets/javascripts/moment/fo.js +53 -46
  69. data/vendor/assets/javascripts/moment/fr-ca.js +65 -59
  70. data/vendor/assets/javascripts/moment/fr-ch.js +69 -63
  71. data/vendor/assets/javascripts/moment/fr.js +102 -67
  72. data/vendor/assets/javascripts/moment/fy.js +70 -60
  73. data/vendor/assets/javascripts/moment/ga.js +106 -0
  74. data/vendor/assets/javascripts/moment/gd.js +90 -61
  75. data/vendor/assets/javascripts/moment/gl.js +67 -59
  76. data/vendor/assets/javascripts/moment/gom-deva.js +137 -0
  77. data/vendor/assets/javascripts/moment/gom-latn.js +119 -108
  78. data/vendor/assets/javascripts/moment/gu.js +117 -109
  79. data/vendor/assets/javascripts/moment/he.js +84 -79
  80. data/vendor/assets/javascripts/moment/hi.js +163 -109
  81. data/vendor/assets/javascripts/moment/hr.js +148 -136
  82. data/vendor/assets/javascripts/moment/hu.js +110 -92
  83. data/vendor/assets/javascripts/moment/hy-am.js +88 -79
  84. data/vendor/assets/javascripts/moment/id.js +71 -68
  85. data/vendor/assets/javascripts/moment/is.js +128 -110
  86. data/vendor/assets/javascripts/moment/it-ch.js +75 -0
  87. data/vendor/assets/javascripts/moment/it.js +99 -53
  88. data/vendor/assets/javascripts/moment/ja.js +144 -66
  89. data/vendor/assets/javascripts/moment/jv.js +71 -68
  90. data/vendor/assets/javascripts/moment/ka.js +85 -72
  91. data/vendor/assets/javascripts/moment/kk.js +77 -72
  92. data/vendor/assets/javascripts/moment/km.js +99 -44
  93. data/vendor/assets/javascripts/moment/kn.js +119 -111
  94. data/vendor/assets/javascripts/moment/ko.js +70 -67
  95. data/vendor/assets/javascripts/moment/ku.js +129 -0
  96. data/vendor/assets/javascripts/moment/ky.js +79 -73
  97. data/vendor/assets/javascripts/moment/lb.js +125 -115
  98. data/vendor/assets/javascripts/moment/lo.js +62 -56
  99. data/vendor/assets/javascripts/moment/lt.js +117 -100
  100. data/vendor/assets/javascripts/moment/lv.js +87 -81
  101. data/vendor/assets/javascripts/moment/me.js +109 -94
  102. data/vendor/assets/javascripts/moment/mi.js +56 -50
  103. data/vendor/assets/javascripts/moment/mk.js +80 -74
  104. data/vendor/assets/javascripts/moment/ml.js +77 -66
  105. data/vendor/assets/javascripts/moment/mn.js +111 -0
  106. data/vendor/assets/javascripts/moment/mr.js +194 -142
  107. data/vendor/assets/javascripts/moment/ms-my.js +71 -68
  108. data/vendor/assets/javascripts/moment/ms.js +71 -68
  109. data/vendor/assets/javascripts/moment/mt.js +52 -46
  110. data/vendor/assets/javascripts/moment/my.js +83 -78
  111. data/vendor/assets/javascripts/moment/nb.js +55 -48
  112. data/vendor/assets/javascripts/moment/ne.js +116 -108
  113. data/vendor/assets/javascripts/moment/nl-be.js +93 -69
  114. data/vendor/assets/javascripts/moment/nl.js +95 -69
  115. data/vendor/assets/javascripts/moment/nn.js +56 -47
  116. data/vendor/assets/javascripts/moment/oc-lnc.js +96 -0
  117. data/vendor/assets/javascripts/moment/pa-in.js +117 -109
  118. data/vendor/assets/javascripts/moment/pl.js +128 -104
  119. data/vendor/assets/javascripts/moment/pt-br.js +53 -46
  120. data/vendor/assets/javascripts/moment/pt.js +58 -50
  121. data/vendor/assets/javascripts/moment/ro.js +69 -59
  122. data/vendor/assets/javascripts/moment/ru.js +194 -155
  123. data/vendor/assets/javascripts/moment/sd.js +76 -83
  124. data/vendor/assets/javascripts/moment/se.js +53 -47
  125. data/vendor/assets/javascripts/moment/si.js +65 -57
  126. data/vendor/assets/javascripts/moment/sk.js +136 -138
  127. data/vendor/assets/javascripts/moment/sl.js +162 -154
  128. data/vendor/assets/javascripts/moment/sq.js +59 -54
  129. data/vendor/assets/javascripts/moment/sr-cyrl.js +119 -93
  130. data/vendor/assets/javascripts/moment/sr.js +121 -93
  131. data/vendor/assets/javascripts/moment/ss.js +79 -74
  132. data/vendor/assets/javascripts/moment/sv.js +64 -55
  133. data/vendor/assets/javascripts/moment/sw.js +51 -45
  134. data/vendor/assets/javascripts/moment/ta.js +126 -115
  135. data/vendor/assets/javascripts/moment/te.js +84 -75
  136. data/vendor/assets/javascripts/moment/tet.js +63 -53
  137. data/vendor/assets/javascripts/moment/tg.js +128 -0
  138. data/vendor/assets/javascripts/moment/th.js +61 -53
  139. data/vendor/assets/javascripts/moment/tk.js +102 -0
  140. data/vendor/assets/javascripts/moment/tl-ph.js +53 -48
  141. data/vendor/assets/javascripts/moment/tlh.js +113 -101
  142. data/vendor/assets/javascripts/moment/tr.js +100 -74
  143. data/vendor/assets/javascripts/moment/tzl.js +83 -76
  144. data/vendor/assets/javascripts/moment/tzm-latn.js +50 -44
  145. data/vendor/assets/javascripts/moment/tzm.js +50 -44
  146. data/vendor/assets/javascripts/moment/ug-cn.js +122 -0
  147. data/vendor/assets/javascripts/moment/uk.js +155 -130
  148. data/vendor/assets/javascripts/moment/ur.js +76 -83
  149. data/vendor/assets/javascripts/moment/uz-latn.js +50 -44
  150. data/vendor/assets/javascripts/moment/uz.js +47 -44
  151. data/vendor/assets/javascripts/moment/vi.js +76 -65
  152. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -54
  153. data/vendor/assets/javascripts/moment/yo.js +49 -46
  154. data/vendor/assets/javascripts/moment/zh-cn.js +115 -96
  155. data/vendor/assets/javascripts/moment/zh-hk.js +95 -89
  156. data/vendor/assets/javascripts/moment/zh-mo.js +111 -0
  157. data/vendor/assets/javascripts/moment/zh-tw.js +94 -89
  158. data/vendor/assets/javascripts/moment.js +5030 -3880
  159. metadata +64 -31
  160. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  161. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  162. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  163. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  164. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  165. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -9,101 +9,171 @@
9
9
  factory(global.moment)
10
10
  }(this, (function (moment) { 'use strict';
11
11
 
12
+ //! moment.js locale configuration
12
13
 
13
- function relativeTimeWithMutation(number, withoutSuffix, key) {
14
- var format = {
15
- 'mm': 'munutenn',
16
- 'MM': 'miz',
17
- 'dd': 'devezh'
18
- };
19
- return number + ' ' + mutation(format[key], number);
20
- }
21
- function specialMutationForYears(number) {
22
- switch (lastNumber(number)) {
23
- case 1:
24
- case 3:
25
- case 4:
26
- case 5:
27
- case 9:
28
- return number + ' bloaz';
29
- default:
30
- return number + ' vloaz';
14
+ function relativeTimeWithMutation(number, withoutSuffix, key) {
15
+ var format = {
16
+ mm: 'munutenn',
17
+ MM: 'miz',
18
+ dd: 'devezh',
19
+ };
20
+ return number + ' ' + mutation(format[key], number);
31
21
  }
32
- }
33
- function lastNumber(number) {
34
- if (number > 9) {
35
- return lastNumber(number % 10);
22
+ function specialMutationForYears(number) {
23
+ switch (lastNumber(number)) {
24
+ case 1:
25
+ case 3:
26
+ case 4:
27
+ case 5:
28
+ case 9:
29
+ return number + ' bloaz';
30
+ default:
31
+ return number + ' vloaz';
32
+ }
36
33
  }
37
- return number;
38
- }
39
- function mutation(text, number) {
40
- if (number === 2) {
41
- return softMutation(text);
34
+ function lastNumber(number) {
35
+ if (number > 9) {
36
+ return lastNumber(number % 10);
37
+ }
38
+ return number;
42
39
  }
43
- return text;
44
- }
45
- function softMutation(text) {
46
- var mutationTable = {
47
- 'm': 'v',
48
- 'b': 'v',
49
- 'd': 'z'
50
- };
51
- if (mutationTable[text.charAt(0)] === undefined) {
40
+ function mutation(text, number) {
41
+ if (number === 2) {
42
+ return softMutation(text);
43
+ }
52
44
  return text;
53
45
  }
54
- return mutationTable[text.charAt(0)] + text.substring(1);
55
- }
56
-
57
- var br = moment.defineLocale('br', {
58
- months : 'Genver_C\'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split('_'),
59
- monthsShort : 'Gen_C\'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
60
- weekdays : 'Sul_Lun_Meurzh_Merc\'her_Yaou_Gwener_Sadorn'.split('_'),
61
- weekdaysShort : 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
62
- weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
63
- weekdaysParseExact : true,
64
- longDateFormat : {
65
- LT : 'h[e]mm A',
66
- LTS : 'h[e]mm:ss A',
67
- L : 'DD/MM/YYYY',
68
- LL : 'D [a viz] MMMM YYYY',
69
- LLL : 'D [a viz] MMMM YYYY h[e]mm A',
70
- LLLL : 'dddd, D [a viz] MMMM YYYY h[e]mm A'
71
- },
72
- calendar : {
73
- sameDay : '[Hiziv da] LT',
74
- nextDay : '[Warc\'hoazh da] LT',
75
- nextWeek : 'dddd [da] LT',
76
- lastDay : '[Dec\'h da] LT',
77
- lastWeek : 'dddd [paset da] LT',
78
- sameElse : 'L'
79
- },
80
- relativeTime : {
81
- future : 'a-benn %s',
82
- past : '%s \'zo',
83
- s : 'un nebeud segondennoù',
84
- ss : '%d eilenn',
85
- m : 'ur vunutenn',
86
- mm : relativeTimeWithMutation,
87
- h : 'un eur',
88
- hh : '%d eur',
89
- d : 'un devezh',
90
- dd : relativeTimeWithMutation,
91
- M : 'ur miz',
92
- MM : relativeTimeWithMutation,
93
- y : 'ur bloaz',
94
- yy : specialMutationForYears
95
- },
96
- dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
97
- ordinal : function (number) {
98
- var output = (number === 1) ? 'añ' : 'vet';
99
- return number + output;
100
- },
101
- week : {
102
- dow : 1, // Monday is the first day of the week.
103
- doy : 4 // The week that contains Jan 4th is the first week of the year.
46
+ function softMutation(text) {
47
+ var mutationTable = {
48
+ m: 'v',
49
+ b: 'v',
50
+ d: 'z',
51
+ };
52
+ if (mutationTable[text.charAt(0)] === undefined) {
53
+ return text;
54
+ }
55
+ return mutationTable[text.charAt(0)] + text.substring(1);
104
56
  }
105
- });
106
57
 
107
- return br;
58
+ var monthsParse = [
59
+ /^gen/i,
60
+ /^c[ʼ\']hwe/i,
61
+ /^meu/i,
62
+ /^ebr/i,
63
+ /^mae/i,
64
+ /^(mez|eve)/i,
65
+ /^gou/i,
66
+ /^eos/i,
67
+ /^gwe/i,
68
+ /^her/i,
69
+ /^du/i,
70
+ /^ker/i,
71
+ ],
72
+ monthsRegex =
73
+ /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
74
+ monthsStrictRegex =
75
+ /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
76
+ monthsShortStrictRegex =
77
+ /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
78
+ fullWeekdaysParse = [
79
+ /^sul/i,
80
+ /^lun/i,
81
+ /^meurzh/i,
82
+ /^merc[ʼ\']her/i,
83
+ /^yaou/i,
84
+ /^gwener/i,
85
+ /^sadorn/i,
86
+ ],
87
+ shortWeekdaysParse = [
88
+ /^Sul/i,
89
+ /^Lun/i,
90
+ /^Meu/i,
91
+ /^Mer/i,
92
+ /^Yao/i,
93
+ /^Gwe/i,
94
+ /^Sad/i,
95
+ ],
96
+ minWeekdaysParse = [
97
+ /^Su/i,
98
+ /^Lu/i,
99
+ /^Me([^r]|$)/i,
100
+ /^Mer/i,
101
+ /^Ya/i,
102
+ /^Gw/i,
103
+ /^Sa/i,
104
+ ];
105
+
106
+ var br = moment.defineLocale('br', {
107
+ months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
108
+ '_'
109
+ ),
110
+ monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
111
+ weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
112
+ weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
113
+ weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
114
+ weekdaysParse: minWeekdaysParse,
115
+ fullWeekdaysParse: fullWeekdaysParse,
116
+ shortWeekdaysParse: shortWeekdaysParse,
117
+ minWeekdaysParse: minWeekdaysParse,
118
+
119
+ monthsRegex: monthsRegex,
120
+ monthsShortRegex: monthsRegex,
121
+ monthsStrictRegex: monthsStrictRegex,
122
+ monthsShortStrictRegex: monthsShortStrictRegex,
123
+ monthsParse: monthsParse,
124
+ longMonthsParse: monthsParse,
125
+ shortMonthsParse: monthsParse,
126
+
127
+ longDateFormat: {
128
+ LT: 'HH:mm',
129
+ LTS: 'HH:mm:ss',
130
+ L: 'DD/MM/YYYY',
131
+ LL: 'D [a viz] MMMM YYYY',
132
+ LLL: 'D [a viz] MMMM YYYY HH:mm',
133
+ LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
134
+ },
135
+ calendar: {
136
+ sameDay: '[Hiziv da] LT',
137
+ nextDay: '[Warcʼhoazh da] LT',
138
+ nextWeek: 'dddd [da] LT',
139
+ lastDay: '[Decʼh da] LT',
140
+ lastWeek: 'dddd [paset da] LT',
141
+ sameElse: 'L',
142
+ },
143
+ relativeTime: {
144
+ future: 'a-benn %s',
145
+ past: '%s ʼzo',
146
+ s: 'un nebeud segondennoù',
147
+ ss: '%d eilenn',
148
+ m: 'ur vunutenn',
149
+ mm: relativeTimeWithMutation,
150
+ h: 'un eur',
151
+ hh: '%d eur',
152
+ d: 'un devezh',
153
+ dd: relativeTimeWithMutation,
154
+ M: 'ur miz',
155
+ MM: relativeTimeWithMutation,
156
+ y: 'ur bloaz',
157
+ yy: specialMutationForYears,
158
+ },
159
+ dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
160
+ ordinal: function (number) {
161
+ var output = number === 1 ? 'añ' : 'vet';
162
+ return number + output;
163
+ },
164
+ week: {
165
+ dow: 1, // Monday is the first day of the week.
166
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
167
+ },
168
+ meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
169
+ isPM: function (token) {
170
+ return token === 'g.m.';
171
+ },
172
+ meridiem: function (hour, minute, isLower) {
173
+ return hour < 12 ? 'a.m.' : 'g.m.';
174
+ },
175
+ });
176
+
177
+ return br;
108
178
 
109
179
  })));
@@ -10,144 +10,152 @@
10
10
  factory(global.moment)
11
11
  }(this, (function (moment) { 'use strict';
12
12
 
13
+ //! moment.js locale configuration
13
14
 
14
- function translate(number, withoutSuffix, key) {
15
- var result = number + ' ';
16
- switch (key) {
17
- case 'ss':
18
- if (number === 1) {
19
- result += 'sekunda';
20
- } else if (number === 2 || number === 3 || number === 4) {
21
- result += 'sekunde';
22
- } else {
23
- result += 'sekundi';
24
- }
25
- return result;
26
- case 'm':
27
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
28
- case 'mm':
29
- if (number === 1) {
30
- result += 'minuta';
31
- } else if (number === 2 || number === 3 || number === 4) {
32
- result += 'minute';
33
- } else {
34
- result += 'minuta';
35
- }
36
- return result;
37
- case 'h':
38
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
39
- case 'hh':
40
- if (number === 1) {
41
- result += 'sat';
42
- } else if (number === 2 || number === 3 || number === 4) {
43
- result += 'sata';
44
- } else {
45
- result += 'sati';
46
- }
47
- return result;
48
- case 'dd':
49
- if (number === 1) {
50
- result += 'dan';
51
- } else {
52
- result += 'dana';
53
- }
54
- return result;
55
- case 'MM':
56
- if (number === 1) {
57
- result += 'mjesec';
58
- } else if (number === 2 || number === 3 || number === 4) {
59
- result += 'mjeseca';
60
- } else {
61
- result += 'mjeseci';
62
- }
63
- return result;
64
- case 'yy':
65
- if (number === 1) {
66
- result += 'godina';
67
- } else if (number === 2 || number === 3 || number === 4) {
68
- result += 'godine';
69
- } else {
70
- result += 'godina';
71
- }
72
- return result;
15
+ function translate(number, withoutSuffix, key) {
16
+ var result = number + ' ';
17
+ switch (key) {
18
+ case 'ss':
19
+ if (number === 1) {
20
+ result += 'sekunda';
21
+ } else if (number === 2 || number === 3 || number === 4) {
22
+ result += 'sekunde';
23
+ } else {
24
+ result += 'sekundi';
25
+ }
26
+ return result;
27
+ case 'm':
28
+ return withoutSuffix ? 'jedna minuta' : 'jedne minute';
29
+ case 'mm':
30
+ if (number === 1) {
31
+ result += 'minuta';
32
+ } else if (number === 2 || number === 3 || number === 4) {
33
+ result += 'minute';
34
+ } else {
35
+ result += 'minuta';
36
+ }
37
+ return result;
38
+ case 'h':
39
+ return withoutSuffix ? 'jedan sat' : 'jednog sata';
40
+ case 'hh':
41
+ if (number === 1) {
42
+ result += 'sat';
43
+ } else if (number === 2 || number === 3 || number === 4) {
44
+ result += 'sata';
45
+ } else {
46
+ result += 'sati';
47
+ }
48
+ return result;
49
+ case 'dd':
50
+ if (number === 1) {
51
+ result += 'dan';
52
+ } else {
53
+ result += 'dana';
54
+ }
55
+ return result;
56
+ case 'MM':
57
+ if (number === 1) {
58
+ result += 'mjesec';
59
+ } else if (number === 2 || number === 3 || number === 4) {
60
+ result += 'mjeseca';
61
+ } else {
62
+ result += 'mjeseci';
63
+ }
64
+ return result;
65
+ case 'yy':
66
+ if (number === 1) {
67
+ result += 'godina';
68
+ } else if (number === 2 || number === 3 || number === 4) {
69
+ result += 'godine';
70
+ } else {
71
+ result += 'godina';
72
+ }
73
+ return result;
74
+ }
73
75
  }
74
- }
75
76
 
76
- var bs = moment.defineLocale('bs', {
77
- months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
78
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
79
- monthsParseExact: true,
80
- weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
81
- weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
82
- weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
83
- weekdaysParseExact : true,
84
- longDateFormat : {
85
- LT : 'H:mm',
86
- LTS : 'H:mm:ss',
87
- L : 'DD.MM.YYYY',
88
- LL : 'D. MMMM YYYY',
89
- LLL : 'D. MMMM YYYY H:mm',
90
- LLLL : 'dddd, D. MMMM YYYY H:mm'
91
- },
92
- calendar : {
93
- sameDay : '[danas u] LT',
94
- nextDay : '[sutra u] LT',
95
- nextWeek : function () {
96
- switch (this.day()) {
97
- case 0:
98
- return '[u] [nedjelju] [u] LT';
99
- case 3:
100
- return '[u] [srijedu] [u] LT';
101
- case 6:
102
- return '[u] [subotu] [u] LT';
103
- case 1:
104
- case 2:
105
- case 4:
106
- case 5:
107
- return '[u] dddd [u] LT';
108
- }
77
+ var bs = moment.defineLocale('bs', {
78
+ months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
79
+ '_'
80
+ ),
81
+ monthsShort:
82
+ 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
83
+ '_'
84
+ ),
85
+ monthsParseExact: true,
86
+ weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
87
+ '_'
88
+ ),
89
+ weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
90
+ weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
91
+ weekdaysParseExact: true,
92
+ longDateFormat: {
93
+ LT: 'H:mm',
94
+ LTS: 'H:mm:ss',
95
+ L: 'DD.MM.YYYY',
96
+ LL: 'D. MMMM YYYY',
97
+ LLL: 'D. MMMM YYYY H:mm',
98
+ LLLL: 'dddd, D. MMMM YYYY H:mm',
109
99
  },
110
- lastDay : '[jučer u] LT',
111
- lastWeek : function () {
112
- switch (this.day()) {
113
- case 0:
114
- case 3:
115
- return '[prošlu] dddd [u] LT';
116
- case 6:
117
- return '[prošle] [subote] [u] LT';
118
- case 1:
119
- case 2:
120
- case 4:
121
- case 5:
122
- return '[prošli] dddd [u] LT';
123
- }
100
+ calendar: {
101
+ sameDay: '[danas u] LT',
102
+ nextDay: '[sutra u] LT',
103
+ nextWeek: function () {
104
+ switch (this.day()) {
105
+ case 0:
106
+ return '[u] [nedjelju] [u] LT';
107
+ case 3:
108
+ return '[u] [srijedu] [u] LT';
109
+ case 6:
110
+ return '[u] [subotu] [u] LT';
111
+ case 1:
112
+ case 2:
113
+ case 4:
114
+ case 5:
115
+ return '[u] dddd [u] LT';
116
+ }
117
+ },
118
+ lastDay: '[jučer u] LT',
119
+ lastWeek: function () {
120
+ switch (this.day()) {
121
+ case 0:
122
+ case 3:
123
+ return '[prošlu] dddd [u] LT';
124
+ case 6:
125
+ return '[prošle] [subote] [u] LT';
126
+ case 1:
127
+ case 2:
128
+ case 4:
129
+ case 5:
130
+ return '[prošli] dddd [u] LT';
131
+ }
132
+ },
133
+ sameElse: 'L',
124
134
  },
125
- sameElse : 'L'
126
- },
127
- relativeTime : {
128
- future : 'za %s',
129
- past : 'prije %s',
130
- s : 'par sekundi',
131
- ss : translate,
132
- m : translate,
133
- mm : translate,
134
- h : translate,
135
- hh : translate,
136
- d : 'dan',
137
- dd : translate,
138
- M : 'mjesec',
139
- MM : translate,
140
- y : 'godinu',
141
- yy : translate
142
- },
143
- dayOfMonthOrdinalParse: /\d{1,2}\./,
144
- ordinal : '%d.',
145
- week : {
146
- dow : 1, // Monday is the first day of the week.
147
- doy : 7 // The week that contains Jan 1st is the first week of the year.
148
- }
149
- });
135
+ relativeTime: {
136
+ future: 'za %s',
137
+ past: 'prije %s',
138
+ s: 'par sekundi',
139
+ ss: translate,
140
+ m: translate,
141
+ mm: translate,
142
+ h: translate,
143
+ hh: translate,
144
+ d: 'dan',
145
+ dd: translate,
146
+ M: 'mjesec',
147
+ MM: translate,
148
+ y: 'godinu',
149
+ yy: translate,
150
+ },
151
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
152
+ ordinal: '%d.',
153
+ week: {
154
+ dow: 1, // Monday is the first day of the week.
155
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
156
+ },
157
+ });
150
158
 
151
- return bs;
159
+ return bs;
152
160
 
153
161
  })));