momentjs-rails 2.11.1 → 2.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
  5. data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
  6. data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  7. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  8. data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
  9. data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
  10. data/test/integration/navigation_test.rb +1 -1
  11. data/vendor/assets/javascripts/moment.js +1517 -889
  12. data/vendor/assets/javascripts/moment/af.js +3 -3
  13. data/vendor/assets/javascripts/moment/ar-ly.js +122 -0
  14. data/vendor/assets/javascripts/moment/ar-ma.js +3 -2
  15. data/vendor/assets/javascripts/moment/ar-sa.js +3 -2
  16. data/vendor/assets/javascripts/moment/ar-tn.js +4 -2
  17. data/vendor/assets/javascripts/moment/ar.js +6 -5
  18. data/vendor/assets/javascripts/moment/az.js +3 -2
  19. data/vendor/assets/javascripts/moment/be.js +21 -21
  20. data/vendor/assets/javascripts/moment/bg.js +11 -11
  21. data/vendor/assets/javascripts/moment/bn.js +18 -12
  22. data/vendor/assets/javascripts/moment/bo.js +13 -4
  23. data/vendor/assets/javascripts/moment/br.js +11 -10
  24. data/vendor/assets/javascripts/moment/bs.js +73 -71
  25. data/vendor/assets/javascripts/moment/ca.js +4 -2
  26. data/vendor/assets/javascripts/moment/cs.js +76 -75
  27. data/vendor/assets/javascripts/moment/cv.js +2 -2
  28. data/vendor/assets/javascripts/moment/cy.js +5 -3
  29. data/vendor/assets/javascripts/moment/da.js +2 -2
  30. data/vendor/assets/javascripts/moment/de-at.js +4 -2
  31. data/vendor/assets/javascripts/moment/de.js +4 -2
  32. data/vendor/assets/javascripts/moment/dv.js +3 -3
  33. data/vendor/assets/javascripts/moment/el.js +2 -2
  34. data/vendor/assets/javascripts/moment/en-au.js +3 -2
  35. data/vendor/assets/javascripts/moment/en-ca.js +5 -5
  36. data/vendor/assets/javascripts/moment/en-gb.js +2 -2
  37. data/vendor/assets/javascripts/moment/en-ie.js +2 -2
  38. data/vendor/assets/javascripts/moment/en-nz.js +3 -2
  39. data/vendor/assets/javascripts/moment/eo.js +2 -2
  40. data/vendor/assets/javascripts/moment/es-do.js +80 -0
  41. data/vendor/assets/javascripts/moment/es.js +4 -2
  42. data/vendor/assets/javascripts/moment/et.js +2 -2
  43. data/vendor/assets/javascripts/moment/eu.js +4 -2
  44. data/vendor/assets/javascripts/moment/fa.js +3 -2
  45. data/vendor/assets/javascripts/moment/fi.js +29 -29
  46. data/vendor/assets/javascripts/moment/fo.js +2 -2
  47. data/vendor/assets/javascripts/moment/fr-ca.js +4 -2
  48. data/vendor/assets/javascripts/moment/fr-ch.js +4 -2
  49. data/vendor/assets/javascripts/moment/fr.js +4 -2
  50. data/vendor/assets/javascripts/moment/fy.js +4 -2
  51. data/vendor/assets/javascripts/moment/gd.js +2 -2
  52. data/vendor/assets/javascripts/moment/gl.js +15 -13
  53. data/vendor/assets/javascripts/moment/he.js +19 -2
  54. data/vendor/assets/javascripts/moment/hi.js +3 -2
  55. data/vendor/assets/javascripts/moment/hr.js +73 -71
  56. data/vendor/assets/javascripts/moment/hu.js +24 -24
  57. data/vendor/assets/javascripts/moment/hy-am.js +12 -12
  58. data/vendor/assets/javascripts/moment/id.js +2 -2
  59. data/vendor/assets/javascripts/moment/is.js +52 -52
  60. data/vendor/assets/javascripts/moment/it.js +2 -2
  61. data/vendor/assets/javascripts/moment/ja.js +13 -2
  62. data/vendor/assets/javascripts/moment/jv.js +2 -2
  63. data/vendor/assets/javascripts/moment/ka.js +2 -2
  64. data/vendor/assets/javascripts/moment/kk.js +7 -7
  65. data/vendor/assets/javascripts/moment/km.js +4 -4
  66. data/vendor/assets/javascripts/moment/ko.js +8 -11
  67. data/vendor/assets/javascripts/moment/ky.js +88 -0
  68. data/vendor/assets/javascripts/moment/lb.js +6 -3
  69. data/vendor/assets/javascripts/moment/lo.js +3 -2
  70. data/vendor/assets/javascripts/moment/lt.js +5 -3
  71. data/vendor/assets/javascripts/moment/lv.js +5 -4
  72. data/vendor/assets/javascripts/moment/me.js +21 -19
  73. data/vendor/assets/javascripts/moment/mi.js +64 -0
  74. data/vendor/assets/javascripts/moment/mk.js +11 -11
  75. data/vendor/assets/javascripts/moment/ml.js +14 -4
  76. data/vendor/assets/javascripts/moment/mr.js +3 -2
  77. data/vendor/assets/javascripts/moment/ms-my.js +3 -2
  78. data/vendor/assets/javascripts/moment/ms.js +2 -2
  79. data/vendor/assets/javascripts/moment/my.js +4 -2
  80. data/vendor/assets/javascripts/moment/nb.js +5 -3
  81. data/vendor/assets/javascripts/moment/ne.js +4 -2
  82. data/vendor/assets/javascripts/moment/nl.js +18 -3
  83. data/vendor/assets/javascripts/moment/nn.js +3 -3
  84. data/vendor/assets/javascripts/moment/pa-in.js +124 -0
  85. data/vendor/assets/javascripts/moment/pl.js +22 -22
  86. data/vendor/assets/javascripts/moment/pt-br.js +4 -3
  87. data/vendor/assets/javascripts/moment/pt.js +3 -2
  88. data/vendor/assets/javascripts/moment/ro.js +3 -2
  89. data/vendor/assets/javascripts/moment/ru.js +59 -42
  90. data/vendor/assets/javascripts/moment/se.js +2 -2
  91. data/vendor/assets/javascripts/moment/si.js +7 -2
  92. data/vendor/assets/javascripts/moment/sk.js +74 -74
  93. data/vendor/assets/javascripts/moment/sl.js +92 -90
  94. data/vendor/assets/javascripts/moment/sq.js +5 -4
  95. data/vendor/assets/javascripts/moment/sr-cyrl.js +21 -19
  96. data/vendor/assets/javascripts/moment/sr.js +21 -19
  97. data/vendor/assets/javascripts/moment/ss.js +89 -0
  98. data/vendor/assets/javascripts/moment/sv.js +6 -4
  99. data/vendor/assets/javascripts/moment/sw.js +3 -2
  100. data/vendor/assets/javascripts/moment/ta.js +2 -2
  101. data/vendor/assets/javascripts/moment/te.js +3 -2
  102. data/vendor/assets/javascripts/moment/th.js +9 -7
  103. data/vendor/assets/javascripts/moment/tl-ph.js +3 -3
  104. data/vendor/assets/javascripts/moment/tlh.js +18 -17
  105. data/vendor/assets/javascripts/moment/tr.js +2 -2
  106. data/vendor/assets/javascripts/moment/tzl.js +8 -4
  107. data/vendor/assets/javascripts/moment/tzm-latn.js +2 -2
  108. data/vendor/assets/javascripts/moment/tzm.js +2 -2
  109. data/vendor/assets/javascripts/moment/uk.js +21 -21
  110. data/vendor/assets/javascripts/moment/uz.js +2 -2
  111. data/vendor/assets/javascripts/moment/vi.js +15 -2
  112. data/vendor/assets/javascripts/moment/x-pseudo.js +68 -0
  113. data/vendor/assets/javascripts/moment/zh-cn.js +14 -14
  114. data/vendor/assets/javascripts/moment/zh-hk.js +105 -0
  115. data/vendor/assets/javascripts/moment/zh-tw.js +29 -26
  116. metadata +10 -4
  117. data/test/dummy/log/test.log +0 -47
@@ -1,11 +1,12 @@
1
1
  //! moment.js locale configuration
2
- //! locale : dutch (nl)
3
- //! author : Joris Röling : https://github.com/jjupiter
2
+ //! locale : Dutch [nl]
3
+ //! author : Joris Röling : https://github.com/jorisroling
4
+ //! author : Jacob Middag : https://github.com/middagj
4
5
 
5
6
  ;(function (global, factory) {
6
7
  typeof exports === 'object' && typeof module !== 'undefined'
7
8
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
10
  factory(global.moment)
10
11
  }(this, function (moment) { 'use strict';
11
12
 
@@ -13,6 +14,9 @@
13
14
  var monthsShortWithDots = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),
14
15
  monthsShortWithoutDots = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_');
15
16
 
17
+ var monthsParse = [/^jan/i, /^feb/i, /^maart|mrt.?$/i, /^apr/i, /^mei$/i, /^jun[i.]?$/i, /^jul[i.]?$/i, /^aug/i, /^sep/i, /^okt/i, /^nov/i, /^dec/i];
18
+ var monthsRegex = /^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;
19
+
16
20
  var nl = moment.defineLocale('nl', {
17
21
  months : 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),
18
22
  monthsShort : function (m, format) {
@@ -22,9 +26,20 @@
22
26
  return monthsShortWithDots[m.month()];
23
27
  }
24
28
  },
29
+
30
+ monthsRegex: monthsRegex,
31
+ monthsShortRegex: monthsRegex,
32
+ monthsStrictRegex: /^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,
33
+ monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,
34
+
35
+ monthsParse : monthsParse,
36
+ longMonthsParse : monthsParse,
37
+ shortMonthsParse : monthsParse,
38
+
25
39
  weekdays : 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),
26
40
  weekdaysShort : 'zo._ma._di._wo._do._vr._za.'.split('_'),
27
41
  weekdaysMin : 'Zo_Ma_Di_Wo_Do_Vr_Za'.split('_'),
42
+ weekdaysParseExact : true,
28
43
  longDateFormat : {
29
44
  LT : 'HH:mm',
30
45
  LTS : 'HH:mm:ss',
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : norwegian nynorsk (nn)
2
+ //! locale : Nynorsk [nn]
3
3
  //! author : https://github.com/mechuwind
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -34,7 +34,7 @@
34
34
  },
35
35
  relativeTime : {
36
36
  future : 'om %s',
37
- past : 'for %s sidan',
37
+ past : '%s sidan',
38
38
  s : 'nokre sekund',
39
39
  m : 'eit minutt',
40
40
  mm : '%d minutt',
@@ -0,0 +1,124 @@
1
+ //! moment.js locale configuration
2
+ //! locale : Punjabi (India) [pa-in]
3
+ //! author : Harpreet Singh : https://github.com/harpreetkhalsagtbit
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 symbolMap = {
14
+ '1': '੧',
15
+ '2': '੨',
16
+ '3': '੩',
17
+ '4': '੪',
18
+ '5': '੫',
19
+ '6': '੬',
20
+ '7': '੭',
21
+ '8': '੮',
22
+ '9': '੯',
23
+ '0': '੦'
24
+ },
25
+ numberMap = {
26
+ '੧': '1',
27
+ '੨': '2',
28
+ '੩': '3',
29
+ '੪': '4',
30
+ '੫': '5',
31
+ '੬': '6',
32
+ '੭': '7',
33
+ '੮': '8',
34
+ '੯': '9',
35
+ '੦': '0'
36
+ };
37
+
38
+ var pa_in = moment.defineLocale('pa-in', {
39
+ // There are months name as per Nanakshahi Calender but they are not used as rigidly in modern Punjabi.
40
+ months : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
41
+ monthsShort : 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split('_'),
42
+ weekdays : 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split('_'),
43
+ weekdaysShort : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
44
+ weekdaysMin : 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'),
45
+ longDateFormat : {
46
+ LT : 'A h:mm ਵਜੇ',
47
+ LTS : 'A h:mm:ss ਵਜੇ',
48
+ L : 'DD/MM/YYYY',
49
+ LL : 'D MMMM YYYY',
50
+ LLL : 'D MMMM YYYY, A h:mm ਵਜੇ',
51
+ LLLL : 'dddd, D MMMM YYYY, A h:mm ਵਜੇ'
52
+ },
53
+ calendar : {
54
+ sameDay : '[ਅਜ] LT',
55
+ nextDay : '[ਕਲ] LT',
56
+ nextWeek : 'dddd, LT',
57
+ lastDay : '[ਕਲ] LT',
58
+ lastWeek : '[ਪਿਛਲੇ] dddd, LT',
59
+ sameElse : 'L'
60
+ },
61
+ relativeTime : {
62
+ future : '%s ਵਿੱਚ',
63
+ past : '%s ਪਿਛਲੇ',
64
+ s : 'ਕੁਝ ਸਕਿੰਟ',
65
+ m : 'ਇਕ ਮਿੰਟ',
66
+ mm : '%d ਮਿੰਟ',
67
+ h : 'ਇੱਕ ਘੰਟਾ',
68
+ hh : '%d ਘੰਟੇ',
69
+ d : 'ਇੱਕ ਦਿਨ',
70
+ dd : '%d ਦਿਨ',
71
+ M : 'ਇੱਕ ਮਹੀਨਾ',
72
+ MM : '%d ਮਹੀਨੇ',
73
+ y : 'ਇੱਕ ਸਾਲ',
74
+ yy : '%d ਸਾਲ'
75
+ },
76
+ preparse: function (string) {
77
+ return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
78
+ return numberMap[match];
79
+ });
80
+ },
81
+ postformat: function (string) {
82
+ return string.replace(/\d/g, function (match) {
83
+ return symbolMap[match];
84
+ });
85
+ },
86
+ // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
87
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
88
+ meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
89
+ meridiemHour : function (hour, meridiem) {
90
+ if (hour === 12) {
91
+ hour = 0;
92
+ }
93
+ if (meridiem === 'ਰਾਤ') {
94
+ return hour < 4 ? hour : hour + 12;
95
+ } else if (meridiem === 'ਸਵੇਰ') {
96
+ return hour;
97
+ } else if (meridiem === 'ਦੁਪਹਿਰ') {
98
+ return hour >= 10 ? hour : hour + 12;
99
+ } else if (meridiem === 'ਸ਼ਾਮ') {
100
+ return hour + 12;
101
+ }
102
+ },
103
+ meridiem : function (hour, minute, isLower) {
104
+ if (hour < 4) {
105
+ return 'ਰਾਤ';
106
+ } else if (hour < 10) {
107
+ return 'ਸਵੇਰ';
108
+ } else if (hour < 17) {
109
+ return 'ਦੁਪਹਿਰ';
110
+ } else if (hour < 20) {
111
+ return 'ਸ਼ਾਮ';
112
+ } else {
113
+ return 'ਰਾਤ';
114
+ }
115
+ },
116
+ week : {
117
+ dow : 0, // Sunday is the first day of the week.
118
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
119
+ }
120
+ });
121
+
122
+ return pa_in;
123
+
124
+ }));
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : polish (pl)
2
+ //! locale : Polish [pl]
3
3
  //! author : Rafal Hirsz : https://github.com/evoL
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -18,18 +18,18 @@
18
18
  function translate(number, withoutSuffix, key) {
19
19
  var result = number + ' ';
20
20
  switch (key) {
21
- case 'm':
22
- return withoutSuffix ? 'minuta' : 'minutę';
23
- case 'mm':
24
- return result + (plural(number) ? 'minuty' : 'minut');
25
- case 'h':
26
- return withoutSuffix ? 'godzina' : 'godzinę';
27
- case 'hh':
28
- return result + (plural(number) ? 'godziny' : 'godzin');
29
- case 'MM':
30
- return result + (plural(number) ? 'miesiące' : 'miesięcy');
31
- case 'yy':
32
- return result + (plural(number) ? 'lata' : 'lat');
21
+ case 'm':
22
+ return withoutSuffix ? 'minuta' : 'minutę';
23
+ case 'mm':
24
+ return result + (plural(number) ? 'minuty' : 'minut');
25
+ case 'h':
26
+ return withoutSuffix ? 'godzina' : 'godzinę';
27
+ case 'hh':
28
+ return result + (plural(number) ? 'godziny' : 'godzin');
29
+ case 'MM':
30
+ return result + (plural(number) ? 'miesiące' : 'miesięcy');
31
+ case 'yy':
32
+ return result + (plural(number) ? 'lata' : 'lat');
33
33
  }
34
34
  }
35
35
 
@@ -65,14 +65,14 @@
65
65
  lastDay: '[Wczoraj o] LT',
66
66
  lastWeek: function () {
67
67
  switch (this.day()) {
68
- case 0:
69
- return '[W zeszłą niedzielę o] LT';
70
- case 3:
71
- return '[W zeszłą środę o] LT';
72
- case 6:
73
- return '[W zeszłą sobotę o] LT';
74
- default:
75
- return '[W zeszły] dddd [o] LT';
68
+ case 0:
69
+ return '[W zeszłą niedzielę o] LT';
70
+ case 3:
71
+ return '[W zeszłą środę o] LT';
72
+ case 6:
73
+ return '[W zeszłą sobotę o] LT';
74
+ default:
75
+ return '[W zeszły] dddd [o] LT';
76
76
  }
77
77
  },
78
78
  sameElse: 'L'
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : brazilian portuguese (pt-br)
2
+ //! locale : Portuguese (Brazil) [pt-br]
3
3
  //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -13,9 +13,10 @@
13
13
  var pt_br = moment.defineLocale('pt-br', {
14
14
  months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
15
15
  monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
16
- weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
16
+ weekdays : 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split('_'),
17
17
  weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
18
18
  weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
19
+ weekdaysParseExact : true,
19
20
  longDateFormat : {
20
21
  LT : 'HH:mm',
21
22
  LTS : 'HH:mm:ss',
@@ -1,11 +1,11 @@
1
1
  //! moment.js locale configuration
2
- //! locale : portuguese (pt)
2
+ //! locale : Portuguese [pt]
3
3
  //! author : Jefferson : https://github.com/jalex79
4
4
 
5
5
  ;(function (global, factory) {
6
6
  typeof exports === 'object' && typeof module !== 'undefined'
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
8
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
10
  }(this, function (moment) { 'use strict';
11
11
 
@@ -16,6 +16,7 @@
16
16
  weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
17
17
  weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
18
18
  weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
19
+ weekdaysParseExact : true,
19
20
  longDateFormat : {
20
21
  LT : 'HH:mm',
21
22
  LTS : 'HH:mm:ss',
@@ -1,12 +1,12 @@
1
1
  //! moment.js locale configuration
2
- //! locale : romanian (ro)
2
+ //! locale : Romanian [ro]
3
3
  //! author : Vlad Gurdiga : https://github.com/gurdiga
4
4
  //! author : Valentin Agachi : https://github.com/avaly
5
5
 
6
6
  ;(function (global, factory) {
7
7
  typeof exports === 'object' && typeof module !== 'undefined'
8
8
  && typeof require === 'function' ? factory(require('../moment')) :
9
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
10
  factory(global.moment)
11
11
  }(this, function (moment) { 'use strict';
12
12
 
@@ -29,6 +29,7 @@
29
29
  var ro = moment.defineLocale('ro', {
30
30
  months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
31
31
  monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
32
+ monthsParseExact: true,
32
33
  weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
33
34
  weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
34
35
  weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
@@ -1,12 +1,13 @@
1
1
  //! moment.js locale configuration
2
- //! locale : russian (ru)
2
+ //! locale : Russian [ru]
3
3
  //! author : Viktorminator : https://github.com/Viktorminator
4
4
  //! Author : Menelion Elensúle : https://github.com/Oire
5
+ //! author : Коренберг Марк : https://github.com/socketpair
5
6
 
6
7
  ;(function (global, factory) {
7
8
  typeof exports === 'object' && typeof module !== 'undefined'
8
9
  && typeof require === 'function' ? factory(require('../moment')) :
9
- typeof define === 'function' && define.amd ? define(['moment'], factory) :
10
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
11
  factory(global.moment)
11
12
  }(this, function (moment) { 'use strict';
12
13
 
@@ -30,27 +31,43 @@
30
31
  return number + ' ' + plural(format[key], +number);
31
32
  }
32
33
  }
33
- var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
34
+ var monthsParse = [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[йя]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i];
34
35
 
36
+ // http://new.gramota.ru/spravka/rules/139-prop : § 103
37
+ // Сокращения месяцев: http://new.gramota.ru/spravka/buro/search-answer?s=242637
38
+ // CLDR data: http://www.unicode.org/cldr/charts/28/summary/ru.html#1753
35
39
  var ru = moment.defineLocale('ru', {
36
40
  months : {
37
- format: 'Января_Февраля_Марта_Апреля_Мая_Июня_Июля_Августа_Сентября_Октября_Ноября_Декабря'.split('_'),
38
- standalone: 'Январь_Февраль_Март_Апрель_Май_Июнь_Июль_Август_Сентябрь_Октябрь_Ноябрь_Декабрь'.split('_')
41
+ format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_'),
42
+ standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_')
39
43
  },
40
44
  monthsShort : {
41
- format: 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_'),
42
- standalone: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_')
45
+ // по CLDR именно "июл." и "июн.", но какой смысл менять букву на точку ?
46
+ format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split('_'),
47
+ standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split('_')
43
48
  },
44
49
  weekdays : {
45
- standalone: 'Воскресенье_Понедельник_Вторник_Среда_Четверг_Пятница_Суббота'.split('_'),
46
- format: 'Воскресенье_Понедельник_Вторник_Среду_Четверг_Пятницу_Субботу'.split('_'),
50
+ standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
51
+ format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_'),
47
52
  isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/
48
53
  },
49
- weekdaysShort : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),
50
- weekdaysMin : 'Вс_Пн_Вт_Ср_Чт_Пт_Сб'.split('_'),
54
+ weekdaysShort : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
55
+ weekdaysMin : 'вс_пн_вт_ср_чт_пт_сб'.split('_'),
51
56
  monthsParse : monthsParse,
52
57
  longMonthsParse : monthsParse,
53
58
  shortMonthsParse : monthsParse,
59
+
60
+ // полные названия с падежами, по три буквы, для некоторых, по 4 буквы, сокращения с точкой и без точки
61
+ monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
62
+
63
+ // копия предыдущего
64
+ monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,
65
+
66
+ // полные названия с падежами
67
+ monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,
68
+
69
+ // Выражение, которое соотвествует только сокращённым формам
70
+ monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,
54
71
  longDateFormat : {
55
72
  LT : 'HH:mm',
56
73
  LTS : 'HH:mm:ss',
@@ -66,16 +83,16 @@
66
83
  nextWeek: function (now) {
67
84
  if (now.week() !== this.week()) {
68
85
  switch (this.day()) {
69
- case 0:
70
- return '[В следующее] dddd [в] LT';
71
- case 1:
72
- case 2:
73
- case 4:
74
- return '[В следующий] dddd [в] LT';
75
- case 3:
76
- case 5:
77
- case 6:
78
- return '[В следующую] dddd [в] LT';
86
+ case 0:
87
+ return '[В следующее] dddd [в] LT';
88
+ case 1:
89
+ case 2:
90
+ case 4:
91
+ return '[В следующий] dddd [в] LT';
92
+ case 3:
93
+ case 5:
94
+ case 6:
95
+ return '[В следующую] dddd [в] LT';
79
96
  }
80
97
  } else {
81
98
  if (this.day() === 2) {
@@ -88,16 +105,16 @@
88
105
  lastWeek: function (now) {
89
106
  if (now.week() !== this.week()) {
90
107
  switch (this.day()) {
91
- case 0:
92
- return '[В прошлое] dddd [в] LT';
93
- case 1:
94
- case 2:
95
- case 4:
96
- return '[В прошлый] dddd [в] LT';
97
- case 3:
98
- case 5:
99
- case 6:
100
- return '[В прошлую] dddd [в] LT';
108
+ case 0:
109
+ return '[В прошлое] dddd [в] LT';
110
+ case 1:
111
+ case 2:
112
+ case 4:
113
+ return '[В прошлый] dddd [в] LT';
114
+ case 3:
115
+ case 5:
116
+ case 6:
117
+ return '[В прошлую] dddd [в] LT';
101
118
  }
102
119
  } else {
103
120
  if (this.day() === 2) {
@@ -142,17 +159,17 @@
142
159
  ordinalParse: /\d{1,2}-(й|го|я)/,
143
160
  ordinal: function (number, period) {
144
161
  switch (period) {
145
- case 'M':
146
- case 'd':
147
- case 'DDD':
148
- return number + '-й';
149
- case 'D':
150
- return number + '-го';
151
- case 'w':
152
- case 'W':
153
- return number + '-я';
154
- default:
155
- return number;
162
+ case 'M':
163
+ case 'd':
164
+ case 'DDD':
165
+ return number + '-й';
166
+ case 'D':
167
+ return number + '-го';
168
+ case 'w':
169
+ case 'W':
170
+ return number + '-я';
171
+ default:
172
+ return number;
156
173
  }
157
174
  },
158
175
  week : {