momentjs-rails 2.8.3 → 2.8.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/news.md +14 -11
  4. data/test/dummy/log/test.log +45 -12
  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/{DF2/E30/sprockets%2F655dba52b71aafead92214b8d4f15dfb → D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417} +0 -0
  8. data/test/dummy/tmp/cache/assets/{D46/140/sprockets%2F547811dd40877ace277331ae79ec4efa → D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe} +0 -0
  9. data/test/dummy/tmp/cache/assets/{D70/7B0/sprockets%2F28ee037740c82f4b2d895db4fb4a27cc → 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 +3 -3
  12. data/vendor/assets/javascripts/moment.js +114 -34
  13. data/vendor/assets/javascripts/moment/af.js +3 -1
  14. data/vendor/assets/javascripts/moment/ar-ma.js +2 -1
  15. data/vendor/assets/javascripts/moment/ar-sa.js +3 -2
  16. data/vendor/assets/javascripts/moment/ar.js +3 -2
  17. data/vendor/assets/javascripts/moment/az.js +3 -1
  18. data/vendor/assets/javascripts/moment/be.js +3 -1
  19. data/vendor/assets/javascripts/moment/bg.js +3 -1
  20. data/vendor/assets/javascripts/moment/bn.js +2 -1
  21. data/vendor/assets/javascripts/moment/bo.js +2 -1
  22. data/vendor/assets/javascripts/moment/br.js +3 -1
  23. data/vendor/assets/javascripts/moment/bs.js +5 -3
  24. data/vendor/assets/javascripts/moment/ca.js +13 -2
  25. data/vendor/assets/javascripts/moment/cs.js +4 -2
  26. data/vendor/assets/javascripts/moment/cv.js +3 -1
  27. data/vendor/assets/javascripts/moment/cy.js +3 -1
  28. data/vendor/assets/javascripts/moment/da.js +3 -1
  29. data/vendor/assets/javascripts/moment/de-at.js +9 -7
  30. data/vendor/assets/javascripts/moment/de.js +9 -7
  31. data/vendor/assets/javascripts/moment/el.js +5 -5
  32. data/vendor/assets/javascripts/moment/en-au.js +3 -1
  33. data/vendor/assets/javascripts/moment/en-ca.js +3 -1
  34. data/vendor/assets/javascripts/moment/en-gb.js +3 -1
  35. data/vendor/assets/javascripts/moment/eo.js +3 -1
  36. data/vendor/assets/javascripts/moment/es.js +3 -1
  37. data/vendor/assets/javascripts/moment/et.js +3 -1
  38. data/vendor/assets/javascripts/moment/eu.js +3 -1
  39. data/vendor/assets/javascripts/moment/fa.js +3 -1
  40. data/vendor/assets/javascripts/moment/fi.js +3 -1
  41. data/vendor/assets/javascripts/moment/fo.js +3 -1
  42. data/vendor/assets/javascripts/moment/fr-ca.js +3 -1
  43. data/vendor/assets/javascripts/moment/fr.js +3 -1
  44. data/vendor/assets/javascripts/moment/gl.js +3 -1
  45. data/vendor/assets/javascripts/moment/he.js +2 -1
  46. data/vendor/assets/javascripts/moment/hi.js +2 -1
  47. data/vendor/assets/javascripts/moment/hr.js +3 -1
  48. data/vendor/assets/javascripts/moment/hu.js +3 -1
  49. data/vendor/assets/javascripts/moment/hy-am.js +3 -1
  50. data/vendor/assets/javascripts/moment/id.js +2 -1
  51. data/vendor/assets/javascripts/moment/is.js +3 -1
  52. data/vendor/assets/javascripts/moment/it.js +11 -2
  53. data/vendor/assets/javascripts/moment/ja.js +2 -1
  54. data/vendor/assets/javascripts/moment/ka.js +3 -1
  55. data/vendor/assets/javascripts/moment/km.js +2 -1
  56. data/vendor/assets/javascripts/moment/ko.js +3 -1
  57. data/vendor/assets/javascripts/moment/lb.js +3 -1
  58. data/vendor/assets/javascripts/moment/lt.js +3 -1
  59. data/vendor/assets/javascripts/moment/lv.js +3 -1
  60. data/vendor/assets/javascripts/moment/mk.js +3 -1
  61. data/vendor/assets/javascripts/moment/ml.js +2 -1
  62. data/vendor/assets/javascripts/moment/mr.js +2 -1
  63. data/vendor/assets/javascripts/moment/ms-my.js +2 -1
  64. data/vendor/assets/javascripts/moment/my.js +2 -1
  65. data/vendor/assets/javascripts/moment/nb.js +3 -1
  66. data/vendor/assets/javascripts/moment/ne.js +2 -1
  67. data/vendor/assets/javascripts/moment/nl.js +3 -1
  68. data/vendor/assets/javascripts/moment/nn.js +3 -1
  69. data/vendor/assets/javascripts/moment/pl.js +3 -1
  70. data/vendor/assets/javascripts/moment/pt-br.js +3 -1
  71. data/vendor/assets/javascripts/moment/pt.js +3 -1
  72. data/vendor/assets/javascripts/moment/ro.js +2 -1
  73. data/vendor/assets/javascripts/moment/ru.js +25 -15
  74. data/vendor/assets/javascripts/moment/sk.js +3 -1
  75. data/vendor/assets/javascripts/moment/sl.js +3 -1
  76. data/vendor/assets/javascripts/moment/sq.js +3 -1
  77. data/vendor/assets/javascripts/moment/sr-cyrl.js +3 -1
  78. data/vendor/assets/javascripts/moment/sr.js +3 -1
  79. data/vendor/assets/javascripts/moment/sv.js +3 -1
  80. data/vendor/assets/javascripts/moment/ta.js +3 -1
  81. data/vendor/assets/javascripts/moment/th.js +2 -1
  82. data/vendor/assets/javascripts/moment/tl-ph.js +3 -1
  83. data/vendor/assets/javascripts/moment/tr.js +3 -1
  84. data/vendor/assets/javascripts/moment/tzm-latn.js +2 -1
  85. data/vendor/assets/javascripts/moment/tzm.js +2 -1
  86. data/vendor/assets/javascripts/moment/uk.js +3 -1
  87. data/vendor/assets/javascripts/moment/uz.js +2 -1
  88. data/vendor/assets/javascripts/moment/vi.js +3 -1
  89. data/vendor/assets/javascripts/moment/zh-cn.js +3 -1
  90. data/vendor/assets/javascripts/moment/zh-tw.js +3 -1
  91. metadata +15 -19
  92. data/test/dummy/tmp/cache/assets/C4B/F20/sprockets%2F2a0b419661537b349a21d41ba3988990 +0 -0
  93. data/test/dummy/tmp/cache/assets/D4E/220/sprockets%2F8f4a628d82d9413ed7c75e8b373c9ab2 +0 -0
  94. data/test/dummy/tmp/cache/assets/E2B/3C0/sprockets%2Fd3a4fe71f7e32ca82bfabb6d7ef41f34 +0 -0
  95. data/vendor/assets/javascripts/moment/rs.js +0 -139
  96. data/vendor/assets/javascripts/moment/sr-cyr.js +0 -106
  97. data/vendor/assets/javascripts/moment/tzm-la.js +0 -55
  98. data/vendor/assets/javascripts/moment/vn.js +0 -62
@@ -8,7 +8,7 @@
8
8
  } else if (typeof exports === 'object') {
9
9
  module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
- factory(window.moment); // Browser global
11
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('tzm', {
@@ -19,6 +19,7 @@
19
19
  weekdaysMin : 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'),
20
20
  longDateFormat : {
21
21
  LT : 'HH:mm',
22
+ LTS: 'LT:ss',
22
23
  L : 'DD/MM/YYYY',
23
24
  LL : 'D MMMM YYYY',
24
25
  LLL : 'D MMMM YYYY LT',
@@ -9,7 +9,7 @@
9
9
  } else if (typeof exports === 'object') {
10
10
  module.exports = factory(require('../moment')); // Node
11
11
  } else {
12
- factory(window.moment); // Browser global
12
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13
13
  }
14
14
  }(function (moment) {
15
15
  function plural(word, num) {
@@ -79,6 +79,7 @@
79
79
  weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
80
80
  longDateFormat : {
81
81
  LT : 'HH:mm',
82
+ LTS : 'LT:ss',
82
83
  L : 'DD.MM.YYYY',
83
84
  LL : 'D MMMM YYYY р.',
84
85
  LLL : 'D MMMM YYYY р., LT',
@@ -134,6 +135,7 @@
134
135
  }
135
136
  },
136
137
 
138
+ ordinalParse: /\d{1,2}-(й|го)/,
137
139
  ordinal: function (number, period) {
138
140
  switch (period) {
139
141
  case 'M':
@@ -8,7 +8,7 @@
8
8
  } else if (typeof exports === 'object') {
9
9
  module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
- factory(window.moment); // Browser global
11
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('uz', {
@@ -19,6 +19,7 @@
19
19
  weekdaysMin : 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'),
20
20
  longDateFormat : {
21
21
  LT : 'HH:mm',
22
+ LTS : 'LT:ss',
22
23
  L : 'DD/MM/YYYY',
23
24
  LL : 'D MMMM YYYY',
24
25
  LLL : 'D MMMM YYYY LT',
@@ -8,7 +8,7 @@
8
8
  } else if (typeof exports === 'object') {
9
9
  module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
- factory(window.moment); // Browser global
11
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('vi', {
@@ -19,6 +19,7 @@
19
19
  weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20
20
  longDateFormat : {
21
21
  LT : 'HH:mm',
22
+ LTS : 'LT:ss',
22
23
  L : 'DD/MM/YYYY',
23
24
  LL : 'D MMMM [năm] YYYY',
24
25
  LLL : 'D MMMM [năm] YYYY LT',
@@ -51,6 +52,7 @@
51
52
  y : 'một năm',
52
53
  yy : '%d năm'
53
54
  },
55
+ ordinalParse: /\d{1,2}/,
54
56
  ordinal : function (number) {
55
57
  return number;
56
58
  },
@@ -9,7 +9,7 @@
9
9
  } else if (typeof exports === 'object') {
10
10
  module.exports = factory(require('../moment')); // Node
11
11
  } else {
12
- factory(window.moment); // Browser global
12
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13
13
  }
14
14
  }(function (moment) {
15
15
  return moment.defineLocale('zh-cn', {
@@ -20,6 +20,7 @@
20
20
  weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
21
21
  longDateFormat : {
22
22
  LT : 'Ah点mm',
23
+ LTS : 'Ah点m分s秒',
23
24
  L : 'YYYY-MM-DD',
24
25
  LL : 'YYYY年MMMD日',
25
26
  LLL : 'YYYY年MMMD日LT',
@@ -69,6 +70,7 @@
69
70
  },
70
71
  sameElse : 'LL'
71
72
  },
73
+ ordinalParse: /\d{1,2}(日|月|周)/,
72
74
  ordinal : function (number, period) {
73
75
  switch (period) {
74
76
  case 'd':
@@ -8,7 +8,7 @@
8
8
  } else if (typeof exports === 'object') {
9
9
  module.exports = factory(require('../moment')); // Node
10
10
  } else {
11
- factory(window.moment); // Browser global
11
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
12
  }
13
13
  }(function (moment) {
14
14
  return moment.defineLocale('zh-tw', {
@@ -19,6 +19,7 @@
19
19
  weekdaysMin : '日_一_二_三_四_五_六'.split('_'),
20
20
  longDateFormat : {
21
21
  LT : 'Ah點mm',
22
+ LTS : 'Ah點m分s秒',
22
23
  L : 'YYYY年MMMD日',
23
24
  LL : 'YYYY年MMMD日',
24
25
  LLL : 'YYYY年MMMD日LT',
@@ -50,6 +51,7 @@
50
51
  lastWeek : '[上]ddddLT',
51
52
  sameElse : 'L'
52
53
  },
54
+ ordinalParse: /\d{1,2}(日|月|週)/,
53
55
  ordinal : function (number, period) {
54
56
  switch (period) {
55
57
  case 'd' :
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: momentjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.3
4
+ version: 2.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Prior
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-11 00:00:00.000000000 Z
11
+ date: 2015-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -67,12 +67,12 @@ files:
67
67
  - test/dummy/config/locales/en.yml
68
68
  - test/dummy/config/routes.rb
69
69
  - test/dummy/log/test.log
70
- - test/dummy/tmp/cache/assets/C4B/F20/sprockets%2F2a0b419661537b349a21d41ba3988990
71
- - test/dummy/tmp/cache/assets/D46/140/sprockets%2F547811dd40877ace277331ae79ec4efa
72
- - test/dummy/tmp/cache/assets/D4E/220/sprockets%2F8f4a628d82d9413ed7c75e8b373c9ab2
73
- - test/dummy/tmp/cache/assets/D70/7B0/sprockets%2F28ee037740c82f4b2d895db4fb4a27cc
74
- - test/dummy/tmp/cache/assets/DF2/E30/sprockets%2F655dba52b71aafead92214b8d4f15dfb
75
- - test/dummy/tmp/cache/assets/E2B/3C0/sprockets%2Fd3a4fe71f7e32ca82bfabb6d7ef41f34
70
+ - test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2
71
+ - test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58
72
+ - test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417
73
+ - test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe
74
+ - test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee
75
+ - test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61
76
76
  - test/integration/navigation_test.rb
77
77
  - test/momentjs-rails_test.rb
78
78
  - test/test_helper.rb
@@ -137,12 +137,10 @@ files:
137
137
  - vendor/assets/javascripts/moment/pt-br.js
138
138
  - vendor/assets/javascripts/moment/pt.js
139
139
  - vendor/assets/javascripts/moment/ro.js
140
- - vendor/assets/javascripts/moment/rs.js
141
140
  - vendor/assets/javascripts/moment/ru.js
142
141
  - vendor/assets/javascripts/moment/sk.js
143
142
  - vendor/assets/javascripts/moment/sl.js
144
143
  - vendor/assets/javascripts/moment/sq.js
145
- - vendor/assets/javascripts/moment/sr-cyr.js
146
144
  - vendor/assets/javascripts/moment/sr-cyrl.js
147
145
  - vendor/assets/javascripts/moment/sr.js
148
146
  - vendor/assets/javascripts/moment/sv.js
@@ -150,13 +148,11 @@ files:
150
148
  - vendor/assets/javascripts/moment/th.js
151
149
  - vendor/assets/javascripts/moment/tl-ph.js
152
150
  - vendor/assets/javascripts/moment/tr.js
153
- - vendor/assets/javascripts/moment/tzm-la.js
154
151
  - vendor/assets/javascripts/moment/tzm-latn.js
155
152
  - vendor/assets/javascripts/moment/tzm.js
156
153
  - vendor/assets/javascripts/moment/uk.js
157
154
  - vendor/assets/javascripts/moment/uz.js
158
155
  - vendor/assets/javascripts/moment/vi.js
159
- - vendor/assets/javascripts/moment/vn.js
160
156
  - vendor/assets/javascripts/moment/zh-cn.js
161
157
  - vendor/assets/javascripts/moment/zh-tw.js
162
158
  homepage: https://github.com/derekprior/momentjs-rails
@@ -179,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
175
  version: '0'
180
176
  requirements: []
181
177
  rubyforge_project:
182
- rubygems_version: 2.4.1
178
+ rubygems_version: 2.2.2
183
179
  signing_key:
184
180
  specification_version: 4
185
181
  summary: The Moment.js JavaScript library ready to play with Rails.
@@ -201,12 +197,12 @@ test_files:
201
197
  - test/dummy/config.ru
202
198
  - test/dummy/log/test.log
203
199
  - test/dummy/Rakefile
204
- - test/dummy/tmp/cache/assets/C4B/F20/sprockets%2F2a0b419661537b349a21d41ba3988990
205
- - test/dummy/tmp/cache/assets/D46/140/sprockets%2F547811dd40877ace277331ae79ec4efa
206
- - test/dummy/tmp/cache/assets/D4E/220/sprockets%2F8f4a628d82d9413ed7c75e8b373c9ab2
207
- - test/dummy/tmp/cache/assets/D70/7B0/sprockets%2F28ee037740c82f4b2d895db4fb4a27cc
208
- - test/dummy/tmp/cache/assets/DF2/E30/sprockets%2F655dba52b71aafead92214b8d4f15dfb
209
- - test/dummy/tmp/cache/assets/E2B/3C0/sprockets%2Fd3a4fe71f7e32ca82bfabb6d7ef41f34
200
+ - test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2
201
+ - test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58
202
+ - test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417
203
+ - test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe
204
+ - test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee
205
+ - test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61
210
206
  - test/integration/navigation_test.rb
211
207
  - test/momentjs-rails_test.rb
212
208
  - test/test_helper.rb
@@ -1,139 +0,0 @@
1
- // moment.js language configuration
2
- // language : serbian (rs)
3
- // author : Limon Monte : https://github.com/limonte
4
- // based on (bs) translation by Nedim Cholich
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(window.moment); // Browser global
13
- }
14
- }(function (moment) {
15
-
16
- function translate(number, withoutSuffix, key) {
17
- var result = number + " ";
18
- switch (key) {
19
- case 'm':
20
- return withoutSuffix ? 'jedna minuta' : 'jedne minute';
21
- case 'mm':
22
- if (number === 1) {
23
- result += 'minuta';
24
- } else if (number === 2 || number === 3 || number === 4) {
25
- result += 'minute';
26
- } else {
27
- result += 'minuta';
28
- }
29
- return result;
30
- case 'h':
31
- return withoutSuffix ? 'jedan sat' : 'jednog sata';
32
- case 'hh':
33
- if (number === 1) {
34
- result += 'sat';
35
- } else if (number === 2 || number === 3 || number === 4) {
36
- result += 'sata';
37
- } else {
38
- result += 'sati';
39
- }
40
- return result;
41
- case 'dd':
42
- if (number === 1) {
43
- result += 'dan';
44
- } else {
45
- result += 'dana';
46
- }
47
- return result;
48
- case 'MM':
49
- if (number === 1) {
50
- result += 'mesec';
51
- } else if (number === 2 || number === 3 || number === 4) {
52
- result += 'meseca';
53
- } else {
54
- result += 'meseci';
55
- }
56
- return result;
57
- case 'yy':
58
- if (number === 1) {
59
- result += 'godina';
60
- } else if (number === 2 || number === 3 || number === 4) {
61
- result += 'godine';
62
- } else {
63
- result += 'godina';
64
- }
65
- return result;
66
- }
67
- }
68
-
69
- return moment.lang('rs', {
70
- months : "januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),
71
- monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),
72
- weekdays : "nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),
73
- weekdaysShort : "ned._pon._uto._sre._čet._pet._sub.".split("_"),
74
- weekdaysMin : "ne_po_ut_sr_če_pe_su".split("_"),
75
- longDateFormat : {
76
- LT : "H:mm",
77
- L : "DD. MM. YYYY",
78
- LL : "D. MMMM YYYY",
79
- LLL : "D. MMMM YYYY LT",
80
- LLLL : "dddd, D. MMMM YYYY LT"
81
- },
82
- calendar : {
83
- sameDay : '[danas u] LT',
84
- nextDay : '[sutra u] LT',
85
-
86
- nextWeek : function () {
87
- switch (this.day()) {
88
- case 0:
89
- return '[u] [nedelju] [u] LT';
90
- case 3:
91
- return '[u] [sredu] [u] LT';
92
- case 6:
93
- return '[u] [subotu] [u] LT';
94
- case 1:
95
- case 2:
96
- case 4:
97
- case 5:
98
- return '[u] dddd [u] LT';
99
- }
100
- },
101
- lastDay : '[juče u] LT',
102
- lastWeek : function () {
103
- switch (this.day()) {
104
- case 0:
105
- case 3:
106
- return '[prošlu] dddd [u] LT';
107
- case 6:
108
- return '[prošle] [subote] [u] LT';
109
- case 1:
110
- case 2:
111
- case 4:
112
- case 5:
113
- return '[prošli] dddd [u] LT';
114
- }
115
- },
116
- sameElse : 'L'
117
- },
118
- relativeTime : {
119
- future : "za %s",
120
- past : "pre %s",
121
- s : "par sekundi",
122
- m : translate,
123
- mm : translate,
124
- h : translate,
125
- hh : translate,
126
- d : "dan",
127
- dd : translate,
128
- M : "mesec",
129
- MM : translate,
130
- y : "godinu",
131
- yy : translate
132
- },
133
- ordinal : '%d.',
134
- week : {
135
- dow : 1, // Monday is the first day of the week.
136
- doy : 7 // The week that contains Jan 1st is the first week of the year.
137
- }
138
- });
139
- }));
@@ -1,106 +0,0 @@
1
- // moment.js language configuration
2
- // language : Serbian-cyrillic (sr-cyr)
3
- // author : Milan Janačković<milanjanackovic@gmail.com> : https://github.com/milan-j
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(window.moment); // Browser global
12
- }
13
- }(function (moment) {
14
-
15
- var translator = {
16
- words: { //Different grammatical cases
17
- m: ['један минут', 'једне минуте'],
18
- mm: ['минут', 'минуте', 'минута'],
19
- h: ['један сат', 'једног сата'],
20
- hh: ['сат', 'сата', 'сати'],
21
- dd: ['дан', 'дана', 'дана'],
22
- MM: ['месец', 'месеца', 'месеци'],
23
- yy: ['година', 'године', 'година']
24
- },
25
- correctGrammaticalCase: function (number, wordKey) {
26
- return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
27
- },
28
- translate: function (number, withoutSuffix, key) {
29
- var wordKey = translator.words[key];
30
- if (key.length === 1) {
31
- return withoutSuffix ? wordKey[0] : wordKey[1];
32
- } else {
33
- return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
34
- }
35
- }
36
- };
37
-
38
- return moment.lang('sr-cyr', {
39
- months: ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],
40
- monthsShort: ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],
41
- weekdays: ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],
42
- weekdaysShort: ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'],
43
- weekdaysMin: ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],
44
- longDateFormat: {
45
- LT: "H:mm",
46
- L: "DD. MM. YYYY",
47
- LL: "D. MMMM YYYY",
48
- LLL: "D. MMMM YYYY LT",
49
- LLLL: "dddd, D. MMMM YYYY LT"
50
- },
51
- calendar: {
52
- sameDay: '[данас у] LT',
53
- nextDay: '[сутра у] LT',
54
-
55
- nextWeek: function () {
56
- switch (this.day()) {
57
- case 0:
58
- return '[у] [недељу] [у] LT';
59
- case 3:
60
- return '[у] [среду] [у] LT';
61
- case 6:
62
- return '[у] [суботу] [у] LT';
63
- case 1:
64
- case 2:
65
- case 4:
66
- case 5:
67
- return '[у] dddd [у] LT';
68
- }
69
- },
70
- lastDay : '[јуче у] LT',
71
- lastWeek : function () {
72
- var lastWeekDays = [
73
- '[прошле] [недеље] [у] LT',
74
- '[прошлог] [понедељка] [у] LT',
75
- '[прошлог] [уторка] [у] LT',
76
- '[прошле] [среде] [у] LT',
77
- '[прошлог] [четвртка] [у] LT',
78
- '[прошлог] [петка] [у] LT',
79
- '[прошле] [суботе] [у] LT'
80
- ];
81
- return lastWeekDays[this.day()];
82
- },
83
- sameElse : 'L'
84
- },
85
- relativeTime : {
86
- future : "за %s",
87
- past : "пре %s",
88
- s : "неколико секунди",
89
- m : translator.translate,
90
- mm : translator.translate,
91
- h : translator.translate,
92
- hh : translator.translate,
93
- d : "дан",
94
- dd : translator.translate,
95
- M : "месец",
96
- MM : translator.translate,
97
- y : "годину",
98
- yy : translator.translate
99
- },
100
- ordinal : '%d.',
101
- week : {
102
- dow : 1, // Monday is the first day of the week.
103
- doy : 7 // The week that contains Jan 1st is the first week of the year.
104
- }
105
- });
106
- }));