momentjs-rails 2.15.1 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/test/integration/navigation_test.rb +1 -1
  5. data/vendor/assets/javascripts/moment.js +3653 -3586
  6. data/vendor/assets/javascripts/moment/af.js +59 -59
  7. data/vendor/assets/javascripts/moment/ar-dz.js +59 -0
  8. data/vendor/assets/javascripts/moment/ar-ly.js +111 -107
  9. data/vendor/assets/javascripts/moment/ar-ma.js +46 -46
  10. data/vendor/assets/javascripts/moment/ar-sa.js +90 -89
  11. data/vendor/assets/javascripts/moment/ar-tn.js +46 -46
  12. data/vendor/assets/javascripts/moment/ar.js +125 -120
  13. data/vendor/assets/javascripts/moment/az.js +90 -90
  14. data/vendor/assets/javascripts/moment/be.js +112 -112
  15. data/vendor/assets/javascripts/moment/bg.js +74 -74
  16. data/vendor/assets/javascripts/moment/bn.js +104 -104
  17. data/vendor/assets/javascripts/moment/bo.js +104 -104
  18. data/vendor/assets/javascripts/moment/br.js +89 -89
  19. data/vendor/assets/javascripts/moment/bs.js +125 -125
  20. data/vendor/assets/javascripts/moment/ca.js +63 -63
  21. data/vendor/assets/javascripts/moment/cs.js +154 -154
  22. data/vendor/assets/javascripts/moment/cv.js +49 -49
  23. data/vendor/assets/javascripts/moment/cy.js +65 -65
  24. data/vendor/assets/javascripts/moment/da.js +47 -47
  25. data/vendor/assets/javascripts/moment/de-at.js +62 -62
  26. data/vendor/assets/javascripts/moment/de.js +62 -62
  27. data/vendor/assets/javascripts/moment/dv.js +84 -83
  28. data/vendor/assets/javascripts/moment/el.js +81 -81
  29. data/vendor/assets/javascripts/moment/en-au.js +54 -54
  30. data/vendor/assets/javascripts/moment/en-ca.js +50 -50
  31. data/vendor/assets/javascripts/moment/en-gb.js +54 -54
  32. data/vendor/assets/javascripts/moment/en-ie.js +54 -54
  33. data/vendor/assets/javascripts/moment/en-nz.js +54 -54
  34. data/vendor/assets/javascripts/moment/eo.js +57 -57
  35. data/vendor/assets/javascripts/moment/es-do.js +63 -63
  36. data/vendor/assets/javascripts/moment/es.js +63 -63
  37. data/vendor/assets/javascripts/moment/et.js +64 -64
  38. data/vendor/assets/javascripts/moment/eu.js +53 -53
  39. data/vendor/assets/javascripts/moment/fa.js +92 -91
  40. data/vendor/assets/javascripts/moment/fi.js +92 -92
  41. data/vendor/assets/javascripts/moment/fo.js +47 -47
  42. data/vendor/assets/javascripts/moment/fr-ca.js +47 -47
  43. data/vendor/assets/javascripts/moment/fr-ch.js +51 -51
  44. data/vendor/assets/javascripts/moment/fr.js +51 -51
  45. data/vendor/assets/javascripts/moment/fy.js +58 -58
  46. data/vendor/assets/javascripts/moment/gd.js +58 -58
  47. data/vendor/assets/javascripts/moment/gl.js +61 -61
  48. data/vendor/assets/javascripts/moment/he.js +78 -78
  49. data/vendor/assets/javascripts/moment/hi.js +109 -109
  50. data/vendor/assets/javascripts/moment/hr.js +128 -128
  51. data/vendor/assets/javascripts/moment/hu.js +92 -92
  52. data/vendor/assets/javascripts/moment/hy-am.js +79 -79
  53. data/vendor/assets/javascripts/moment/id.js +68 -68
  54. data/vendor/assets/javascripts/moment/is.js +106 -106
  55. data/vendor/assets/javascripts/moment/it.js +54 -54
  56. data/vendor/assets/javascripts/moment/ja.js +62 -62
  57. data/vendor/assets/javascripts/moment/jv.js +69 -69
  58. data/vendor/assets/javascripts/moment/ka.js +71 -71
  59. data/vendor/assets/javascripts/moment/kk.js +73 -73
  60. data/vendor/assets/javascripts/moment/km.js +45 -45
  61. data/vendor/assets/javascripts/moment/ko.js +51 -51
  62. data/vendor/assets/javascripts/moment/ky.js +73 -73
  63. data/vendor/assets/javascripts/moment/lb.js +114 -114
  64. data/vendor/assets/javascripts/moment/lo.js +56 -56
  65. data/vendor/assets/javascripts/moment/lt.js +100 -100
  66. data/vendor/assets/javascripts/moment/lv.js +81 -81
  67. data/vendor/assets/javascripts/moment/me.js +93 -93
  68. data/vendor/assets/javascripts/moment/mi.js +51 -51
  69. data/vendor/assets/javascripts/moment/mk.js +74 -74
  70. data/vendor/assets/javascripts/moment/ml.js +67 -67
  71. data/vendor/assets/javascripts/moment/mr.js +139 -139
  72. data/vendor/assets/javascripts/moment/ms-my.js +68 -68
  73. data/vendor/assets/javascripts/moment/ms.js +68 -68
  74. data/vendor/assets/javascripts/moment/my.js +79 -78
  75. data/vendor/assets/javascripts/moment/nb.js +49 -49
  76. data/vendor/assets/javascripts/moment/ne.js +108 -108
  77. data/vendor/assets/javascripts/moment/nl-be.js +86 -0
  78. data/vendor/assets/javascripts/moment/nl.js +67 -67
  79. data/vendor/assets/javascripts/moment/nn.js +47 -47
  80. data/vendor/assets/javascripts/moment/pa-in.js +109 -109
  81. data/vendor/assets/javascripts/moment/pl.js +88 -88
  82. data/vendor/assets/javascripts/moment/pt-br.js +47 -47
  83. data/vendor/assets/javascripts/moment/pt.js +51 -51
  84. data/vendor/assets/javascripts/moment/ro.js +59 -59
  85. data/vendor/assets/javascripts/moment/ru.js +153 -153
  86. data/vendor/assets/javascripts/moment/se.js +47 -47
  87. data/vendor/assets/javascripts/moment/si.js +57 -57
  88. data/vendor/assets/javascripts/moment/sk.js +132 -132
  89. data/vendor/assets/javascripts/moment/sl.js +144 -144
  90. data/vendor/assets/javascripts/moment/sq.js +55 -55
  91. data/vendor/assets/javascripts/moment/sr-cyrl.js +93 -93
  92. data/vendor/assets/javascripts/moment/sr.js +93 -93
  93. data/vendor/assets/javascripts/moment/ss.js +73 -73
  94. data/vendor/assets/javascripts/moment/sv.js +56 -56
  95. data/vendor/assets/javascripts/moment/sw.js +46 -46
  96. data/vendor/assets/javascripts/moment/ta.js +115 -114
  97. data/vendor/assets/javascripts/moment/te.js +75 -75
  98. data/vendor/assets/javascripts/moment/tet.js +68 -0
  99. data/vendor/assets/javascripts/moment/th.js +53 -53
  100. data/vendor/assets/javascripts/moment/tl-ph.js +49 -49
  101. data/vendor/assets/javascripts/moment/tlh.js +100 -100
  102. data/vendor/assets/javascripts/moment/tr.js +74 -74
  103. data/vendor/assets/javascripts/moment/tzl.js +75 -75
  104. data/vendor/assets/javascripts/moment/tzm-latn.js +45 -45
  105. data/vendor/assets/javascripts/moment/tzm.js +45 -45
  106. data/vendor/assets/javascripts/moment/uk.js +125 -125
  107. data/vendor/assets/javascripts/moment/uz.js +45 -45
  108. data/vendor/assets/javascripts/moment/vi.js +65 -65
  109. data/vendor/assets/javascripts/moment/x-pseudo.js +55 -55
  110. data/vendor/assets/javascripts/moment/yo.js +60 -0
  111. data/vendor/assets/javascripts/moment/zh-cn.js +107 -107
  112. data/vendor/assets/javascripts/moment/zh-hk.js +89 -89
  113. data/vendor/assets/javascripts/moment/zh-tw.js +89 -89
  114. metadata +6 -2
@@ -7,54 +7,54 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var nn = moment.defineLocale('nn', {
14
- months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
15
- monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16
- weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
17
- weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
18
- weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
19
- longDateFormat : {
20
- LT : 'HH:mm',
21
- LTS : 'HH:mm:ss',
22
- L : 'DD.MM.YYYY',
23
- LL : 'D. MMMM YYYY',
24
- LLL : 'D. MMMM YYYY [kl.] H:mm',
25
- LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
26
- },
27
- calendar : {
28
- sameDay: '[I dag klokka] LT',
29
- nextDay: '[I morgon klokka] LT',
30
- nextWeek: 'dddd [klokka] LT',
31
- lastDay: '[I går klokka] LT',
32
- lastWeek: '[Føregåande] dddd [klokka] LT',
33
- sameElse: 'L'
34
- },
35
- relativeTime : {
36
- future : 'om %s',
37
- past : '%s sidan',
38
- s : 'nokre sekund',
39
- m : 'eit minutt',
40
- mm : '%d minutt',
41
- h : 'ein time',
42
- hh : '%d timar',
43
- d : 'ein dag',
44
- dd : '%d dagar',
45
- M : 'ein månad',
46
- MM : '%d månader',
47
- y : 'eit år',
48
- yy : '%d år'
49
- },
50
- ordinalParse: /\d{1,2}\./,
51
- ordinal : '%d.',
52
- week : {
53
- dow : 1, // Monday is the first day of the week.
54
- doy : 4 // The week that contains Jan 4th is the first week of the year.
55
- }
56
- });
13
+ var nn = moment.defineLocale('nn', {
14
+ months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
15
+ monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
16
+ weekdays : 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),
17
+ weekdaysShort : 'sun_mån_tys_ons_tor_fre_lau'.split('_'),
18
+ weekdaysMin : 'su_må_ty_on_to_fr_lø'.split('_'),
19
+ longDateFormat : {
20
+ LT : 'HH:mm',
21
+ LTS : 'HH:mm:ss',
22
+ L : 'DD.MM.YYYY',
23
+ LL : 'D. MMMM YYYY',
24
+ LLL : 'D. MMMM YYYY [kl.] H:mm',
25
+ LLLL : 'dddd D. MMMM YYYY [kl.] HH:mm'
26
+ },
27
+ calendar : {
28
+ sameDay: '[I dag klokka] LT',
29
+ nextDay: '[I morgon klokka] LT',
30
+ nextWeek: 'dddd [klokka] LT',
31
+ lastDay: '[I går klokka] LT',
32
+ lastWeek: '[Føregåande] dddd [klokka] LT',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : 'om %s',
37
+ past : '%s sidan',
38
+ s : 'nokre sekund',
39
+ m : 'eit minutt',
40
+ mm : '%d minutt',
41
+ h : 'ein time',
42
+ hh : '%d timar',
43
+ d : 'ein dag',
44
+ dd : '%d dagar',
45
+ M : 'ein månad',
46
+ MM : '%d månader',
47
+ y : 'eit år',
48
+ yy : '%d år'
49
+ },
50
+ ordinalParse: /\d{1,2}\./,
51
+ ordinal : '%d.',
52
+ week : {
53
+ dow : 1, // Monday is the first day of the week.
54
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
55
+ }
56
+ });
57
57
 
58
- return nn;
58
+ return nn;
59
59
 
60
- }));
60
+ })));
@@ -7,118 +7,118 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
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
- };
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
+ var numberMap = {
26
+ '੧': '1',
27
+ '੨': '2',
28
+ '੩': '3',
29
+ '੪': '4',
30
+ '੫': '5',
31
+ '੬': '6',
32
+ '੭': '7',
33
+ '੮': '8',
34
+ '੯': '9',
35
+ '੦': '0'
36
+ };
37
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.
38
+ var paIn = 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;
119
101
  }
120
- });
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
121
 
122
- return pa_in;
122
+ return paIn;
123
123
 
124
- }));
124
+ })));
@@ -7,99 +7,99 @@
7
7
  && typeof require === 'function' ? factory(require('../moment')) :
8
8
  typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9
9
  factory(global.moment)
10
- }(this, function (moment) { 'use strict';
10
+ }(this, (function (moment) { 'use strict';
11
11
 
12
12
 
13
- var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
14
- monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
15
- function plural(n) {
16
- return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
17
- }
18
- function translate(number, withoutSuffix, key) {
19
- var result = number + ' ';
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');
33
- }
13
+ var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_');
14
+ var monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
15
+ function plural(n) {
16
+ return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
17
+ }
18
+ function translate(number, withoutSuffix, key) {
19
+ var result = number + ' ';
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');
34
33
  }
34
+ }
35
35
 
36
- var pl = moment.defineLocale('pl', {
37
- months : function (momentToFormat, format) {
38
- if (format === '') {
39
- // Hack: if format empty we know this is used to generate
40
- // RegExp by moment. Give then back both valid forms of months
41
- // in RegExp ready format.
42
- return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
43
- } else if (/D MMMM/.test(format)) {
44
- return monthsSubjective[momentToFormat.month()];
45
- } else {
46
- return monthsNominative[momentToFormat.month()];
36
+ var pl = moment.defineLocale('pl', {
37
+ months : function (momentToFormat, format) {
38
+ if (format === '') {
39
+ // Hack: if format empty we know this is used to generate
40
+ // RegExp by moment. Give then back both valid forms of months
41
+ // in RegExp ready format.
42
+ return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
43
+ } else if (/D MMMM/.test(format)) {
44
+ return monthsSubjective[momentToFormat.month()];
45
+ } else {
46
+ return monthsNominative[momentToFormat.month()];
47
+ }
48
+ },
49
+ monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
50
+ weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
51
+ weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
52
+ weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
53
+ longDateFormat : {
54
+ LT : 'HH:mm',
55
+ LTS : 'HH:mm:ss',
56
+ L : 'DD.MM.YYYY',
57
+ LL : 'D MMMM YYYY',
58
+ LLL : 'D MMMM YYYY HH:mm',
59
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
60
+ },
61
+ calendar : {
62
+ sameDay: '[Dziś o] LT',
63
+ nextDay: '[Jutro o] LT',
64
+ nextWeek: '[W] dddd [o] LT',
65
+ lastDay: '[Wczoraj o] LT',
66
+ lastWeek: function () {
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';
47
76
  }
48
77
  },
49
- monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
50
- weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
51
- weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
52
- weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
53
- longDateFormat : {
54
- LT : 'HH:mm',
55
- LTS : 'HH:mm:ss',
56
- L : 'DD.MM.YYYY',
57
- LL : 'D MMMM YYYY',
58
- LLL : 'D MMMM YYYY HH:mm',
59
- LLLL : 'dddd, D MMMM YYYY HH:mm'
60
- },
61
- calendar : {
62
- sameDay: '[Dziś o] LT',
63
- nextDay: '[Jutro o] LT',
64
- nextWeek: '[W] dddd [o] LT',
65
- lastDay: '[Wczoraj o] LT',
66
- lastWeek: function () {
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';
76
- }
77
- },
78
- sameElse: 'L'
79
- },
80
- relativeTime : {
81
- future : 'za %s',
82
- past : '%s temu',
83
- s : 'kilka sekund',
84
- m : translate,
85
- mm : translate,
86
- h : translate,
87
- hh : translate,
88
- d : '1 dzień',
89
- dd : '%d dni',
90
- M : 'miesiąc',
91
- MM : translate,
92
- y : 'rok',
93
- yy : translate
94
- },
95
- ordinalParse: /\d{1,2}\./,
96
- ordinal : '%d.',
97
- week : {
98
- dow : 1, // Monday is the first day of the week.
99
- doy : 4 // The week that contains Jan 4th is the first week of the year.
100
- }
101
- });
78
+ sameElse: 'L'
79
+ },
80
+ relativeTime : {
81
+ future : 'za %s',
82
+ past : '%s temu',
83
+ s : 'kilka sekund',
84
+ m : translate,
85
+ mm : translate,
86
+ h : translate,
87
+ hh : translate,
88
+ d : '1 dzień',
89
+ dd : '%d dni',
90
+ M : 'miesiąc',
91
+ MM : translate,
92
+ y : 'rok',
93
+ yy : translate
94
+ },
95
+ ordinalParse: /\d{1,2}\./,
96
+ ordinal : '%d.',
97
+ week : {
98
+ dow : 1, // Monday is the first day of the week.
99
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
100
+ }
101
+ });
102
102
 
103
- return pl;
103
+ return pl;
104
104
 
105
- }));
105
+ })));