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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/news.md +3 -0
- data/vendor/assets/javascripts/moment/af.js +77 -66
- data/vendor/assets/javascripts/moment/ar-dz.js +156 -145
- data/vendor/assets/javascripts/moment/ar-kw.js +59 -48
- data/vendor/assets/javascripts/moment/ar-ly.js +175 -164
- data/vendor/assets/javascripts/moment/ar-ma.js +59 -48
- data/vendor/assets/javascripts/moment/ar-sa.js +108 -97
- data/vendor/assets/javascripts/moment/ar-tn.js +59 -48
- data/vendor/assets/javascripts/moment/ar.js +191 -180
- data/vendor/assets/javascripts/moment/az.js +105 -94
- data/vendor/assets/javascripts/moment/be.js +137 -126
- data/vendor/assets/javascripts/moment/bg.js +91 -80
- data/vendor/assets/javascripts/moment/bm.js +57 -47
- data/vendor/assets/javascripts/moment/bn-bd.js +130 -119
- data/vendor/assets/javascripts/moment/bn.js +122 -111
- data/vendor/assets/javascripts/moment/bo.js +125 -114
- data/vendor/assets/javascripts/moment/br.js +165 -154
- data/vendor/assets/javascripts/moment/bs.js +149 -138
- data/vendor/assets/javascripts/moment/ca.js +99 -88
- data/vendor/assets/javascripts/moment/cs.js +179 -168
- data/vendor/assets/javascripts/moment/cv.js +66 -55
- data/vendor/assets/javascripts/moment/cy.js +100 -89
- data/vendor/assets/javascripts/moment/da.js +59 -48
- data/vendor/assets/javascripts/moment/de-at.js +79 -68
- data/vendor/assets/javascripts/moment/de-ch.js +78 -69
- data/vendor/assets/javascripts/moment/de.js +79 -68
- data/vendor/assets/javascripts/moment/dv.js +95 -84
- data/vendor/assets/javascripts/moment/el.js +107 -96
- data/vendor/assets/javascripts/moment/en-au.js +74 -63
- data/vendor/assets/javascripts/moment/en-ca.js +70 -59
- data/vendor/assets/javascripts/moment/en-gb.js +74 -63
- data/vendor/assets/javascripts/moment/en-ie.js +74 -63
- data/vendor/assets/javascripts/moment/en-il.js +70 -59
- data/vendor/assets/javascripts/moment/en-in.js +74 -63
- data/vendor/assets/javascripts/moment/en-nz.js +74 -63
- data/vendor/assets/javascripts/moment/en-sg.js +74 -63
- data/vendor/assets/javascripts/moment/eo.js +71 -60
- data/vendor/assets/javascripts/moment/es-do.js +108 -97
- data/vendor/assets/javascripts/moment/es-mx.js +109 -98
- data/vendor/assets/javascripts/moment/es-us.js +108 -97
- data/vendor/assets/javascripts/moment/es.js +109 -98
- data/vendor/assets/javascripts/moment/et.js +79 -68
- data/vendor/assets/javascripts/moment/eu.js +69 -58
- data/vendor/assets/javascripts/moment/fa.js +116 -105
- data/vendor/assets/javascripts/moment/fi.js +126 -115
- data/vendor/assets/javascripts/moment/fil.js +63 -52
- data/vendor/assets/javascripts/moment/fo.js +60 -49
- data/vendor/assets/javascripts/moment/fr-ca.js +73 -62
- data/vendor/assets/javascripts/moment/fr-ch.js +77 -66
- data/vendor/assets/javascripts/moment/fr.js +109 -98
- data/vendor/assets/javascripts/moment/fy.js +80 -69
- data/vendor/assets/javascripts/moment/ga.js +100 -89
- data/vendor/assets/javascripts/moment/gd.js +100 -89
- data/vendor/assets/javascripts/moment/gl.js +75 -64
- data/vendor/assets/javascripts/moment/gom-deva.js +129 -118
- data/vendor/assets/javascripts/moment/gom-latn.js +127 -116
- data/vendor/assets/javascripts/moment/gu.js +125 -114
- data/vendor/assets/javascripts/moment/he.js +93 -82
- data/vendor/assets/javascripts/moment/hi.js +165 -154
- data/vendor/assets/javascripts/moment/hr.js +154 -143
- data/vendor/assets/javascripts/moment/hu.js +117 -106
- data/vendor/assets/javascripts/moment/hy-am.js +96 -85
- data/vendor/assets/javascripts/moment/id.js +81 -70
- data/vendor/assets/javascripts/moment/is.js +136 -125
- data/vendor/assets/javascripts/moment/it-ch.js +68 -57
- data/vendor/assets/javascripts/moment/it.js +106 -95
- data/vendor/assets/javascripts/moment/ja.js +146 -135
- data/vendor/assets/javascripts/moment/jv.js +81 -70
- data/vendor/assets/javascripts/moment/ka.js +91 -80
- data/vendor/assets/javascripts/moment/kk.js +87 -76
- data/vendor/assets/javascripts/moment/km.js +106 -95
- data/vendor/assets/javascripts/moment/kn.js +127 -116
- data/vendor/assets/javascripts/moment/ko.js +80 -69
- data/vendor/assets/javascripts/moment/ku.js +123 -112
- data/vendor/assets/javascripts/moment/ky.js +89 -78
- data/vendor/assets/javascripts/moment/lb.js +132 -121
- data/vendor/assets/javascripts/moment/lo.js +70 -59
- data/vendor/assets/javascripts/moment/lt.js +123 -112
- data/vendor/assets/javascripts/moment/lv.js +95 -84
- data/vendor/assets/javascripts/moment/me.js +119 -108
- data/vendor/assets/javascripts/moment/mi.js +64 -53
- data/vendor/assets/javascripts/moment/mk.js +90 -78
- data/vendor/assets/javascripts/moment/ml.js +86 -75
- data/vendor/assets/javascripts/moment/mn.js +101 -90
- data/vendor/assets/javascripts/moment/mr.js +202 -191
- data/vendor/assets/javascripts/moment/ms-my.js +81 -70
- data/vendor/assets/javascripts/moment/ms.js +81 -70
- data/vendor/assets/javascripts/moment/mt.js +60 -49
- data/vendor/assets/javascripts/moment/my.js +93 -82
- data/vendor/assets/javascripts/moment/nb.js +64 -53
- data/vendor/assets/javascripts/moment/ne.js +124 -113
- data/vendor/assets/javascripts/moment/nl-be.js +103 -92
- data/vendor/assets/javascripts/moment/nl.js +105 -94
- data/vendor/assets/javascripts/moment/nn.js +64 -53
- data/vendor/assets/javascripts/moment/oc-lnc.js +87 -76
- data/vendor/assets/javascripts/moment/pa-in.js +125 -114
- data/vendor/assets/javascripts/moment/pl.js +138 -127
- data/vendor/assets/javascripts/moment/pt-br.js +61 -50
- data/vendor/assets/javascripts/moment/pt.js +66 -55
- data/vendor/assets/javascripts/moment/ro.js +76 -65
- data/vendor/assets/javascripts/moment/ru.js +198 -187
- data/vendor/assets/javascripts/moment/sd.js +86 -75
- data/vendor/assets/javascripts/moment/se.js +61 -50
- data/vendor/assets/javascripts/moment/si.js +73 -62
- data/vendor/assets/javascripts/moment/sk.js +146 -135
- data/vendor/assets/javascripts/moment/sl.js +170 -159
- data/vendor/assets/javascripts/moment/sq.js +69 -58
- data/vendor/assets/javascripts/moment/sr-cyrl.js +126 -115
- data/vendor/assets/javascripts/moment/sr.js +128 -117
- data/vendor/assets/javascripts/moment/ss.js +87 -76
- data/vendor/assets/javascripts/moment/sv.js +74 -63
- data/vendor/assets/javascripts/moment/sw.js +59 -48
- data/vendor/assets/javascripts/moment/ta.js +132 -121
- data/vendor/assets/javascripts/moment/te.js +92 -81
- data/vendor/assets/javascripts/moment/tet.js +72 -61
- data/vendor/assets/javascripts/moment/tg.js +120 -109
- data/vendor/assets/javascripts/moment/th.js +69 -58
- data/vendor/assets/javascripts/moment/tk.js +96 -85
- data/vendor/assets/javascripts/moment/tl-ph.js +63 -52
- data/vendor/assets/javascripts/moment/tlh.js +120 -109
- data/vendor/assets/javascripts/moment/tr.js +110 -99
- data/vendor/assets/javascripts/moment/tzl.js +93 -82
- data/vendor/assets/javascripts/moment/tzm-latn.js +58 -47
- data/vendor/assets/javascripts/moment/tzm.js +58 -47
- data/vendor/assets/javascripts/moment/ug-cn.js +114 -103
- data/vendor/assets/javascripts/moment/uk.js +163 -152
- data/vendor/assets/javascripts/moment/ur.js +86 -75
- data/vendor/assets/javascripts/moment/uz-latn.js +58 -47
- data/vendor/assets/javascripts/moment/uz.js +57 -46
- data/vendor/assets/javascripts/moment/vi.js +83 -72
- data/vendor/assets/javascripts/moment/x-pseudo.js +77 -66
- data/vendor/assets/javascripts/moment/yo.js +59 -48
- data/vendor/assets/javascripts/moment/zh-cn.js +118 -107
- data/vendor/assets/javascripts/moment/zh-hk.js +104 -93
- data/vendor/assets/javascripts/moment/zh-mo.js +104 -93
- data/vendor/assets/javascripts/moment/zh-tw.js +104 -93
- data/vendor/assets/javascripts/moment.js +5018 -5010
- metadata +2 -2
@@ -2,64 +2,75 @@
|
|
2
2
|
//! locale : Basque [eu]
|
3
3
|
//! author : Eneko Illarramendi : https://github.com/eillarra
|
4
4
|
|
5
|
-
|
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
|
-
|
8
|
-
|
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
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
'
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
'
|
43
|
-
|
44
|
-
|
45
|
-
|
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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
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
|
-
|
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
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
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
|
-
|
69
|
-
|
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
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
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
|
+
})));
|