momentjs-rails 2.29.4 → 2.29.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/news.md +3 -0
  4. data/vendor/assets/javascripts/moment/af.js +77 -66
  5. data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
  6. data/vendor/assets/javascripts/moment/ar-kw.js +59 -48
  7. data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
  8. data/vendor/assets/javascripts/moment/ar-ma.js +59 -48
  9. data/vendor/assets/javascripts/moment/ar-sa.js +108 -97
  10. data/vendor/assets/javascripts/moment/ar-tn.js +59 -48
  11. data/vendor/assets/javascripts/moment/ar.js +191 -180
  12. data/vendor/assets/javascripts/moment/az.js +105 -94
  13. data/vendor/assets/javascripts/moment/be.js +137 -126
  14. data/vendor/assets/javascripts/moment/bg.js +91 -80
  15. data/vendor/assets/javascripts/moment/bm.js +57 -47
  16. data/vendor/assets/javascripts/moment/bn-bd.js +130 -119
  17. data/vendor/assets/javascripts/moment/bn.js +122 -111
  18. data/vendor/assets/javascripts/moment/bo.js +125 -114
  19. data/vendor/assets/javascripts/moment/br.js +165 -154
  20. data/vendor/assets/javascripts/moment/bs.js +149 -138
  21. data/vendor/assets/javascripts/moment/ca.js +99 -88
  22. data/vendor/assets/javascripts/moment/cs.js +179 -168
  23. data/vendor/assets/javascripts/moment/cv.js +66 -55
  24. data/vendor/assets/javascripts/moment/cy.js +100 -89
  25. data/vendor/assets/javascripts/moment/da.js +59 -48
  26. data/vendor/assets/javascripts/moment/de-at.js +79 -68
  27. data/vendor/assets/javascripts/moment/de-ch.js +78 -69
  28. data/vendor/assets/javascripts/moment/de.js +79 -68
  29. data/vendor/assets/javascripts/moment/dv.js +95 -84
  30. data/vendor/assets/javascripts/moment/el.js +107 -96
  31. data/vendor/assets/javascripts/moment/en-au.js +74 -63
  32. data/vendor/assets/javascripts/moment/en-ca.js +70 -59
  33. data/vendor/assets/javascripts/moment/en-gb.js +74 -63
  34. data/vendor/assets/javascripts/moment/en-ie.js +74 -63
  35. data/vendor/assets/javascripts/moment/en-il.js +70 -59
  36. data/vendor/assets/javascripts/moment/en-in.js +74 -63
  37. data/vendor/assets/javascripts/moment/en-nz.js +74 -63
  38. data/vendor/assets/javascripts/moment/en-sg.js +74 -63
  39. data/vendor/assets/javascripts/moment/eo.js +71 -60
  40. data/vendor/assets/javascripts/moment/es-do.js +108 -97
  41. data/vendor/assets/javascripts/moment/es-mx.js +109 -98
  42. data/vendor/assets/javascripts/moment/es-us.js +108 -97
  43. data/vendor/assets/javascripts/moment/es.js +109 -98
  44. data/vendor/assets/javascripts/moment/et.js +79 -68
  45. data/vendor/assets/javascripts/moment/eu.js +69 -58
  46. data/vendor/assets/javascripts/moment/fa.js +116 -105
  47. data/vendor/assets/javascripts/moment/fi.js +126 -115
  48. data/vendor/assets/javascripts/moment/fil.js +63 -52
  49. data/vendor/assets/javascripts/moment/fo.js +60 -49
  50. data/vendor/assets/javascripts/moment/fr-ca.js +73 -62
  51. data/vendor/assets/javascripts/moment/fr-ch.js +77 -66
  52. data/vendor/assets/javascripts/moment/fr.js +109 -98
  53. data/vendor/assets/javascripts/moment/fy.js +80 -69
  54. data/vendor/assets/javascripts/moment/ga.js +100 -89
  55. data/vendor/assets/javascripts/moment/gd.js +100 -89
  56. data/vendor/assets/javascripts/moment/gl.js +75 -64
  57. data/vendor/assets/javascripts/moment/gom-deva.js +129 -118
  58. data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
  59. data/vendor/assets/javascripts/moment/gu.js +125 -114
  60. data/vendor/assets/javascripts/moment/he.js +93 -82
  61. data/vendor/assets/javascripts/moment/hi.js +165 -154
  62. data/vendor/assets/javascripts/moment/hr.js +154 -143
  63. data/vendor/assets/javascripts/moment/hu.js +117 -106
  64. data/vendor/assets/javascripts/moment/hy-am.js +96 -85
  65. data/vendor/assets/javascripts/moment/id.js +81 -70
  66. data/vendor/assets/javascripts/moment/is.js +136 -125
  67. data/vendor/assets/javascripts/moment/it-ch.js +68 -57
  68. data/vendor/assets/javascripts/moment/it.js +106 -95
  69. data/vendor/assets/javascripts/moment/ja.js +146 -135
  70. data/vendor/assets/javascripts/moment/jv.js +81 -70
  71. data/vendor/assets/javascripts/moment/ka.js +91 -80
  72. data/vendor/assets/javascripts/moment/kk.js +87 -76
  73. data/vendor/assets/javascripts/moment/km.js +106 -95
  74. data/vendor/assets/javascripts/moment/kn.js +127 -116
  75. data/vendor/assets/javascripts/moment/ko.js +80 -69
  76. data/vendor/assets/javascripts/moment/ku.js +123 -112
  77. data/vendor/assets/javascripts/moment/ky.js +89 -78
  78. data/vendor/assets/javascripts/moment/lb.js +132 -121
  79. data/vendor/assets/javascripts/moment/lo.js +70 -59
  80. data/vendor/assets/javascripts/moment/lt.js +123 -112
  81. data/vendor/assets/javascripts/moment/lv.js +95 -84
  82. data/vendor/assets/javascripts/moment/me.js +119 -108
  83. data/vendor/assets/javascripts/moment/mi.js +64 -53
  84. data/vendor/assets/javascripts/moment/mk.js +90 -78
  85. data/vendor/assets/javascripts/moment/ml.js +86 -75
  86. data/vendor/assets/javascripts/moment/mn.js +101 -90
  87. data/vendor/assets/javascripts/moment/mr.js +202 -191
  88. data/vendor/assets/javascripts/moment/ms-my.js +81 -70
  89. data/vendor/assets/javascripts/moment/ms.js +81 -70
  90. data/vendor/assets/javascripts/moment/mt.js +60 -49
  91. data/vendor/assets/javascripts/moment/my.js +93 -82
  92. data/vendor/assets/javascripts/moment/nb.js +64 -53
  93. data/vendor/assets/javascripts/moment/ne.js +124 -113
  94. data/vendor/assets/javascripts/moment/nl-be.js +103 -92
  95. data/vendor/assets/javascripts/moment/nl.js +105 -94
  96. data/vendor/assets/javascripts/moment/nn.js +64 -53
  97. data/vendor/assets/javascripts/moment/oc-lnc.js +87 -76
  98. data/vendor/assets/javascripts/moment/pa-in.js +125 -114
  99. data/vendor/assets/javascripts/moment/pl.js +138 -127
  100. data/vendor/assets/javascripts/moment/pt-br.js +61 -50
  101. data/vendor/assets/javascripts/moment/pt.js +66 -55
  102. data/vendor/assets/javascripts/moment/ro.js +76 -65
  103. data/vendor/assets/javascripts/moment/ru.js +198 -187
  104. data/vendor/assets/javascripts/moment/sd.js +86 -75
  105. data/vendor/assets/javascripts/moment/se.js +61 -50
  106. data/vendor/assets/javascripts/moment/si.js +73 -62
  107. data/vendor/assets/javascripts/moment/sk.js +146 -135
  108. data/vendor/assets/javascripts/moment/sl.js +170 -159
  109. data/vendor/assets/javascripts/moment/sq.js +69 -58
  110. data/vendor/assets/javascripts/moment/sr-cyrl.js +126 -115
  111. data/vendor/assets/javascripts/moment/sr.js +128 -117
  112. data/vendor/assets/javascripts/moment/ss.js +87 -76
  113. data/vendor/assets/javascripts/moment/sv.js +74 -63
  114. data/vendor/assets/javascripts/moment/sw.js +59 -48
  115. data/vendor/assets/javascripts/moment/ta.js +132 -121
  116. data/vendor/assets/javascripts/moment/te.js +92 -81
  117. data/vendor/assets/javascripts/moment/tet.js +72 -61
  118. data/vendor/assets/javascripts/moment/tg.js +120 -109
  119. data/vendor/assets/javascripts/moment/th.js +69 -58
  120. data/vendor/assets/javascripts/moment/tk.js +96 -85
  121. data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
  122. data/vendor/assets/javascripts/moment/tlh.js +120 -109
  123. data/vendor/assets/javascripts/moment/tr.js +110 -99
  124. data/vendor/assets/javascripts/moment/tzl.js +93 -82
  125. data/vendor/assets/javascripts/moment/tzm-latn.js +58 -47
  126. data/vendor/assets/javascripts/moment/tzm.js +58 -47
  127. data/vendor/assets/javascripts/moment/ug-cn.js +114 -103
  128. data/vendor/assets/javascripts/moment/uk.js +163 -152
  129. data/vendor/assets/javascripts/moment/ur.js +86 -75
  130. data/vendor/assets/javascripts/moment/uz-latn.js +58 -47
  131. data/vendor/assets/javascripts/moment/uz.js +57 -46
  132. data/vendor/assets/javascripts/moment/vi.js +83 -72
  133. data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
  134. data/vendor/assets/javascripts/moment/yo.js +59 -48
  135. data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
  136. data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
  137. data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
  138. data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
  139. data/vendor/assets/javascripts/moment.js +5018 -5010
  140. metadata +2 -2
@@ -2,64 +2,75 @@
2
2
  //! locale : Basque [eu]
3
3
  //! author : Eneko Illarramendi : https://github.com/eillarra
4
4
 
5
- import moment from '../moment';
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';
6
11
 
7
- export default moment.defineLocale('eu', {
8
- months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
9
- '_'
10
- ),
11
- monthsShort:
12
- 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
13
- '_'
14
- ),
15
- monthsParseExact: true,
16
- weekdays:
17
- 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
12
+ //! moment.js locale configuration
13
+
14
+ var eu = moment.defineLocale('eu', {
15
+ months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split(
18
16
  '_'
19
17
  ),
20
- weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
21
- weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
22
- weekdaysParseExact: true,
23
- longDateFormat: {
24
- LT: 'HH:mm',
25
- LTS: 'HH:mm:ss',
26
- L: 'YYYY-MM-DD',
27
- LL: 'YYYY[ko] MMMM[ren] D[a]',
28
- LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
29
- LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
30
- l: 'YYYY-M-D',
31
- ll: 'YYYY[ko] MMM D[a]',
32
- lll: 'YYYY[ko] MMM D[a] HH:mm',
33
- llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
34
- },
35
- calendar: {
36
- sameDay: '[gaur] LT[etan]',
37
- nextDay: '[bihar] LT[etan]',
38
- nextWeek: 'dddd LT[etan]',
39
- lastDay: '[atzo] LT[etan]',
40
- lastWeek: '[aurreko] dddd LT[etan]',
41
- sameElse: 'L',
42
- },
43
- relativeTime: {
44
- future: '%s barru',
45
- past: 'duela %s',
46
- s: 'segundo batzuk',
47
- ss: '%d segundo',
48
- m: 'minutu bat',
49
- mm: '%d minutu',
50
- h: 'ordu bat',
51
- hh: '%d ordu',
52
- d: 'egun bat',
53
- dd: '%d egun',
54
- M: 'hilabete bat',
55
- MM: '%d hilabete',
56
- y: 'urte bat',
57
- yy: '%d urte',
58
- },
59
- dayOfMonthOrdinalParse: /\d{1,2}\./,
60
- ordinal: '%d.',
61
- week: {
62
- dow: 1, // Monday is the first day of the week.
63
- doy: 7, // The week that contains Jan 7th is the first week of the year.
64
- },
65
- });
18
+ monthsShort:
19
+ 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split(
20
+ '_'
21
+ ),
22
+ monthsParseExact: true,
23
+ weekdays:
24
+ 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split(
25
+ '_'
26
+ ),
27
+ weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'),
28
+ weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'),
29
+ weekdaysParseExact: true,
30
+ longDateFormat: {
31
+ LT: 'HH:mm',
32
+ LTS: 'HH:mm:ss',
33
+ L: 'YYYY-MM-DD',
34
+ LL: 'YYYY[ko] MMMM[ren] D[a]',
35
+ LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm',
36
+ LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
37
+ l: 'YYYY-M-D',
38
+ ll: 'YYYY[ko] MMM D[a]',
39
+ lll: 'YYYY[ko] MMM D[a] HH:mm',
40
+ llll: 'ddd, YYYY[ko] MMM D[a] HH:mm',
41
+ },
42
+ calendar: {
43
+ sameDay: '[gaur] LT[etan]',
44
+ nextDay: '[bihar] LT[etan]',
45
+ nextWeek: 'dddd LT[etan]',
46
+ lastDay: '[atzo] LT[etan]',
47
+ lastWeek: '[aurreko] dddd LT[etan]',
48
+ sameElse: 'L',
49
+ },
50
+ relativeTime: {
51
+ future: '%s barru',
52
+ past: 'duela %s',
53
+ s: 'segundo batzuk',
54
+ ss: '%d segundo',
55
+ m: 'minutu bat',
56
+ mm: '%d minutu',
57
+ h: 'ordu bat',
58
+ hh: '%d ordu',
59
+ d: 'egun bat',
60
+ dd: '%d egun',
61
+ M: 'hilabete bat',
62
+ MM: '%d hilabete',
63
+ y: 'urte bat',
64
+ yy: '%d urte',
65
+ },
66
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
67
+ ordinal: '%d.',
68
+ week: {
69
+ dow: 1, // Monday is the first day of the week.
70
+ doy: 7, // The week that contains Jan 7th is the first week of the year.
71
+ },
72
+ });
73
+
74
+ return eu;
75
+
76
+ })));
@@ -2,112 +2,123 @@
2
2
  //! locale : Persian [fa]
3
3
  //! author : Ebrahim Byagowi : https://github.com/ebraminio
4
4
 
5
- import moment from '../moment';
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';
6
11
 
7
- var symbolMap = {
8
- 1: '۱',
9
- 2: '۲',
10
- 3: '۳',
11
- 4: '۴',
12
- 5: '۵',
13
- 6: '۶',
14
- 7: '۷',
15
- 8: '۸',
16
- 9: '۹',
17
- 0: '۰',
18
- },
19
- numberMap = {
20
- '۱': '1',
21
- '۲': '2',
22
- '۳': '3',
23
- '۴': '4',
24
- '۵': '5',
25
- '۶': '6',
26
- '۷': '7',
27
- '۸': '8',
28
- '۹': '9',
29
- '۰': '0',
30
- };
12
+ //! moment.js locale configuration
31
13
 
32
- export default moment.defineLocale('fa', {
33
- months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
34
- '_'
35
- ),
36
- monthsShort:
37
- 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
38
- '_'
39
- ),
40
- weekdays:
41
- 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
42
- '_'
43
- ),
44
- weekdaysShort:
45
- 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
14
+ var symbolMap = {
15
+ 1: '۱',
16
+ 2: '۲',
17
+ 3: '۳',
18
+ 4: '۴',
19
+ 5: '۵',
20
+ 6: '۶',
21
+ 7: '۷',
22
+ 8: '۸',
23
+ 9: '۹',
24
+ 0: '۰',
25
+ },
26
+ numberMap = {
27
+ '۱': '1',
28
+ '۲': '2',
29
+ '۳': '3',
30
+ '۴': '4',
31
+ '۵': '5',
32
+ '۶': '6',
33
+ '۷': '7',
34
+ '۸': '8',
35
+ '۹': '9',
36
+ '۰': '0',
37
+ };
38
+
39
+ var fa = moment.defineLocale('fa', {
40
+ months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
46
41
  '_'
47
42
  ),
48
- weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
49
- weekdaysParseExact: true,
50
- longDateFormat: {
51
- LT: 'HH:mm',
52
- LTS: 'HH:mm:ss',
53
- L: 'DD/MM/YYYY',
54
- LL: 'D MMMM YYYY',
55
- LLL: 'D MMMM YYYY HH:mm',
56
- LLLL: 'dddd, D MMMM YYYY HH:mm',
57
- },
58
- meridiemParse: /قبل از ظهر|بعد از ظهر/,
59
- isPM: function (input) {
60
- return /بعد از ظهر/.test(input);
61
- },
62
- meridiem: function (hour, minute, isLower) {
63
- if (hour < 12) {
64
- return 'قبل از ظهر';
65
- } else {
66
- return 'بعد از ظهر';
67
- }
68
- },
69
- calendar: {
70
- sameDay: '[امروز ساعت] LT',
71
- nextDay: '[فردا ساعت] LT',
72
- nextWeek: 'dddd [ساعت] LT',
73
- lastDay: '[دیروز ساعت] LT',
74
- lastWeek: 'dddd [پیش] [ساعت] LT',
75
- sameElse: 'L',
76
- },
77
- relativeTime: {
78
- future: 'در %s',
79
- past: '%s پیش',
80
- s: 'چند ثانیه',
81
- ss: '%d ثانیه',
82
- m: 'یک دقیقه',
83
- mm: '%d دقیقه',
84
- h: 'یک ساعت',
85
- hh: '%d ساعت',
86
- d: 'یک روز',
87
- dd: '%d روز',
88
- M: 'یک ماه',
89
- MM: '%d ماه',
90
- y: 'یک سال',
91
- yy: '%d سال',
92
- },
93
- preparse: function (string) {
94
- return string
95
- .replace(/[۰-۹]/g, function (match) {
96
- return numberMap[match];
97
- })
98
- .replace(/،/g, ',');
99
- },
100
- postformat: function (string) {
101
- return string
102
- .replace(/\d/g, function (match) {
103
- return symbolMap[match];
104
- })
105
- .replace(/,/g, '،');
106
- },
107
- dayOfMonthOrdinalParse: /\d{1,2}م/,
108
- ordinal: '%dم',
109
- week: {
110
- dow: 6, // Saturday is the first day of the week.
111
- doy: 12, // The week that contains Jan 12th is the first week of the year.
112
- },
113
- });
43
+ monthsShort:
44
+ 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split(
45
+ '_'
46
+ ),
47
+ weekdays:
48
+ 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
49
+ '_'
50
+ ),
51
+ weekdaysShort:
52
+ 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split(
53
+ '_'
54
+ ),
55
+ weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'),
56
+ weekdaysParseExact: true,
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
+ meridiemParse: /قبل از ظهر|بعد از ظهر/,
66
+ isPM: function (input) {
67
+ return /بعد از ظهر/.test(input);
68
+ },
69
+ meridiem: function (hour, minute, isLower) {
70
+ if (hour < 12) {
71
+ return 'قبل از ظهر';
72
+ } else {
73
+ return 'بعد از ظهر';
74
+ }
75
+ },
76
+ calendar: {
77
+ sameDay: '[امروز ساعت] LT',
78
+ nextDay: '[فردا ساعت] LT',
79
+ nextWeek: 'dddd [ساعت] LT',
80
+ lastDay: '[دیروز ساعت] LT',
81
+ lastWeek: 'dddd [پیش] [ساعت] LT',
82
+ sameElse: 'L',
83
+ },
84
+ relativeTime: {
85
+ future: 'در %s',
86
+ past: '%s پیش',
87
+ s: 'چند ثانیه',
88
+ ss: '%d ثانیه',
89
+ m: 'یک دقیقه',
90
+ mm: '%d دقیقه',
91
+ h: 'یک ساعت',
92
+ hh: '%d ساعت',
93
+ d: 'یک روز',
94
+ dd: '%d روز',
95
+ M: 'یک ماه',
96
+ MM: '%d ماه',
97
+ y: 'یک سال',
98
+ yy: '%d سال',
99
+ },
100
+ preparse: function (string) {
101
+ return string
102
+ .replace(/[۰-۹]/g, function (match) {
103
+ return numberMap[match];
104
+ })
105
+ .replace(/،/g, ',');
106
+ },
107
+ postformat: function (string) {
108
+ return string
109
+ .replace(/\d/g, function (match) {
110
+ return symbolMap[match];
111
+ })
112
+ .replace(/,/g, '،');
113
+ },
114
+ dayOfMonthOrdinalParse: /\d{1,2}م/,
115
+ ordinal: '%dم',
116
+ week: {
117
+ dow: 6, // Saturday is the first day of the week.
118
+ doy: 12, // The week that contains Jan 12th is the first week of the year.
119
+ },
120
+ });
121
+
122
+ return fa;
123
+
124
+ })));
@@ -2,123 +2,134 @@
2
2
  //! locale : Finnish [fi]
3
3
  //! author : Tarmo Aidantausta : https://github.com/bleadof
4
4
 
5
- import moment from '../moment';
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';
6
11
 
7
- var numbersPast =
8
- 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
9
- ' '
10
- ),
11
- numbersFuture = [
12
- 'nolla',
13
- 'yhden',
14
- 'kahden',
15
- 'kolmen',
16
- 'neljän',
17
- 'viiden',
18
- 'kuuden',
19
- numbersPast[7],
20
- numbersPast[8],
21
- numbersPast[9],
22
- ];
23
- function translate(number, withoutSuffix, key, isFuture) {
24
- var result = '';
25
- switch (key) {
26
- case 's':
27
- return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
28
- case 'ss':
29
- result = isFuture ? 'sekunnin' : 'sekuntia';
30
- break;
31
- case 'm':
32
- return isFuture ? 'minuutin' : 'minuutti';
33
- case 'mm':
34
- result = isFuture ? 'minuutin' : 'minuuttia';
35
- break;
36
- case 'h':
37
- return isFuture ? 'tunnin' : 'tunti';
38
- case 'hh':
39
- result = isFuture ? 'tunnin' : 'tuntia';
40
- break;
41
- case 'd':
42
- return isFuture ? 'päivän' : 'päivä';
43
- case 'dd':
44
- result = isFuture ? 'päivän' : 'päivää';
45
- break;
46
- case 'M':
47
- return isFuture ? 'kuukauden' : 'kuukausi';
48
- case 'MM':
49
- result = isFuture ? 'kuukauden' : 'kuukautta';
50
- break;
51
- case 'y':
52
- return isFuture ? 'vuoden' : 'vuosi';
53
- case 'yy':
54
- result = isFuture ? 'vuoden' : 'vuotta';
55
- break;
12
+ //! moment.js locale configuration
13
+
14
+ var numbersPast =
15
+ 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(
16
+ ' '
17
+ ),
18
+ numbersFuture = [
19
+ 'nolla',
20
+ 'yhden',
21
+ 'kahden',
22
+ 'kolmen',
23
+ 'neljän',
24
+ 'viiden',
25
+ 'kuuden',
26
+ numbersPast[7],
27
+ numbersPast[8],
28
+ numbersPast[9],
29
+ ];
30
+ function translate(number, withoutSuffix, key, isFuture) {
31
+ var result = '';
32
+ switch (key) {
33
+ case 's':
34
+ return isFuture ? 'muutaman sekunnin' : 'muutama sekunti';
35
+ case 'ss':
36
+ result = isFuture ? 'sekunnin' : 'sekuntia';
37
+ break;
38
+ case 'm':
39
+ return isFuture ? 'minuutin' : 'minuutti';
40
+ case 'mm':
41
+ result = isFuture ? 'minuutin' : 'minuuttia';
42
+ break;
43
+ case 'h':
44
+ return isFuture ? 'tunnin' : 'tunti';
45
+ case 'hh':
46
+ result = isFuture ? 'tunnin' : 'tuntia';
47
+ break;
48
+ case 'd':
49
+ return isFuture ? 'päivän' : 'päivä';
50
+ case 'dd':
51
+ result = isFuture ? 'päivän' : 'päivää';
52
+ break;
53
+ case 'M':
54
+ return isFuture ? 'kuukauden' : 'kuukausi';
55
+ case 'MM':
56
+ result = isFuture ? 'kuukauden' : 'kuukautta';
57
+ break;
58
+ case 'y':
59
+ return isFuture ? 'vuoden' : 'vuosi';
60
+ case 'yy':
61
+ result = isFuture ? 'vuoden' : 'vuotta';
62
+ break;
63
+ }
64
+ result = verbalNumber(number, isFuture) + ' ' + result;
65
+ return result;
66
+ }
67
+ function verbalNumber(number, isFuture) {
68
+ return number < 10
69
+ ? isFuture
70
+ ? numbersFuture[number]
71
+ : numbersPast[number]
72
+ : number;
56
73
  }
57
- result = verbalNumber(number, isFuture) + ' ' + result;
58
- return result;
59
- }
60
- function verbalNumber(number, isFuture) {
61
- return number < 10
62
- ? isFuture
63
- ? numbersFuture[number]
64
- : numbersPast[number]
65
- : number;
66
- }
67
74
 
68
- export default moment.defineLocale('fi', {
69
- months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
70
- '_'
71
- ),
72
- monthsShort:
73
- 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
75
+ var fi = moment.defineLocale('fi', {
76
+ months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split(
74
77
  '_'
75
78
  ),
76
- weekdays:
77
- 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
78
- '_'
79
- ),
80
- weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
81
- weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
82
- longDateFormat: {
83
- LT: 'HH.mm',
84
- LTS: 'HH.mm.ss',
85
- L: 'DD.MM.YYYY',
86
- LL: 'Do MMMM[ta] YYYY',
87
- LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
88
- LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
89
- l: 'D.M.YYYY',
90
- ll: 'Do MMM YYYY',
91
- lll: 'Do MMM YYYY, [klo] HH.mm',
92
- llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
93
- },
94
- calendar: {
95
- sameDay: '[tänään] [klo] LT',
96
- nextDay: '[huomenna] [klo] LT',
97
- nextWeek: 'dddd [klo] LT',
98
- lastDay: '[eilen] [klo] LT',
99
- lastWeek: '[viime] dddd[na] [klo] LT',
100
- sameElse: 'L',
101
- },
102
- relativeTime: {
103
- future: '%s päästä',
104
- past: '%s sitten',
105
- s: translate,
106
- ss: translate,
107
- m: translate,
108
- mm: translate,
109
- h: translate,
110
- hh: translate,
111
- d: translate,
112
- dd: translate,
113
- M: translate,
114
- MM: translate,
115
- y: translate,
116
- yy: translate,
117
- },
118
- dayOfMonthOrdinalParse: /\d{1,2}\./,
119
- ordinal: '%d.',
120
- week: {
121
- dow: 1, // Monday is the first day of the week.
122
- doy: 4, // The week that contains Jan 4th is the first week of the year.
123
- },
124
- });
79
+ monthsShort:
80
+ 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split(
81
+ '_'
82
+ ),
83
+ weekdays:
84
+ 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split(
85
+ '_'
86
+ ),
87
+ weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'),
88
+ weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'),
89
+ longDateFormat: {
90
+ LT: 'HH.mm',
91
+ LTS: 'HH.mm.ss',
92
+ L: 'DD.MM.YYYY',
93
+ LL: 'Do MMMM[ta] YYYY',
94
+ LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm',
95
+ LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm',
96
+ l: 'D.M.YYYY',
97
+ ll: 'Do MMM YYYY',
98
+ lll: 'Do MMM YYYY, [klo] HH.mm',
99
+ llll: 'ddd, Do MMM YYYY, [klo] HH.mm',
100
+ },
101
+ calendar: {
102
+ sameDay: '[tänään] [klo] LT',
103
+ nextDay: '[huomenna] [klo] LT',
104
+ nextWeek: 'dddd [klo] LT',
105
+ lastDay: '[eilen] [klo] LT',
106
+ lastWeek: '[viime] dddd[na] [klo] LT',
107
+ sameElse: 'L',
108
+ },
109
+ relativeTime: {
110
+ future: '%s päästä',
111
+ past: '%s sitten',
112
+ s: translate,
113
+ ss: translate,
114
+ m: translate,
115
+ mm: translate,
116
+ h: translate,
117
+ hh: translate,
118
+ d: translate,
119
+ dd: translate,
120
+ M: translate,
121
+ MM: translate,
122
+ y: translate,
123
+ yy: translate,
124
+ },
125
+ dayOfMonthOrdinalParse: /\d{1,2}\./,
126
+ ordinal: '%d.',
127
+ week: {
128
+ dow: 1, // Monday is the first day of the week.
129
+ doy: 4, // The week that contains Jan 4th is the first week of the year.
130
+ },
131
+ });
132
+
133
+ return fi;
134
+
135
+ })));