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('af', {
@@ -26,6 +26,7 @@
26
26
  },
27
27
  longDateFormat : {
28
28
  LT : 'HH:mm',
29
+ LTS : 'LT:ss',
29
30
  L : 'DD/MM/YYYY',
30
31
  LL : 'D MMMM YYYY',
31
32
  LLL : 'D MMMM YYYY LT',
@@ -54,6 +55,7 @@
54
55
  y : '\'n jaar',
55
56
  yy : '%d jaar'
56
57
  },
58
+ ordinalParse: /\d{1,2}(ste|de)/,
57
59
  ordinal : function (number) {
58
60
  return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
59
61
  },
@@ -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('ar-ma', {
@@ -20,6 +20,7 @@
20
20
  weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
21
21
  longDateFormat : {
22
22
  LT : 'HH:mm',
23
+ LTS : 'LT:ss',
23
24
  L : 'DD/MM/YYYY',
24
25
  LL : 'D MMMM YYYY',
25
26
  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
  var symbolMap = {
@@ -43,6 +43,7 @@
43
43
  weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
44
44
  longDateFormat : {
45
45
  LT : 'HH:mm',
46
+ LTS : 'HH:mm:ss',
46
47
  L : 'DD/MM/YYYY',
47
48
  LL : 'D MMMM YYYY',
48
49
  LLL : 'D MMMM YYYY LT',
@@ -79,7 +80,7 @@
79
80
  yy : '%d سنوات'
80
81
  },
81
82
  preparse: function (string) {
82
- return string.replace(/[۰-۹]/g, function (match) {
83
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
83
84
  return numberMap[match];
84
85
  }).replace(/،/g, ',');
85
86
  },
@@ -10,7 +10,7 @@
10
10
  } else if (typeof exports === 'object') {
11
11
  module.exports = factory(require('../moment')); // Node
12
12
  } else {
13
- factory(window.moment); // Browser global
13
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14
14
  }
15
15
  }(function (moment) {
16
16
  var symbolMap = {
@@ -76,6 +76,7 @@
76
76
  weekdaysMin : 'ح_ن_ث_ر_خ_ج_س'.split('_'),
77
77
  longDateFormat : {
78
78
  LT : 'HH:mm',
79
+ LTS : 'HH:mm:ss',
79
80
  L : 'DD/MM/YYYY',
80
81
  LL : 'D MMMM YYYY',
81
82
  LLL : 'D MMMM YYYY LT',
@@ -112,7 +113,7 @@
112
113
  yy : pluralize('y')
113
114
  },
114
115
  preparse: function (string) {
115
- return string.replace(/[۰-۹]/g, function (match) {
116
+ return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
116
117
  return numberMap[match];
117
118
  }).replace(/،/g, ',');
118
119
  },
@@ -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
  var suffixes = {
@@ -44,6 +44,7 @@
44
44
  weekdaysMin : 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'),
45
45
  longDateFormat : {
46
46
  LT : 'HH:mm',
47
+ LTS : 'LT:ss',
47
48
  L : 'DD.MM.YYYY',
48
49
  LL : 'D MMMM YYYY',
49
50
  LLL : 'D MMMM YYYY LT',
@@ -83,6 +84,7 @@
83
84
  return 'axşam';
84
85
  }
85
86
  },
87
+ ordinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,
86
88
  ordinal : function (number) {
87
89
  if (number === 0) { // special case for zero
88
90
  return number + '-ıncı';
@@ -10,7 +10,7 @@
10
10
  } else if (typeof exports === 'object') {
11
11
  module.exports = factory(require('../moment')); // Node
12
12
  } else {
13
- factory(window.moment); // Browser global
13
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14
14
  }
15
15
  }(function (moment) {
16
16
  function plural(word, num) {
@@ -71,6 +71,7 @@
71
71
  weekdaysMin : 'нд_пн_ат_ср_чц_пт_сб'.split('_'),
72
72
  longDateFormat : {
73
73
  LT : 'HH:mm',
74
+ LTS : 'LT:ss',
74
75
  L : 'DD.MM.YYYY',
75
76
  LL : 'D MMMM YYYY г.',
76
77
  LLL : 'D MMMM YYYY г., LT',
@@ -127,6 +128,7 @@
127
128
  }
128
129
  },
129
130
 
131
+ ordinalParse: /\d{1,2}-(і|ы|га)/,
130
132
  ordinal: function (number, period) {
131
133
  switch (period) {
132
134
  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('bg', {
@@ -19,6 +19,7 @@
19
19
  weekdaysMin : 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
20
20
  longDateFormat : {
21
21
  LT : 'H:mm',
22
+ LTS : 'LT:ss',
22
23
  L : 'D.MM.YYYY',
23
24
  LL : 'D MMMM YYYY',
24
25
  LLL : 'D MMMM YYYY LT',
@@ -59,6 +60,7 @@
59
60
  y : 'година',
60
61
  yy : '%d години'
61
62
  },
63
+ ordinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
62
64
  ordinal : function (number) {
63
65
  var lastDigit = number % 10,
64
66
  last2Digits = number % 100;
@@ -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
  var symbolMap = {
@@ -44,6 +44,7 @@
44
44
  weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
45
45
  longDateFormat : {
46
46
  LT : 'A h:mm সময়',
47
+ LTS : 'A h:mm:ss সময়',
47
48
  L : 'DD/MM/YYYY',
48
49
  LL : 'D MMMM YYYY',
49
50
  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
  var symbolMap = {
@@ -44,6 +44,7 @@
44
44
  weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
45
45
  longDateFormat : {
46
46
  LT : 'A h:mm',
47
+ LTS : 'LT:ss',
47
48
  L : 'DD/MM/YYYY',
48
49
  LL : 'D MMMM YYYY',
49
50
  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
  function relativeTimeWithMutation(number, withoutSuffix, key) {
@@ -67,6 +67,7 @@
67
67
  weekdaysMin : 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
68
68
  longDateFormat : {
69
69
  LT : 'h[e]mm A',
70
+ LTS : 'h[e]mm:ss A',
70
71
  L : 'DD/MM/YYYY',
71
72
  LL : 'D [a viz] MMMM YYYY',
72
73
  LLL : 'D [a viz] MMMM YYYY LT',
@@ -95,6 +96,7 @@
95
96
  y : 'ur bloaz',
96
97
  yy : specialMutationForYears
97
98
  },
99
+ ordinalParse: /\d{1,2}(añ|vet)/,
98
100
  ordinal : function (number) {
99
101
  var output = (number === 1) ? 'añ' : 'vet';
100
102
  return number + output;
@@ -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 translate(number, withoutSuffix, key) {
@@ -66,13 +66,14 @@
66
66
  }
67
67
 
68
68
  return moment.defineLocale('bs', {
69
- months : 'januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar'.split('_'),
70
- monthsShort : 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),
69
+ months : 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split('_'),
70
+ monthsShort : 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split('_'),
71
71
  weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
72
72
  weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
73
73
  weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
74
74
  longDateFormat : {
75
75
  LT : 'H:mm',
76
+ LTS : 'LT:ss',
76
77
  L : 'DD. MM. YYYY',
77
78
  LL : 'D. MMMM YYYY',
78
79
  LLL : 'D. MMMM YYYY LT',
@@ -129,6 +130,7 @@
129
130
  y : 'godinu',
130
131
  yy : translate
131
132
  },
133
+ ordinalParse: /\d{1,2}\./,
132
134
  ordinal : '%d.',
133
135
  week : {
134
136
  dow : 1, // Monday is the first day of the week.
@@ -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('ca', {
@@ -19,6 +19,7 @@
19
19
  weekdaysMin : 'Dg_Dl_Dt_Dc_Dj_Dv_Ds'.split('_'),
20
20
  longDateFormat : {
21
21
  LT : 'H:mm',
22
+ LTS : 'LT:ss',
22
23
  L : 'DD/MM/YYYY',
23
24
  LL : 'D MMMM YYYY',
24
25
  LLL : 'D MMMM YYYY LT',
@@ -57,7 +58,17 @@
57
58
  y : 'un any',
58
59
  yy : '%d anys'
59
60
  },
60
- ordinal : '%dº',
61
+ ordinalParse: /\d{1,2}(r|n|t|è|a)/,
62
+ ordinal : function (number, period) {
63
+ var output = (number === 1) ? 'r' :
64
+ (number === 2) ? 'n' :
65
+ (number === 3) ? 'r' :
66
+ (number === 4) ? 't' : 'è';
67
+ if (period === 'w' || period === 'W') {
68
+ output = 'a';
69
+ }
70
+ return number + output;
71
+ },
61
72
  week : {
62
73
  dow : 1, // Monday is the first day of the week.
63
74
  doy : 4 // The week that contains Jan 4th is the first week of the year.
@@ -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
  var months = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split('_'),
@@ -87,7 +87,8 @@
87
87
  weekdaysMin : 'ne_po_út_st_čt_pá_so'.split('_'),
88
88
  longDateFormat : {
89
89
  LT: 'H:mm',
90
- L : 'DD. MM. YYYY',
90
+ LTS : 'LT:ss',
91
+ L : 'DD.MM.YYYY',
91
92
  LL : 'D. MMMM YYYY',
92
93
  LLL : 'D. MMMM YYYY LT',
93
94
  LLLL : 'dddd D. MMMM YYYY LT'
@@ -146,6 +147,7 @@
146
147
  y : translate,
147
148
  yy : translate
148
149
  },
150
+ ordinalParse : /\d{1,2}\./,
149
151
  ordinal : '%d.',
150
152
  week : {
151
153
  dow : 1, // Monday is the first day of the week.
@@ -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('cv', {
@@ -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 : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]',
24
25
  LLL : 'YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT',
@@ -50,6 +51,7 @@
50
51
  y : 'пĕр çул',
51
52
  yy : '%d çул'
52
53
  },
54
+ ordinalParse: /\d{1,2}-мĕш/,
53
55
  ordinal : '%d-мĕш',
54
56
  week : {
55
57
  dow : 1, // Monday is the first day of the week.
@@ -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('cy', {
@@ -20,6 +20,7 @@
20
20
  // time formats are the same as en-gb
21
21
  longDateFormat: {
22
22
  LT: 'HH:mm',
23
+ LTS : 'LT:ss',
23
24
  L: 'DD/MM/YYYY',
24
25
  LL: 'D MMMM YYYY',
25
26
  LLL: 'D MMMM YYYY LT',
@@ -48,6 +49,7 @@
48
49
  y: 'blwyddyn',
49
50
  yy: '%d flynedd'
50
51
  },
52
+ ordinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,
51
53
  // traditional ordinal numbers above 31 are not commonly used in colloquial Welsh
52
54
  ordinal: function (number) {
53
55
  var b = number,
@@ -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('da', {
@@ -19,6 +19,7 @@
19
19
  weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.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',
@@ -47,6 +48,7 @@
47
48
  y : 'et år',
48
49
  yy : '%d år'
49
50
  },
51
+ ordinalParse: /\d{1,2}\./,
50
52
  ordinal : '%d.',
51
53
  week : {
52
54
  dow : 1, // Monday is the first day of the week.
@@ -10,7 +10,7 @@
10
10
  } else if (typeof exports === 'object') {
11
11
  module.exports = factory(require('../moment')); // Node
12
12
  } else {
13
- factory(window.moment); // Browser global
13
+ factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14
14
  }
15
15
  }(function (moment) {
16
16
  function processRelativeTime(number, withoutSuffix, key, isFuture) {
@@ -34,19 +34,20 @@
34
34
  weekdaysShort : 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),
35
35
  weekdaysMin : 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),
36
36
  longDateFormat : {
37
- LT: 'HH:mm [Uhr]',
37
+ LT: 'HH:mm',
38
+ LTS: 'HH:mm:ss',
38
39
  L : 'DD.MM.YYYY',
39
40
  LL : 'D. MMMM YYYY',
40
41
  LLL : 'D. MMMM YYYY LT',
41
42
  LLLL : 'dddd, D. MMMM YYYY LT'
42
43
  },
43
44
  calendar : {
44
- sameDay: '[Heute um] LT',
45
+ sameDay: '[Heute um] LT [Uhr]',
45
46
  sameElse: 'L',
46
- nextDay: '[Morgen um] LT',
47
- nextWeek: 'dddd [um] LT',
48
- lastDay: '[Gestern um] LT',
49
- lastWeek: '[letzten] dddd [um] LT'
47
+ nextDay: '[Morgen um] LT [Uhr]',
48
+ nextWeek: 'dddd [um] LT [Uhr]',
49
+ lastDay: '[Gestern um] LT [Uhr]',
50
+ lastWeek: '[letzten] dddd [um] LT [Uhr]'
50
51
  },
51
52
  relativeTime : {
52
53
  future : 'in %s',
@@ -63,6 +64,7 @@
63
64
  y : processRelativeTime,
64
65
  yy : processRelativeTime
65
66
  },
67
+ ordinalParse: /\d{1,2}\./,
66
68
  ordinal : '%d.',
67
69
  week : {
68
70
  dow : 1, // Monday is the first day of the week.