momentjs-rails 2.9.0 → 2.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +5 -5
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +13 -11
  4. data/news.md +24 -7
  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/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
  8. data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
  9. data/test/dummy/tmp/cache/assets/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 +1 -2
  12. data/vendor/assets/javascripts/moment/af.js +72 -69
  13. data/vendor/assets/javascripts/moment/ar-dz.js +60 -0
  14. data/vendor/assets/javascripts/moment/ar-kw.js +60 -0
  15. data/vendor/assets/javascripts/moment/ar-ly.js +127 -0
  16. data/vendor/assets/javascripts/moment/ar-ma.js +59 -55
  17. data/vendor/assets/javascripts/moment/ar-sa.js +103 -98
  18. data/vendor/assets/javascripts/moment/ar-tn.js +58 -53
  19. data/vendor/assets/javascripts/moment/ar.js +140 -131
  20. data/vendor/assets/javascripts/moment/az.js +100 -101
  21. data/vendor/assets/javascripts/moment/be.js +106 -125
  22. data/vendor/assets/javascripts/moment/bg.js +78 -75
  23. data/vendor/assets/javascripts/moment/bm.js +60 -0
  24. data/vendor/assets/javascripts/moment/bn.js +117 -108
  25. data/vendor/assets/javascripts/moment/bo.js +117 -105
  26. data/vendor/assets/javascripts/moment/br.js +92 -92
  27. data/vendor/assets/javascripts/moment/bs.js +81 -68
  28. data/vendor/assets/javascripts/moment/ca.js +83 -71
  29. data/vendor/assets/javascripts/moment/cs.js +102 -79
  30. data/vendor/assets/javascripts/moment/cv.js +62 -59
  31. data/vendor/assets/javascripts/moment/cy.js +78 -75
  32. data/vendor/assets/javascripts/moment/da.js +59 -56
  33. data/vendor/assets/javascripts/moment/de-at.js +77 -71
  34. data/vendor/assets/javascripts/moment/de-ch.js +79 -0
  35. data/vendor/assets/javascripts/moment/de.js +76 -70
  36. data/vendor/assets/javascripts/moment/dv.js +101 -0
  37. data/vendor/assets/javascripts/moment/el.js +96 -89
  38. data/vendor/assets/javascripts/moment/en-au.js +66 -62
  39. data/vendor/assets/javascripts/moment/en-ca.js +62 -59
  40. data/vendor/assets/javascripts/moment/en-gb.js +66 -63
  41. data/vendor/assets/javascripts/moment/en-ie.js +68 -0
  42. data/vendor/assets/javascripts/moment/en-nz.js +68 -0
  43. data/vendor/assets/javascripts/moment/eo.js +72 -69
  44. data/vendor/assets/javascripts/moment/es-do.js +92 -0
  45. data/vendor/assets/javascripts/moment/es-us.js +84 -0
  46. data/vendor/assets/javascripts/moment/es.js +87 -71
  47. data/vendor/assets/javascripts/moment/et.js +78 -74
  48. data/vendor/assets/javascripts/moment/eu.js +65 -60
  49. data/vendor/assets/javascripts/moment/fa.js +105 -100
  50. data/vendor/assets/javascripts/moment/fi.js +77 -74
  51. data/vendor/assets/javascripts/moment/fo.js +59 -56
  52. data/vendor/assets/javascripts/moment/fr-ca.js +73 -54
  53. data/vendor/assets/javascripts/moment/fr-ch.js +79 -0
  54. data/vendor/assets/javascripts/moment/fr.js +82 -58
  55. data/vendor/assets/javascripts/moment/fy.js +73 -66
  56. data/vendor/assets/javascripts/moment/gd.js +77 -0
  57. data/vendor/assets/javascripts/moment/gl.js +74 -69
  58. data/vendor/assets/javascripts/moment/gom-latn.js +124 -0
  59. data/vendor/assets/javascripts/moment/gu.js +125 -0
  60. data/vendor/assets/javascripts/moment/he.js +95 -75
  61. data/vendor/assets/javascripts/moment/hi.js +122 -118
  62. data/vendor/assets/javascripts/moment/hr.js +82 -68
  63. data/vendor/assets/javascripts/moment/hu.js +82 -82
  64. data/vendor/assets/javascripts/moment/hy-am.js +80 -102
  65. data/vendor/assets/javascripts/moment/id.js +82 -79
  66. data/vendor/assets/javascripts/moment/is.js +75 -68
  67. data/vendor/assets/javascripts/moment/it.js +68 -65
  68. data/vendor/assets/javascripts/moment/ja.js +79 -61
  69. data/vendor/assets/javascripts/moment/jv.js +84 -0
  70. data/vendor/assets/javascripts/moment/ka.js +82 -101
  71. data/vendor/assets/javascripts/moment/kk.js +88 -0
  72. data/vendor/assets/javascripts/moment/km.js +57 -54
  73. data/vendor/assets/javascripts/moment/kn.js +127 -0
  74. data/vendor/assets/javascripts/moment/ko.js +82 -64
  75. data/vendor/assets/javascripts/moment/ky.js +89 -0
  76. data/vendor/assets/javascripts/moment/lb.js +126 -127
  77. data/vendor/assets/javascripts/moment/lo.js +71 -0
  78. data/vendor/assets/javascripts/moment/lt.js +110 -111
  79. data/vendor/assets/javascripts/moment/lv.js +92 -72
  80. data/vendor/assets/javascripts/moment/me.js +113 -0
  81. data/vendor/assets/javascripts/moment/mi.js +65 -0
  82. data/vendor/assets/javascripts/moment/mk.js +80 -77
  83. data/vendor/assets/javascripts/moment/ml.js +80 -67
  84. data/vendor/assets/javascripts/moment/mr.js +158 -116
  85. data/vendor/assets/javascripts/moment/ms-my.js +82 -78
  86. data/vendor/assets/javascripts/moment/ms.js +83 -0
  87. data/vendor/assets/javascripts/moment/mt.js +61 -0
  88. data/vendor/assets/javascripts/moment/my.js +95 -87
  89. data/vendor/assets/javascripts/moment/nb.js +62 -57
  90. data/vendor/assets/javascripts/moment/ne.js +121 -118
  91. data/vendor/assets/javascripts/moment/nl-be.js +89 -0
  92. data/vendor/assets/javascripts/moment/nl.js +86 -66
  93. data/vendor/assets/javascripts/moment/nn.js +59 -56
  94. data/vendor/assets/javascripts/moment/pa-in.js +125 -0
  95. data/vendor/assets/javascripts/moment/pl.js +99 -72
  96. data/vendor/assets/javascripts/moment/pt-br.js +60 -56
  97. data/vendor/assets/javascripts/moment/pt.js +64 -60
  98. data/vendor/assets/javascripts/moment/ro.js +72 -68
  99. data/vendor/assets/javascripts/moment/ru.js +156 -147
  100. data/vendor/assets/javascripts/moment/sd.js +99 -0
  101. data/vendor/assets/javascripts/moment/se.js +62 -0
  102. data/vendor/assets/javascripts/moment/si.js +72 -0
  103. data/vendor/assets/javascripts/moment/sk.js +80 -80
  104. data/vendor/assets/javascripts/moment/sl.js +117 -89
  105. data/vendor/assets/javascripts/moment/sq.js +69 -65
  106. data/vendor/assets/javascripts/moment/sr-cyrl.js +96 -91
  107. data/vendor/assets/javascripts/moment/sr.js +96 -91
  108. data/vendor/assets/javascripts/moment/ss.js +90 -0
  109. data/vendor/assets/javascripts/moment/sv.js +68 -63
  110. data/vendor/assets/javascripts/moment/sw.js +60 -0
  111. data/vendor/assets/javascripts/moment/ta.js +126 -125
  112. data/vendor/assets/javascripts/moment/te.js +90 -0
  113. data/vendor/assets/javascripts/moment/tet.js +69 -0
  114. data/vendor/assets/javascripts/moment/th.js +66 -61
  115. data/vendor/assets/javascripts/moment/tl-ph.js +61 -58
  116. data/vendor/assets/javascripts/moment/tlh.js +123 -0
  117. data/vendor/assets/javascripts/moment/tr.js +85 -88
  118. data/vendor/assets/javascripts/moment/tzl.js +93 -0
  119. data/vendor/assets/javascripts/moment/tzm-latn.js +57 -54
  120. data/vendor/assets/javascripts/moment/tzm.js +57 -54
  121. data/vendor/assets/javascripts/moment/uk.js +123 -133
  122. data/vendor/assets/javascripts/moment/ur.js +100 -0
  123. data/vendor/assets/javascripts/moment/uz-latn.js +59 -0
  124. data/vendor/assets/javascripts/moment/uz.js +57 -54
  125. data/vendor/assets/javascripts/moment/vi.js +78 -62
  126. data/vendor/assets/javascripts/moment/x-pseudo.js +69 -0
  127. data/vendor/assets/javascripts/moment/yo.js +61 -0
  128. data/vendor/assets/javascripts/moment/zh-cn.js +99 -112
  129. data/vendor/assets/javascripts/moment/zh-hk.js +106 -0
  130. data/vendor/assets/javascripts/moment/zh-tw.js +92 -86
  131. data/vendor/assets/javascripts/moment.js +4128 -2636
  132. metadata +67 -16
  133. data/test/dummy/log/test.log +0 -61
@@ -0,0 +1,125 @@
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
+ var 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 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
+ ss : '%d ਸਕਿੰਟ',
66
+ m : 'ਇਕ ਮਿੰਟ',
67
+ mm : '%d ਮਿੰਟ',
68
+ h : 'ਇੱਕ ਘੰਟਾ',
69
+ hh : '%d ਘੰਟੇ',
70
+ d : 'ਇੱਕ ਦਿਨ',
71
+ dd : '%d ਦਿਨ',
72
+ M : 'ਇੱਕ ਮਹੀਨਾ',
73
+ MM : '%d ਮਹੀਨੇ',
74
+ y : 'ਇੱਕ ਸਾਲ',
75
+ yy : '%d ਸਾਲ'
76
+ },
77
+ preparse: function (string) {
78
+ return string.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (match) {
79
+ return numberMap[match];
80
+ });
81
+ },
82
+ postformat: function (string) {
83
+ return string.replace(/\d/g, function (match) {
84
+ return symbolMap[match];
85
+ });
86
+ },
87
+ // Punjabi notation for meridiems are quite fuzzy in practice. While there exists
88
+ // a rigid notion of a 'Pahar' it is not used as rigidly in modern Punjabi.
89
+ meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,
90
+ meridiemHour : function (hour, meridiem) {
91
+ if (hour === 12) {
92
+ hour = 0;
93
+ }
94
+ if (meridiem === 'ਰਾਤ') {
95
+ return hour < 4 ? hour : hour + 12;
96
+ } else if (meridiem === 'ਸਵੇਰ') {
97
+ return hour;
98
+ } else if (meridiem === 'ਦੁਪਹਿਰ') {
99
+ return hour >= 10 ? hour : hour + 12;
100
+ } else if (meridiem === 'ਸ਼ਾਮ') {
101
+ return hour + 12;
102
+ }
103
+ },
104
+ meridiem : function (hour, minute, isLower) {
105
+ if (hour < 4) {
106
+ return 'ਰਾਤ';
107
+ } else if (hour < 10) {
108
+ return 'ਸਵੇਰ';
109
+ } else if (hour < 17) {
110
+ return 'ਦੁਪਹਿਰ';
111
+ } else if (hour < 20) {
112
+ return 'ਸ਼ਾਮ';
113
+ } else {
114
+ return 'ਰਾਤ';
115
+ }
116
+ },
117
+ week : {
118
+ dow : 0, // Sunday is the first day of the week.
119
+ doy : 6 // The week that contains Jan 1st is the first week of the year.
120
+ }
121
+ });
122
+
123
+ return paIn;
124
+
125
+ })));
@@ -1,26 +1,25 @@
1
- // moment.js locale configuration
2
- // locale : polish (pl)
3
- // author : Rafal Hirsz : https://github.com/evoL
1
+ //! moment.js locale configuration
2
+ //! locale : Polish [pl]
3
+ //! author : Rafal Hirsz : https://github.com/evoL
4
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((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- var monthsNominative = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split('_'),
15
- monthsSubjective = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split('_');
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';
16
11
 
17
- function plural(n) {
18
- return (n % 10 < 5) && (n % 10 > 1) && ((~~(n / 10) % 10) !== 1);
19
- }
20
12
 
21
- function translate(number, withoutSuffix, key) {
22
- var result = number + ' ';
23
- switch (key) {
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 'ss':
22
+ return result + (plural(number) ? 'sekundy' : 'sekund');
24
23
  case 'm':
25
24
  return withoutSuffix ? 'minuta' : 'minutę';
26
25
  case 'mm':
@@ -33,36 +32,60 @@
33
32
  return result + (plural(number) ? 'miesiące' : 'miesięcy');
34
33
  case 'yy':
35
34
  return result + (plural(number) ? 'lata' : 'lat');
36
- }
37
35
  }
36
+ }
37
+
38
+ var pl = moment.defineLocale('pl', {
39
+ months : function (momentToFormat, format) {
40
+ if (!momentToFormat) {
41
+ return monthsNominative;
42
+ } else if (format === '') {
43
+ // Hack: if format empty we know this is used to generate
44
+ // RegExp by moment. Give then back both valid forms of months
45
+ // in RegExp ready format.
46
+ return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
47
+ } else if (/D MMMM/.test(format)) {
48
+ return monthsSubjective[momentToFormat.month()];
49
+ } else {
50
+ return monthsNominative[momentToFormat.month()];
51
+ }
52
+ },
53
+ monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
54
+ weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
55
+ weekdaysShort : 'ndz_pon_wt_śr_czw_pt_sob'.split('_'),
56
+ weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
57
+ longDateFormat : {
58
+ LT : 'HH:mm',
59
+ LTS : 'HH:mm:ss',
60
+ L : 'DD.MM.YYYY',
61
+ LL : 'D MMMM YYYY',
62
+ LLL : 'D MMMM YYYY HH:mm',
63
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
64
+ },
65
+ calendar : {
66
+ sameDay: '[Dziś o] LT',
67
+ nextDay: '[Jutro o] LT',
68
+ nextWeek: function () {
69
+ switch (this.day()) {
70
+ case 0:
71
+ return '[W niedzielę o] LT';
72
+
73
+ case 2:
74
+ return '[We wtorek o] LT';
38
75
 
39
- return moment.defineLocale('pl', {
40
- months : function (momentToFormat, format) {
41
- if (/D MMMM/.test(format)) {
42
- return monthsSubjective[momentToFormat.month()];
43
- } else {
44
- return monthsNominative[momentToFormat.month()];
76
+ case 3:
77
+ return '[W środę o] LT';
78
+
79
+ case 6:
80
+ return '[W sobotę o] LT';
81
+
82
+ default:
83
+ return '[W] dddd [o] LT';
45
84
  }
46
85
  },
47
- monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'),
48
- weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'),
49
- weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'),
50
- weekdaysMin : 'N_Pn_Wt_Śr_Cz_Pt_So'.split('_'),
51
- longDateFormat : {
52
- LT : 'HH:mm',
53
- LTS : 'LT:ss',
54
- L : 'DD.MM.YYYY',
55
- LL : 'D MMMM YYYY',
56
- LLL : 'D MMMM YYYY LT',
57
- LLLL : 'dddd, D MMMM YYYY LT'
58
- },
59
- calendar : {
60
- sameDay: '[Dziś o] LT',
61
- nextDay: '[Jutro o] LT',
62
- nextWeek: '[W] dddd [o] LT',
63
- lastDay: '[Wczoraj o] LT',
64
- lastWeek: function () {
65
- switch (this.day()) {
86
+ lastDay: '[Wczoraj o] LT',
87
+ lastWeek: function () {
88
+ switch (this.day()) {
66
89
  case 0:
67
90
  return '[W zeszłą niedzielę o] LT';
68
91
  case 3:
@@ -71,30 +94,34 @@
71
94
  return '[W zeszłą sobotę o] LT';
72
95
  default:
73
96
  return '[W zeszły] dddd [o] LT';
74
- }
75
- },
76
- sameElse: 'L'
77
- },
78
- relativeTime : {
79
- future : 'za %s',
80
- past : '%s temu',
81
- s : 'kilka sekund',
82
- m : translate,
83
- mm : translate,
84
- h : translate,
85
- hh : translate,
86
- d : '1 dzień',
87
- dd : '%d dni',
88
- M : 'miesiąc',
89
- MM : translate,
90
- y : 'rok',
91
- yy : translate
97
+ }
92
98
  },
93
- ordinalParse: /\d{1,2}\./,
94
- ordinal : '%d.',
95
- week : {
96
- dow : 1, // Monday is the first day of the week.
97
- doy : 4 // The week that contains Jan 4th is the first week of the year.
98
- }
99
- });
100
- }));
99
+ sameElse: 'L'
100
+ },
101
+ relativeTime : {
102
+ future : 'za %s',
103
+ past : '%s temu',
104
+ s : 'kilka sekund',
105
+ ss : translate,
106
+ m : translate,
107
+ mm : translate,
108
+ h : translate,
109
+ hh : translate,
110
+ d : '1 dzień',
111
+ dd : '%d dni',
112
+ M : 'miesiąc',
113
+ MM : translate,
114
+ y : 'rok',
115
+ yy : translate
116
+ },
117
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
118
+ ordinal : '%d.',
119
+ week : {
120
+ dow : 1, // Monday is the first day of the week.
121
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
122
+ }
123
+ });
124
+
125
+ return pl;
126
+
127
+ })));
@@ -1,58 +1,62 @@
1
- // moment.js locale configuration
2
- // locale : brazilian portuguese (pt-br)
3
- // author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
1
+ //! moment.js locale configuration
2
+ //! locale : Portuguese (Brazil) [pt-br]
3
+ //! author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
4
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((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('pt-br', {
15
- months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
16
- monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
17
- weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
18
- weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
19
- weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D [de] MMMM [de] YYYY',
25
- LLL : 'D [de] MMMM [de] YYYY [às] LT',
26
- LLLL : 'dddd, D [de] MMMM [de] YYYY [às] LT'
27
- },
28
- calendar : {
29
- sameDay: '[Hoje às] LT',
30
- nextDay: '[Amanhã às] LT',
31
- nextWeek: 'dddd [às] LT',
32
- lastDay: '[Ontem às] LT',
33
- lastWeek: function () {
34
- return (this.day() === 0 || this.day() === 6) ?
35
- '[Último] dddd [às] LT' : // Saturday + Sunday
36
- '[Última] dddd [às] LT'; // Monday - Friday
37
- },
38
- sameElse: 'L'
39
- },
40
- relativeTime : {
41
- future : 'em %s',
42
- past : '%s atrás',
43
- s : 'segundos',
44
- m : 'um minuto',
45
- mm : '%d minutos',
46
- h : 'uma hora',
47
- hh : '%d horas',
48
- d : 'um dia',
49
- dd : '%d dias',
50
- M : 'um mês',
51
- MM : '%d meses',
52
- y : 'um ano',
53
- yy : '%d anos'
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 ptBr = moment.defineLocale('pt-br', {
14
+ months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
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('_'),
17
+ weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
18
+ weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D [de] MMMM [de] YYYY',
25
+ LLL : 'D [de] MMMM [de] YYYY [às] HH:mm',
26
+ LLLL : 'dddd, D [de] MMMM [de] YYYY [às] HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[Hoje às] LT',
30
+ nextDay: '[Amanhã às] LT',
31
+ nextWeek: 'dddd [às] LT',
32
+ lastDay: '[Ontem às] LT',
33
+ lastWeek: function () {
34
+ return (this.day() === 0 || this.day() === 6) ?
35
+ '[Último] dddd [às] LT' : // Saturday + Sunday
36
+ '[Última] dddd [às] LT'; // Monday - Friday
54
37
  },
55
- ordinalParse: /\d{1,2}º/,
56
- ordinal : '%dº'
57
- });
58
- }));
38
+ sameElse: 'L'
39
+ },
40
+ relativeTime : {
41
+ future : 'em %s',
42
+ past : '%s atrás',
43
+ s : 'poucos segundos',
44
+ ss : '%d segundos',
45
+ m : 'um minuto',
46
+ mm : '%d minutos',
47
+ h : 'uma hora',
48
+ hh : '%d horas',
49
+ d : 'um dia',
50
+ dd : '%d dias',
51
+ M : 'um mês',
52
+ MM : '%d meses',
53
+ y : 'um ano',
54
+ yy : '%d anos'
55
+ },
56
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
57
+ ordinal : '%dº'
58
+ });
59
+
60
+ return ptBr;
61
+
62
+ })));
@@ -1,62 +1,66 @@
1
- // moment.js locale configuration
2
- // locale : portuguese (pt)
3
- // author : Jefferson : https://github.com/jalex79
1
+ //! moment.js locale configuration
2
+ //! locale : Portuguese [pt]
3
+ //! author : Jefferson : https://github.com/jalex79
4
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((typeof global !== 'undefined' ? global : this).moment); // node or other global
12
- }
13
- }(function (moment) {
14
- return moment.defineLocale('pt', {
15
- months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
16
- monthsShort : 'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),
17
- weekdays : 'domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado'.split('_'),
18
- weekdaysShort : 'dom_seg_ter_qua_qui_sex_sáb'.split('_'),
19
- weekdaysMin : 'dom_2ª_3ª_4ª_5ª_6ª_sáb'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'DD/MM/YYYY',
24
- LL : 'D [de] MMMM [de] YYYY',
25
- LLL : 'D [de] MMMM [de] YYYY LT',
26
- LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
27
- },
28
- calendar : {
29
- sameDay: '[Hoje às] LT',
30
- nextDay: '[Amanhã às] LT',
31
- nextWeek: 'dddd [às] LT',
32
- lastDay: '[Ontem às] LT',
33
- lastWeek: function () {
34
- return (this.day() === 0 || this.day() === 6) ?
35
- '[Último] dddd [às] LT' : // Saturday + Sunday
36
- '[Última] dddd [às] LT'; // Monday - Friday
37
- },
38
- sameElse: 'L'
39
- },
40
- relativeTime : {
41
- future : 'em %s',
42
- past : 'há %s',
43
- s : 'segundos',
44
- m : 'um minuto',
45
- mm : '%d minutos',
46
- h : 'uma hora',
47
- hh : '%d horas',
48
- d : 'um dia',
49
- dd : '%d dias',
50
- M : 'um mês',
51
- MM : '%d meses',
52
- y : 'um ano',
53
- yy : '%d anos'
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 pt = moment.defineLocale('pt', {
14
+ months : 'janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),
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('_'),
17
+ weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
18
+ weekdaysMin : 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'),
19
+ weekdaysParseExact : true,
20
+ longDateFormat : {
21
+ LT : 'HH:mm',
22
+ LTS : 'HH:mm:ss',
23
+ L : 'DD/MM/YYYY',
24
+ LL : 'D [de] MMMM [de] YYYY',
25
+ LLL : 'D [de] MMMM [de] YYYY HH:mm',
26
+ LLLL : 'dddd, D [de] MMMM [de] YYYY HH:mm'
27
+ },
28
+ calendar : {
29
+ sameDay: '[Hoje às] LT',
30
+ nextDay: '[Amanhã às] LT',
31
+ nextWeek: 'dddd [às] LT',
32
+ lastDay: '[Ontem às] LT',
33
+ lastWeek: function () {
34
+ return (this.day() === 0 || this.day() === 6) ?
35
+ '[Último] dddd [às] LT' : // Saturday + Sunday
36
+ '[Última] dddd [às] LT'; // Monday - Friday
54
37
  },
55
- ordinalParse: /\d{1,2}º/,
56
- ordinal : '%dº',
57
- week : {
58
- dow : 1, // Monday is the first day of the week.
59
- doy : 4 // The week that contains Jan 4th is the first week of the year.
60
- }
61
- });
62
- }));
38
+ sameElse: 'L'
39
+ },
40
+ relativeTime : {
41
+ future : 'em %s',
42
+ past : 'há %s',
43
+ s : 'segundos',
44
+ ss : '%d segundos',
45
+ m : 'um minuto',
46
+ mm : '%d minutos',
47
+ h : 'uma hora',
48
+ hh : '%d horas',
49
+ d : 'um dia',
50
+ dd : '%d dias',
51
+ M : 'um mês',
52
+ MM : '%d meses',
53
+ y : 'um ano',
54
+ yy : '%d anos'
55
+ },
56
+ dayOfMonthOrdinalParse: /\d{1,2}º/,
57
+ ordinal : '%dº',
58
+ week : {
59
+ dow : 1, // Monday is the first day of the week.
60
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
61
+ }
62
+ });
63
+
64
+ return pt;
65
+
66
+ })));