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
@@ -1,78 +1,82 @@
1
- // moment.js locale configuration
2
- // locale : estonian (et)
3
- // author : Henry Kehlmann : https://github.com/madhenry
4
- // improvements : Illimar Tambek : https://github.com/ragulka
1
+ //! moment.js locale configuration
2
+ //! locale : Estonian [et]
3
+ //! author : Henry Kehlmann : https://github.com/madhenry
4
+ //! improvements : Illimar Tambek : https://github.com/ragulka
5
5
 
6
- (function (factory) {
7
- if (typeof define === 'function' && define.amd) {
8
- define(['moment'], factory); // AMD
9
- } else if (typeof exports === 'object') {
10
- module.exports = factory(require('../moment')); // Node
11
- } else {
12
- factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
6
+ ;(function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined'
8
+ && typeof require === 'function' ? factory(require('../moment')) :
9
+ typeof define === 'function' && define.amd ? define(['../moment'], factory) :
10
+ factory(global.moment)
11
+ }(this, (function (moment) { 'use strict';
12
+
13
+
14
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
15
+ var format = {
16
+ 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
17
+ 'ss': [number + 'sekundi', number + 'sekundit'],
18
+ 'm' : ['ühe minuti', 'üks minut'],
19
+ 'mm': [number + ' minuti', number + ' minutit'],
20
+ 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
21
+ 'hh': [number + ' tunni', number + ' tundi'],
22
+ 'd' : ['ühe päeva', 'üks päev'],
23
+ 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
24
+ 'MM': [number + ' kuu', number + ' kuud'],
25
+ 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
26
+ 'yy': [number + ' aasta', number + ' aastat']
27
+ };
28
+ if (withoutSuffix) {
29
+ return format[key][2] ? format[key][2] : format[key][1];
13
30
  }
14
- }(function (moment) {
15
- function processRelativeTime(number, withoutSuffix, key, isFuture) {
16
- var format = {
17
- 's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
18
- 'm' : ['ühe minuti', 'üks minut'],
19
- 'mm': [number + ' minuti', number + ' minutit'],
20
- 'h' : ['ühe tunni', 'tund aega', 'üks tund'],
21
- 'hh': [number + ' tunni', number + ' tundi'],
22
- 'd' : ['ühe päeva', 'üks päev'],
23
- 'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
24
- 'MM': [number + ' kuu', number + ' kuud'],
25
- 'y' : ['ühe aasta', 'aasta', 'üks aasta'],
26
- 'yy': [number + ' aasta', number + ' aastat']
27
- };
28
- if (withoutSuffix) {
29
- return format[key][2] ? format[key][2] : format[key][1];
30
- }
31
- return isFuture ? format[key][0] : format[key][1];
31
+ return isFuture ? format[key][0] : format[key][1];
32
+ }
33
+
34
+ var et = moment.defineLocale('et', {
35
+ months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
36
+ monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
37
+ weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
38
+ weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
39
+ weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
40
+ longDateFormat : {
41
+ LT : 'H:mm',
42
+ LTS : 'H:mm:ss',
43
+ L : 'DD.MM.YYYY',
44
+ LL : 'D. MMMM YYYY',
45
+ LLL : 'D. MMMM YYYY H:mm',
46
+ LLLL : 'dddd, D. MMMM YYYY H:mm'
47
+ },
48
+ calendar : {
49
+ sameDay : '[Täna,] LT',
50
+ nextDay : '[Homme,] LT',
51
+ nextWeek : '[Järgmine] dddd LT',
52
+ lastDay : '[Eile,] LT',
53
+ lastWeek : '[Eelmine] dddd LT',
54
+ sameElse : 'L'
55
+ },
56
+ relativeTime : {
57
+ future : '%s pärast',
58
+ past : '%s tagasi',
59
+ s : processRelativeTime,
60
+ ss : processRelativeTime,
61
+ m : processRelativeTime,
62
+ mm : processRelativeTime,
63
+ h : processRelativeTime,
64
+ hh : processRelativeTime,
65
+ d : processRelativeTime,
66
+ dd : '%d päeva',
67
+ M : processRelativeTime,
68
+ MM : processRelativeTime,
69
+ y : processRelativeTime,
70
+ yy : processRelativeTime
71
+ },
72
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
73
+ ordinal : '%d.',
74
+ week : {
75
+ dow : 1, // Monday is the first day of the week.
76
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
32
77
  }
78
+ });
79
+
80
+ return et;
33
81
 
34
- return moment.defineLocale('et', {
35
- months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
36
- monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
37
- weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
38
- weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
39
- weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
40
- longDateFormat : {
41
- LT : 'H:mm',
42
- LTS : 'LT:ss',
43
- L : 'DD.MM.YYYY',
44
- LL : 'D. MMMM YYYY',
45
- LLL : 'D. MMMM YYYY LT',
46
- LLLL : 'dddd, D. MMMM YYYY LT'
47
- },
48
- calendar : {
49
- sameDay : '[Täna,] LT',
50
- nextDay : '[Homme,] LT',
51
- nextWeek : '[Järgmine] dddd LT',
52
- lastDay : '[Eile,] LT',
53
- lastWeek : '[Eelmine] dddd LT',
54
- sameElse : 'L'
55
- },
56
- relativeTime : {
57
- future : '%s pärast',
58
- past : '%s tagasi',
59
- s : processRelativeTime,
60
- m : processRelativeTime,
61
- mm : processRelativeTime,
62
- h : processRelativeTime,
63
- hh : processRelativeTime,
64
- d : processRelativeTime,
65
- dd : '%d päeva',
66
- M : processRelativeTime,
67
- MM : processRelativeTime,
68
- y : processRelativeTime,
69
- yy : processRelativeTime
70
- },
71
- ordinalParse: /\d{1,2}\./,
72
- ordinal : '%d.',
73
- week : {
74
- dow : 1, // Monday is the first day of the week.
75
- doy : 4 // The week that contains Jan 4th is the first week of the year.
76
- }
77
- });
78
- }));
82
+ })));
@@ -1,62 +1,67 @@
1
- // moment.js locale configuration
2
- // locale : euskara (eu)
3
- // author : Eneko Illarramendi : https://github.com/eillarra
1
+ //! moment.js locale configuration
2
+ //! locale : Basque [eu]
3
+ //! author : Eneko Illarramendi : https://github.com/eillarra
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
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 eu = moment.defineLocale('eu', {
14
+ months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
15
+ monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
16
+ monthsParseExact : true,
17
+ weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
18
+ weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
19
+ weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
20
+ weekdaysParseExact : true,
21
+ longDateFormat : {
22
+ LT : 'HH:mm',
23
+ LTS : 'HH:mm:ss',
24
+ L : 'YYYY-MM-DD',
25
+ LL : 'YYYY[ko] MMMM[ren] D[a]',
26
+ LLL : 'YYYY[ko] MMMM[ren] D[a] HH:mm',
27
+ LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
28
+ l : 'YYYY-M-D',
29
+ ll : 'YYYY[ko] MMM D[a]',
30
+ lll : 'YYYY[ko] MMM D[a] HH:mm',
31
+ llll : 'ddd, YYYY[ko] MMM D[a] HH:mm'
32
+ },
33
+ calendar : {
34
+ sameDay : '[gaur] LT[etan]',
35
+ nextDay : '[bihar] LT[etan]',
36
+ nextWeek : 'dddd LT[etan]',
37
+ lastDay : '[atzo] LT[etan]',
38
+ lastWeek : '[aurreko] dddd LT[etan]',
39
+ sameElse : 'L'
40
+ },
41
+ relativeTime : {
42
+ future : '%s barru',
43
+ past : 'duela %s',
44
+ s : 'segundo batzuk',
45
+ ss : '%d segundo',
46
+ m : 'minutu bat',
47
+ mm : '%d minutu',
48
+ h : 'ordu bat',
49
+ hh : '%d ordu',
50
+ d : 'egun bat',
51
+ dd : '%d egun',
52
+ M : 'hilabete bat',
53
+ MM : '%d hilabete',
54
+ y : 'urte bat',
55
+ yy : '%d urte'
56
+ },
57
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
58
+ ordinal : '%d.',
59
+ week : {
60
+ dow : 1, // Monday is the first day of the week.
61
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
12
62
  }
13
- }(function (moment) {
14
- return moment.defineLocale('eu', {
15
- months : 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split('_'),
16
- monthsShort : 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split('_'),
17
- weekdays : 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split('_'),
18
- weekdaysShort : 'ig._al._ar._az._og._ol._lr.'.split('_'),
19
- weekdaysMin : 'ig_al_ar_az_og_ol_lr'.split('_'),
20
- longDateFormat : {
21
- LT : 'HH:mm',
22
- LTS : 'LT:ss',
23
- L : 'YYYY-MM-DD',
24
- LL : 'YYYY[ko] MMMM[ren] D[a]',
25
- LLL : 'YYYY[ko] MMMM[ren] D[a] LT',
26
- LLLL : 'dddd, YYYY[ko] MMMM[ren] D[a] LT',
27
- l : 'YYYY-M-D',
28
- ll : 'YYYY[ko] MMM D[a]',
29
- lll : 'YYYY[ko] MMM D[a] LT',
30
- llll : 'ddd, YYYY[ko] MMM D[a] LT'
31
- },
32
- calendar : {
33
- sameDay : '[gaur] LT[etan]',
34
- nextDay : '[bihar] LT[etan]',
35
- nextWeek : 'dddd LT[etan]',
36
- lastDay : '[atzo] LT[etan]',
37
- lastWeek : '[aurreko] dddd LT[etan]',
38
- sameElse : 'L'
39
- },
40
- relativeTime : {
41
- future : '%s barru',
42
- past : 'duela %s',
43
- s : 'segundo batzuk',
44
- m : 'minutu bat',
45
- mm : '%d minutu',
46
- h : 'ordu bat',
47
- hh : '%d ordu',
48
- d : 'egun bat',
49
- dd : '%d egun',
50
- M : 'hilabete bat',
51
- MM : '%d hilabete',
52
- y : 'urte bat',
53
- yy : '%d urte'
54
- },
55
- ordinalParse: /\d{1,2}\./,
56
- ordinal : '%d.',
57
- week : {
58
- dow : 1, // Monday is the first day of the week.
59
- doy : 7 // The week that contains Jan 1st is the first week of the year.
60
- }
61
- });
62
- }));
63
+ });
64
+
65
+ return eu;
66
+
67
+ })));
@@ -1,103 +1,108 @@
1
- // moment.js locale configuration
2
- // locale : Persian (fa)
3
- // author : Ebrahim Byagowi : https://github.com/ebraminio
1
+ //! moment.js locale configuration
2
+ //! locale : Persian [fa]
3
+ //! author : Ebrahim Byagowi : https://github.com/ebraminio
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 symbolMap = {
15
- '1': '۱',
16
- '2': '۲',
17
- '3': '۳',
18
- '4': '۴',
19
- '5': '۵',
20
- '6': '۶',
21
- '7': '۷',
22
- '8': '۸',
23
- '9': '۹',
24
- '0': '۰'
25
- }, numberMap = {
26
- '۱': '1',
27
- '۲': '2',
28
- '۳': '3',
29
- '۴': '4',
30
- '۵': '5',
31
- '۶': '6',
32
- '۷': '7',
33
- '۸': '8',
34
- '۹': '9',
35
- '۰': '0'
36
- };
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
37
 
38
- return moment.defineLocale('fa', {
39
- months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
40
- monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
41
- weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
42
- weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
43
- weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
44
- longDateFormat : {
45
- LT : 'HH:mm',
46
- LTS : 'LT:ss',
47
- L : 'DD/MM/YYYY',
48
- LL : 'D MMMM YYYY',
49
- LLL : 'D MMMM YYYY LT',
50
- LLLL : 'dddd, D MMMM YYYY LT'
51
- },
52
- meridiemParse: /قبل از ظهر|بعد از ظهر/,
53
- isPM: function (input) {
54
- return /بعد از ظهر/.test(input);
55
- },
56
- meridiem : function (hour, minute, isLower) {
57
- if (hour < 12) {
58
- return 'قبل از ظهر';
59
- } else {
60
- return 'بعد از ظهر';
61
- }
62
- },
63
- calendar : {
64
- sameDay : '[امروز ساعت] LT',
65
- nextDay : '[فردا ساعت] LT',
66
- nextWeek : 'dddd [ساعت] LT',
67
- lastDay : '[دیروز ساعت] LT',
68
- lastWeek : 'dddd [پیش] [ساعت] LT',
69
- sameElse : 'L'
70
- },
71
- relativeTime : {
72
- future : 'در %s',
73
- past : '%s پیش',
74
- s : 'چندین ثانیه',
75
- m : 'یک دقیقه',
76
- mm : '%d دقیقه',
77
- h : 'یک ساعت',
78
- hh : '%d ساعت',
79
- d : 'یک روز',
80
- dd : '%d روز',
81
- M : 'یک ماه',
82
- MM : '%d ماه',
83
- y : 'یک سال',
84
- yy : '%d سال'
85
- },
86
- preparse: function (string) {
87
- return string.replace(/[۰-۹]/g, function (match) {
88
- return numberMap[match];
89
- }).replace(/،/g, ',');
90
- },
91
- postformat: function (string) {
92
- return string.replace(/\d/g, function (match) {
93
- return symbolMap[match];
94
- }).replace(/,/g, '،');
95
- },
96
- ordinalParse: /\d{1,2}م/,
97
- ordinal : '%dم',
98
- week : {
99
- dow : 6, // Saturday is the first day of the week.
100
- doy : 12 // The week that contains Jan 1st is the first week of the year.
38
+ var fa = moment.defineLocale('fa', {
39
+ months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
40
+ monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'),
41
+ weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
42
+ weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'),
43
+ weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'),
44
+ weekdaysParseExact : true,
45
+ longDateFormat : {
46
+ LT : 'HH:mm',
47
+ LTS : 'HH:mm:ss',
48
+ L : 'DD/MM/YYYY',
49
+ LL : 'D MMMM YYYY',
50
+ LLL : 'D MMMM YYYY HH:mm',
51
+ LLLL : 'dddd, D MMMM YYYY HH:mm'
52
+ },
53
+ meridiemParse: /قبل از ظهر|بعد از ظهر/,
54
+ isPM: function (input) {
55
+ return /بعد از ظهر/.test(input);
56
+ },
57
+ meridiem : function (hour, minute, isLower) {
58
+ if (hour < 12) {
59
+ return 'قبل از ظهر';
60
+ } else {
61
+ return 'بعد از ظهر';
101
62
  }
102
- });
103
- }));
63
+ },
64
+ calendar : {
65
+ sameDay : '[امروز ساعت] LT',
66
+ nextDay : '[فردا ساعت] LT',
67
+ nextWeek : 'dddd [ساعت] LT',
68
+ lastDay : '[دیروز ساعت] LT',
69
+ lastWeek : 'dddd [پیش] [ساعت] LT',
70
+ sameElse : 'L'
71
+ },
72
+ relativeTime : {
73
+ future : 'در %s',
74
+ past : '%s پیش',
75
+ s : 'چند ثانیه',
76
+ ss : 'ثانیه d%',
77
+ m : 'یک دقیقه',
78
+ mm : '%d دقیقه',
79
+ h : 'یک ساعت',
80
+ hh : '%d ساعت',
81
+ d : 'یک روز',
82
+ dd : '%d روز',
83
+ M : 'یک ماه',
84
+ MM : '%d ماه',
85
+ y : 'یک سال',
86
+ yy : '%d سال'
87
+ },
88
+ preparse: function (string) {
89
+ return string.replace(/[۰-۹]/g, function (match) {
90
+ return numberMap[match];
91
+ }).replace(/،/g, ',');
92
+ },
93
+ postformat: function (string) {
94
+ return string.replace(/\d/g, function (match) {
95
+ return symbolMap[match];
96
+ }).replace(/,/g, '،');
97
+ },
98
+ dayOfMonthOrdinalParse: /\d{1,2}م/,
99
+ ordinal : '%dم',
100
+ week : {
101
+ dow : 6, // Saturday is the first day of the week.
102
+ doy : 12 // The week that contains Jan 1st is the first week of the year.
103
+ }
104
+ });
105
+
106
+ return fa;
107
+
108
+ })));
@@ -1,27 +1,27 @@
1
- // moment.js locale configuration
2
- // locale : finnish (fi)
3
- // author : Tarmo Aidantausta : https://github.com/bleadof
1
+ //! moment.js locale configuration
2
+ //! locale : Finnish [fi]
3
+ //! author : Tarmo Aidantausta : https://github.com/bleadof
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';
4
11
 
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 numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
15
- numbersFuture = [
16
- 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
17
- numbersPast[7], numbersPast[8], numbersPast[9]
18
- ];
19
12
 
20
- function translate(number, withoutSuffix, key, isFuture) {
21
- var result = '';
22
- switch (key) {
13
+ var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' ');
14
+ var numbersFuture = [
15
+ 'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
16
+ numbersPast[7], numbersPast[8], numbersPast[9]
17
+ ];
18
+ function translate(number, withoutSuffix, key, isFuture) {
19
+ var result = '';
20
+ switch (key) {
23
21
  case 's':
24
22
  return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
23
+ case 'ss':
24
+ return isFuture ? 'sekunnin' : 'sekuntia';
25
25
  case 'm':
26
26
  return isFuture ? 'minuutin' : 'minuutti';
27
27
  case 'mm':
@@ -47,61 +47,64 @@
47
47
  case 'yy':
48
48
  result = isFuture ? 'vuoden' : 'vuotta';
49
49
  break;
50
- }
51
- result = verbalNumber(number, isFuture) + ' ' + result;
52
- return result;
53
50
  }
51
+ result = verbalNumber(number, isFuture) + ' ' + result;
52
+ return result;
53
+ }
54
+ function verbalNumber(number, isFuture) {
55
+ return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
56
+ }
54
57
 
55
- function verbalNumber(number, isFuture) {
56
- return number < 10 ? (isFuture ? numbersFuture[number] : numbersPast[number]) : number;
58
+ var fi = moment.defineLocale('fi', {
59
+ months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
60
+ monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
61
+ weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
62
+ weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
63
+ weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
64
+ longDateFormat : {
65
+ LT : 'HH.mm',
66
+ LTS : 'HH.mm.ss',
67
+ L : 'DD.MM.YYYY',
68
+ LL : 'Do MMMM[ta] YYYY',
69
+ LLL : 'Do MMMM[ta] YYYY, [klo] HH.mm',
70
+ LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
71
+ l : 'D.M.YYYY',
72
+ ll : 'Do MMM YYYY',
73
+ lll : 'Do MMM YYYY, [klo] HH.mm',
74
+ llll : 'ddd, Do MMM YYYY, [klo] HH.mm'
75
+ },
76
+ calendar : {
77
+ sameDay : '[tänään] [klo] LT',
78
+ nextDay : '[huomenna] [klo] LT',
79
+ nextWeek : 'dddd [klo] LT',
80
+ lastDay : '[eilen] [klo] LT',
81
+ lastWeek : '[viime] dddd[na] [klo] LT',
82
+ sameElse : 'L'
83
+ },
84
+ relativeTime : {
85
+ future : '%s päästä',
86
+ past : '%s sitten',
87
+ s : translate,
88
+ ss : translate,
89
+ m : translate,
90
+ mm : translate,
91
+ h : translate,
92
+ hh : translate,
93
+ d : translate,
94
+ dd : translate,
95
+ M : translate,
96
+ MM : translate,
97
+ y : translate,
98
+ yy : translate
99
+ },
100
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
101
+ ordinal : '%d.',
102
+ week : {
103
+ dow : 1, // Monday is the first day of the week.
104
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
57
105
  }
106
+ });
107
+
108
+ return fi;
58
109
 
59
- return moment.defineLocale('fi', {
60
- months : 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split('_'),
61
- monthsShort : 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split('_'),
62
- weekdays : 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split('_'),
63
- weekdaysShort : 'su_ma_ti_ke_to_pe_la'.split('_'),
64
- weekdaysMin : 'su_ma_ti_ke_to_pe_la'.split('_'),
65
- longDateFormat : {
66
- LT : 'HH.mm',
67
- LTS : 'HH.mm.ss',
68
- L : 'DD.MM.YYYY',
69
- LL : 'Do MMMM[ta] YYYY',
70
- LLL : 'Do MMMM[ta] YYYY, [klo] LT',
71
- LLLL : 'dddd, Do MMMM[ta] YYYY, [klo] LT',
72
- l : 'D.M.YYYY',
73
- ll : 'Do MMM YYYY',
74
- lll : 'Do MMM YYYY, [klo] LT',
75
- llll : 'ddd, Do MMM YYYY, [klo] LT'
76
- },
77
- calendar : {
78
- sameDay : '[tänään] [klo] LT',
79
- nextDay : '[huomenna] [klo] LT',
80
- nextWeek : 'dddd [klo] LT',
81
- lastDay : '[eilen] [klo] LT',
82
- lastWeek : '[viime] dddd[na] [klo] LT',
83
- sameElse : 'L'
84
- },
85
- relativeTime : {
86
- future : '%s päästä',
87
- past : '%s sitten',
88
- s : translate,
89
- m : translate,
90
- mm : translate,
91
- h : translate,
92
- hh : translate,
93
- d : translate,
94
- dd : translate,
95
- M : translate,
96
- MM : translate,
97
- y : translate,
98
- yy : translate
99
- },
100
- ordinalParse: /\d{1,2}\./,
101
- ordinal : '%d.',
102
- week : {
103
- dow : 1, // Monday is the first day of the week.
104
- doy : 4 // The week that contains Jan 4th is the first week of the year.
105
- }
106
- });
107
- }));
110
+ })));