momentjs-rails 2.20.1 → 2.29.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/test/dummy/app/assets/config/manifest.js +1 -0
- data/test/dummy/config/environments/development.rb +2 -0
- data/test/dummy/config/environments/production.rb +1 -0
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-H/-H77gbOgi-dwHJoevs2PsAJBV-nde7DFDWBPXqUrMkw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/-y/-ypqz4WBYM3Qftk20RenhtH0iPKxdtyu6t3hVOjJLL4.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/1l/1l4oJ9T6GJ0pN-vGrH1QH9XT7AVF3Z9pakdHrxcsuXw.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3T/3TjWGZFWBLAEGSW7kQIDJIL6_MukMwz_wLDMwgYsN1E.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/3e/3eGeoVsqjktkiAfNQ4zBuxtb0rtVWyQsKgjho5OHYnY.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9C/9Cy8L_tqI8SvH-pVigMqBlPTus4vnZvt3YE2y8--beE.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/9z/9zOsSzS7x1TCGFnvxdjQdrEL2MENRZARP2fzL5JYLF0.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/AP/AP7JoF1ZWY1lf5txW64EpzKJEzOIsR9Wkn_V0pl6Kzo.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Bu/BuxnmLYpqxwN3qck74Nh3Adaqz5VwdArL7wCZx6TnII.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/JO/JO9QyaKhLUs4VF1ODPXLiqcSziQS4x3sudms-3GYjww.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Mn/MnWwrzXFar6jFGAfp8PS_cZXjeFYCA85xsTQT758958.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/OM/OM7fRuvTUPQcZERsO6Tsv0fvTdZqsRZbN-mYK00TwnI.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnNlsrskw8SKHpOLkqJgEN_HjZzB2jsQZauj-dnQQ2A.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Rf/RfFWq_tyttbS2wyfSc0kKvcSxUeC_m01sL3Dl6EWEqM.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Ru/RuQ9HENefRmSoZaLfw7LalsxdBHpKJMyc2c3OQ_kQr8.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/T-/T-9_ffpUxh6GAYTAzM3sF5lykyt9GVpcbKZaRXxw0wA.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zj/Zjn9OiwGREdMXvLZA-tY289lQslnn7R3BrSwhsntMWQ.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/Zm/Zmp1hSfJjOVQBTRXZ-xSs8qqIK6lmyQ4GK_uYVsDVJc.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/bR/bRSmDUPNI--mMuAgRHWf1r56iydNwHRg_wniS8HqhNg.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dA/dAAcqCClwz0OKgpbEd9G3OUYKW1TeNqJV49Zxh2bQ5A.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/dh/dhlLaVScr1-Ty5UFcg6xdU4xSWIuySWzjcC5OU2mOf4.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/gt/gtu4KqwPpmom4hwtRz9x180bzJzATR6V8hyE3uHsyas.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/kl/klJHIoyRhrimisvwpjAPKxae89riL_0exIgpv4u3u5Y.cache +0 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/m1/m16f5eEXdsOfzbCB88BS3eojIypOTYQjyyv5kkTDwxY.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/mm/mmqv3-gEoPWhMrVamMnpI1csCNLKpv-qVQgHERXQNaU.cache +2 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/rp/rpqm2QeVJPWIySovDg4XdCnI6X5_FXCd0pZhuOnwAfk.cache +1 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/wx/wxFkskdA6iSIVZxka368Y8wkP-3edr2nlW4VSOI6GhY.cache +3 -0
- data/test/dummy/tmp/cache/assets/sprockets/v4.0.0/xP/xPbdGyTHlpGRgIS0gbG9suCByeakXeTFaQ1B_h3_aUI.cache +0 -0
- data/test/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment/af.js +51 -54
- data/vendor/assets/javascripts/moment/ar-dz.js +150 -54
- data/vendor/assets/javascripts/moment/ar-kw.js +40 -46
- data/vendor/assets/javascripts/moment/ar-ly.js +141 -97
- data/vendor/assets/javascripts/moment/ar-ma.js +40 -46
- data/vendor/assets/javascripts/moment/ar-sa.js +75 -77
- data/vendor/assets/javascripts/moment/ar-tn.js +15 -21
- data/vendor/assets/javascripts/moment/ar.js +158 -112
- data/vendor/assets/javascripts/moment/az.js +52 -57
- data/vendor/assets/javascripts/moment/be.js +69 -63
- data/vendor/assets/javascripts/moment/bg.js +49 -53
- data/vendor/assets/javascripts/moment/bm.js +43 -51
- data/vendor/assets/javascripts/moment/bn-bd.js +128 -0
- data/vendor/assets/javascripts/moment/bn.js +76 -78
- data/vendor/assets/javascripts/moment/bo.js +80 -78
- data/vendor/assets/javascripts/moment/br.js +115 -59
- data/vendor/assets/javascripts/moment/bs.js +48 -52
- data/vendor/assets/javascripts/moment/ca.js +76 -68
- data/vendor/assets/javascripts/moment/cs.js +80 -89
- data/vendor/assets/javascripts/moment/cv.js +45 -47
- data/vendor/assets/javascripts/moment/cy.js +41 -26
- data/vendor/assets/javascripts/moment/da.js +43 -51
- data/vendor/assets/javascripts/moment/de-at.js +53 -54
- data/vendor/assets/javascripts/moment/de-ch.js +54 -55
- data/vendor/assets/javascripts/moment/de.js +53 -54
- data/vendor/assets/javascripts/moment/dv.js +64 -75
- data/vendor/assets/javascripts/moment/el.js +63 -60
- data/vendor/assets/javascripts/moment/en-au.js +55 -55
- data/vendor/assets/javascripts/moment/en-ca.js +52 -52
- data/vendor/assets/javascripts/moment/en-gb.js +55 -55
- data/vendor/assets/javascripts/moment/en-ie.js +55 -55
- data/vendor/assets/javascripts/moment/en-il.js +64 -0
- data/vendor/assets/javascripts/moment/en-in.js +68 -0
- data/vendor/assets/javascripts/moment/en-nz.js +55 -55
- data/vendor/assets/javascripts/moment/en-sg.js +68 -0
- data/vendor/assets/javascripts/moment/eo.js +46 -52
- data/vendor/assets/javascripts/moment/es-do.js +75 -63
- data/vendor/assets/javascripts/moment/es-mx.js +106 -0
- data/vendor/assets/javascripts/moment/es-us.js +83 -61
- data/vendor/assets/javascripts/moment/es.js +83 -70
- data/vendor/assets/javascripts/moment/et.js +58 -62
- data/vendor/assets/javascripts/moment/eu.js +53 -57
- data/vendor/assets/javascripts/moment/fa.js +84 -82
- data/vendor/assets/javascripts/moment/fi.js +72 -61
- data/vendor/assets/javascripts/moment/fil.js +58 -0
- data/vendor/assets/javascripts/moment/fo.js +46 -51
- data/vendor/assets/javascripts/moment/fr-ca.js +44 -50
- data/vendor/assets/javascripts/moment/fr-ch.js +47 -53
- data/vendor/assets/javascripts/moment/fr.js +72 -52
- data/vendor/assets/javascripts/moment/fy.js +52 -51
- data/vendor/assets/javascripts/moment/ga.js +95 -0
- data/vendor/assets/javascripts/moment/gd.js +81 -63
- data/vendor/assets/javascripts/moment/gl.js +54 -58
- data/vendor/assets/javascripts/moment/gom-deva.js +124 -0
- data/vendor/assets/javascripts/moment/gom-latn.js +70 -70
- data/vendor/assets/javascripts/moment/gu.js +30 -34
- data/vendor/assets/javascripts/moment/he.js +48 -54
- data/vendor/assets/javascripts/moment/hi.js +115 -76
- data/vendor/assets/javascripts/moment/hr.js +54 -55
- data/vendor/assets/javascripts/moment/hu.js +63 -56
- data/vendor/assets/javascripts/moment/hy-am.js +44 -48
- data/vendor/assets/javascripts/moment/id.js +44 -52
- data/vendor/assets/javascripts/moment/is.js +61 -55
- data/vendor/assets/javascripts/moment/it-ch.js +64 -0
- data/vendor/assets/javascripts/moment/it.js +89 -54
- data/vendor/assets/javascripts/moment/ja.js +122 -55
- data/vendor/assets/javascripts/moment/jv.js +44 -52
- data/vendor/assets/javascripts/moment/ka.js +68 -66
- data/vendor/assets/javascripts/moment/kk.js +46 -52
- data/vendor/assets/javascripts/moment/km.js +64 -21
- data/vendor/assets/javascripts/moment/kn.js +72 -76
- data/vendor/assets/javascripts/moment/ko.js +48 -56
- data/vendor/assets/javascripts/moment/ku.js +118 -0
- data/vendor/assets/javascripts/moment/ky.js +48 -53
- data/vendor/assets/javascripts/moment/lb.js +39 -42
- data/vendor/assets/javascripts/moment/lo.js +44 -50
- data/vendor/assets/javascripts/moment/lt.js +79 -75
- data/vendor/assets/javascripts/moment/lv.js +57 -63
- data/vendor/assets/javascripts/moment/me.js +53 -48
- data/vendor/assets/javascripts/moment/mi.js +15 -21
- data/vendor/assets/javascripts/moment/mk.js +46 -52
- data/vendor/assets/javascripts/moment/ml.js +51 -53
- data/vendor/assets/javascripts/moment/mn.js +99 -0
- data/vendor/assets/javascripts/moment/mr.js +140 -100
- data/vendor/assets/javascripts/moment/ms-my.js +43 -51
- data/vendor/assets/javascripts/moment/ms.js +43 -51
- data/vendor/assets/javascripts/moment/mt.js +45 -51
- data/vendor/assets/javascripts/moment/my.js +37 -43
- data/vendor/assets/javascripts/moment/nb.js +45 -48
- data/vendor/assets/javascripts/moment/ne.js +73 -77
- data/vendor/assets/javascripts/moment/nl-be.js +70 -57
- data/vendor/assets/javascripts/moment/nl.js +72 -57
- data/vendor/assets/javascripts/moment/nn.js +46 -47
- data/vendor/assets/javascripts/moment/oc-lnc.js +83 -0
- data/vendor/assets/javascripts/moment/pa-in.js +72 -76
- data/vendor/assets/javascripts/moment/pl.js +67 -55
- data/vendor/assets/javascripts/moment/pt-br.js +41 -46
- data/vendor/assets/javascripts/moment/pt.js +46 -50
- data/vendor/assets/javascripts/moment/ro.js +49 -51
- data/vendor/assets/javascripts/moment/ru.js +104 -83
- data/vendor/assets/javascripts/moment/sd.js +56 -74
- data/vendor/assets/javascripts/moment/se.js +41 -46
- data/vendor/assets/javascripts/moment/si.js +48 -52
- data/vendor/assets/javascripts/moment/sk.js +52 -66
- data/vendor/assets/javascripts/moment/sl.js +50 -54
- data/vendor/assets/javascripts/moment/sq.js +47 -53
- data/vendor/assets/javascripts/moment/sr-cyrl.js +53 -49
- data/vendor/assets/javascripts/moment/sr.js +56 -50
- data/vendor/assets/javascripts/moment/ss.js +48 -55
- data/vendor/assets/javascripts/moment/sv.js +51 -53
- data/vendor/assets/javascripts/moment/sw.js +45 -51
- data/vendor/assets/javascripts/moment/ta.js +75 -77
- data/vendor/assets/javascripts/moment/te.js +51 -55
- data/vendor/assets/javascripts/moment/tet.js +49 -50
- data/vendor/assets/javascripts/moment/tg.js +116 -0
- data/vendor/assets/javascripts/moment/th.js +45 -49
- data/vendor/assets/javascripts/moment/tk.js +91 -0
- data/vendor/assets/javascripts/moment/tl-ph.js +40 -46
- data/vendor/assets/javascripts/moment/tlh.js +69 -67
- data/vendor/assets/javascripts/moment/tr.js +91 -76
- data/vendor/assets/javascripts/moment/tzl.js +65 -69
- data/vendor/assets/javascripts/moment/tzm-latn.js +39 -45
- data/vendor/assets/javascripts/moment/tzm.js +38 -44
- data/vendor/assets/javascripts/moment/ug-cn.js +110 -0
- data/vendor/assets/javascripts/moment/uk.js +78 -68
- data/vendor/assets/javascripts/moment/ur.js +56 -74
- data/vendor/assets/javascripts/moment/uz-latn.js +44 -50
- data/vendor/assets/javascripts/moment/uz.js +42 -50
- data/vendor/assets/javascripts/moment/vi.js +54 -55
- data/vendor/assets/javascripts/moment/x-pseudo.js +58 -56
- data/vendor/assets/javascripts/moment/yo.js +44 -52
- data/vendor/assets/javascripts/moment/zh-cn.js +66 -58
- data/vendor/assets/javascripts/moment/zh-hk.js +58 -63
- data/vendor/assets/javascripts/moment/zh-mo.js +100 -0
- data/vendor/assets/javascripts/moment/zh-tw.js +55 -61
- data/vendor/assets/javascripts/moment.js +2673 -1546
- metadata +92 -31
- data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
- data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
- data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
- data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
- data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
@@ -2,67 +2,63 @@
|
|
2
2
|
//! locale : Thai [th]
|
3
3
|
//! author : Kridsada Thanabulpong : https://github.com/sirn
|
4
4
|
|
5
|
-
|
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';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
7
|
+
export default moment.defineLocale('th', {
|
8
|
+
months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split(
|
12
|
+
'_'
|
13
|
+
),
|
16
14
|
monthsParseExact: true,
|
17
|
-
weekdays
|
18
|
-
weekdaysShort
|
19
|
-
weekdaysMin
|
20
|
-
weekdaysParseExact
|
21
|
-
longDateFormat
|
22
|
-
LT
|
23
|
-
LTS
|
24
|
-
L
|
25
|
-
LL
|
26
|
-
LLL
|
27
|
-
LLLL
|
15
|
+
weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'),
|
16
|
+
weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), // yes, three characters difference
|
17
|
+
weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'),
|
18
|
+
weekdaysParseExact: true,
|
19
|
+
longDateFormat: {
|
20
|
+
LT: 'H:mm',
|
21
|
+
LTS: 'H:mm:ss',
|
22
|
+
L: 'DD/MM/YYYY',
|
23
|
+
LL: 'D MMMM YYYY',
|
24
|
+
LLL: 'D MMMM YYYY เวลา H:mm',
|
25
|
+
LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm',
|
28
26
|
},
|
29
27
|
meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
|
30
28
|
isPM: function (input) {
|
31
29
|
return input === 'หลังเที่ยง';
|
32
30
|
},
|
33
|
-
meridiem
|
31
|
+
meridiem: function (hour, minute, isLower) {
|
34
32
|
if (hour < 12) {
|
35
33
|
return 'ก่อนเที่ยง';
|
36
34
|
} else {
|
37
35
|
return 'หลังเที่ยง';
|
38
36
|
}
|
39
37
|
},
|
40
|
-
calendar
|
41
|
-
sameDay
|
42
|
-
nextDay
|
43
|
-
nextWeek
|
44
|
-
lastDay
|
45
|
-
lastWeek
|
46
|
-
sameElse
|
38
|
+
calendar: {
|
39
|
+
sameDay: '[วันนี้ เวลา] LT',
|
40
|
+
nextDay: '[พรุ่งนี้ เวลา] LT',
|
41
|
+
nextWeek: 'dddd[หน้า เวลา] LT',
|
42
|
+
lastDay: '[เมื่อวานนี้ เวลา] LT',
|
43
|
+
lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT',
|
44
|
+
sameElse: 'L',
|
45
|
+
},
|
46
|
+
relativeTime: {
|
47
|
+
future: 'อีก %s',
|
48
|
+
past: '%sที่แล้ว',
|
49
|
+
s: 'ไม่กี่วินาที',
|
50
|
+
ss: '%d วินาที',
|
51
|
+
m: '1 นาที',
|
52
|
+
mm: '%d นาที',
|
53
|
+
h: '1 ชั่วโมง',
|
54
|
+
hh: '%d ชั่วโมง',
|
55
|
+
d: '1 วัน',
|
56
|
+
dd: '%d วัน',
|
57
|
+
w: '1 สัปดาห์',
|
58
|
+
ww: '%d สัปดาห์',
|
59
|
+
M: '1 เดือน',
|
60
|
+
MM: '%d เดือน',
|
61
|
+
y: '1 ปี',
|
62
|
+
yy: '%d ปี',
|
47
63
|
},
|
48
|
-
relativeTime : {
|
49
|
-
future : 'อีก %s',
|
50
|
-
past : '%sที่แล้ว',
|
51
|
-
s : 'ไม่กี่วินาที',
|
52
|
-
ss : '%d วินาที',
|
53
|
-
m : '1 นาที',
|
54
|
-
mm : '%d นาที',
|
55
|
-
h : '1 ชั่วโมง',
|
56
|
-
hh : '%d ชั่วโมง',
|
57
|
-
d : '1 วัน',
|
58
|
-
dd : '%d วัน',
|
59
|
-
M : '1 เดือน',
|
60
|
-
MM : '%d เดือน',
|
61
|
-
y : '1 ปี',
|
62
|
-
yy : '%d ปี'
|
63
|
-
}
|
64
64
|
});
|
65
|
-
|
66
|
-
return th;
|
67
|
-
|
68
|
-
})));
|
@@ -0,0 +1,91 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Turkmen [tk]
|
3
|
+
//! author : Atamyrat Abdyrahmanov : https://github.com/atamyratabdy
|
4
|
+
|
5
|
+
import moment from '../moment';
|
6
|
+
|
7
|
+
var suffixes = {
|
8
|
+
1: "'inji",
|
9
|
+
5: "'inji",
|
10
|
+
8: "'inji",
|
11
|
+
70: "'inji",
|
12
|
+
80: "'inji",
|
13
|
+
2: "'nji",
|
14
|
+
7: "'nji",
|
15
|
+
20: "'nji",
|
16
|
+
50: "'nji",
|
17
|
+
3: "'ünji",
|
18
|
+
4: "'ünji",
|
19
|
+
100: "'ünji",
|
20
|
+
6: "'njy",
|
21
|
+
9: "'unjy",
|
22
|
+
10: "'unjy",
|
23
|
+
30: "'unjy",
|
24
|
+
60: "'ynjy",
|
25
|
+
90: "'ynjy",
|
26
|
+
};
|
27
|
+
|
28
|
+
export default moment.defineLocale('tk', {
|
29
|
+
months: 'Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr'.split(
|
30
|
+
'_'
|
31
|
+
),
|
32
|
+
monthsShort: 'Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek'.split('_'),
|
33
|
+
weekdays: 'Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
weekdaysShort: 'Ýek_Duş_Siş_Çar_Pen_Ann_Şen'.split('_'),
|
37
|
+
weekdaysMin: 'Ýk_Dş_Sş_Çr_Pn_An_Şn'.split('_'),
|
38
|
+
longDateFormat: {
|
39
|
+
LT: 'HH:mm',
|
40
|
+
LTS: 'HH:mm:ss',
|
41
|
+
L: 'DD.MM.YYYY',
|
42
|
+
LL: 'D MMMM YYYY',
|
43
|
+
LLL: 'D MMMM YYYY HH:mm',
|
44
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
45
|
+
},
|
46
|
+
calendar: {
|
47
|
+
sameDay: '[bugün sagat] LT',
|
48
|
+
nextDay: '[ertir sagat] LT',
|
49
|
+
nextWeek: '[indiki] dddd [sagat] LT',
|
50
|
+
lastDay: '[düýn] LT',
|
51
|
+
lastWeek: '[geçen] dddd [sagat] LT',
|
52
|
+
sameElse: 'L',
|
53
|
+
},
|
54
|
+
relativeTime: {
|
55
|
+
future: '%s soň',
|
56
|
+
past: '%s öň',
|
57
|
+
s: 'birnäçe sekunt',
|
58
|
+
m: 'bir minut',
|
59
|
+
mm: '%d minut',
|
60
|
+
h: 'bir sagat',
|
61
|
+
hh: '%d sagat',
|
62
|
+
d: 'bir gün',
|
63
|
+
dd: '%d gün',
|
64
|
+
M: 'bir aý',
|
65
|
+
MM: '%d aý',
|
66
|
+
y: 'bir ýyl',
|
67
|
+
yy: '%d ýyl',
|
68
|
+
},
|
69
|
+
ordinal: function (number, period) {
|
70
|
+
switch (period) {
|
71
|
+
case 'd':
|
72
|
+
case 'D':
|
73
|
+
case 'Do':
|
74
|
+
case 'DD':
|
75
|
+
return number;
|
76
|
+
default:
|
77
|
+
if (number === 0) {
|
78
|
+
// special case for zero
|
79
|
+
return number + "'unjy";
|
80
|
+
}
|
81
|
+
var a = number % 10,
|
82
|
+
b = (number % 100) - a,
|
83
|
+
c = number >= 100 ? 100 : null;
|
84
|
+
return number + (suffixes[a] || suffixes[b] || suffixes[c]);
|
85
|
+
}
|
86
|
+
},
|
87
|
+
week: {
|
88
|
+
dow: 1, // Monday is the first day of the week.
|
89
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
90
|
+
},
|
91
|
+
});
|
@@ -2,62 +2,56 @@
|
|
2
2
|
//! locale : Tagalog (Philippines) [tl-ph]
|
3
3
|
//! author : Dan Hagman : https://github.com/hagmandan
|
4
4
|
|
5
|
-
|
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';
|
5
|
+
import moment from '../moment';
|
11
6
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
7
|
+
export default moment.defineLocale('tl-ph', {
|
8
|
+
months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split(
|
9
|
+
'_'
|
10
|
+
),
|
11
|
+
monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split('_'),
|
12
|
+
weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split(
|
13
|
+
'_'
|
14
|
+
),
|
15
|
+
weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'),
|
16
|
+
weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'),
|
17
|
+
longDateFormat: {
|
18
|
+
LT: 'HH:mm',
|
19
|
+
LTS: 'HH:mm:ss',
|
20
|
+
L: 'MM/D/YYYY',
|
21
|
+
LL: 'MMMM D, YYYY',
|
22
|
+
LLL: 'MMMM D, YYYY HH:mm',
|
23
|
+
LLLL: 'dddd, MMMM DD, YYYY HH:mm',
|
26
24
|
},
|
27
|
-
calendar
|
25
|
+
calendar: {
|
28
26
|
sameDay: 'LT [ngayong araw]',
|
29
27
|
nextDay: '[Bukas ng] LT',
|
30
28
|
nextWeek: 'LT [sa susunod na] dddd',
|
31
29
|
lastDay: 'LT [kahapon]',
|
32
30
|
lastWeek: 'LT [noong nakaraang] dddd',
|
33
|
-
sameElse: 'L'
|
31
|
+
sameElse: 'L',
|
34
32
|
},
|
35
|
-
relativeTime
|
36
|
-
future
|
37
|
-
past
|
38
|
-
s
|
39
|
-
ss
|
40
|
-
m
|
41
|
-
mm
|
42
|
-
h
|
43
|
-
hh
|
44
|
-
d
|
45
|
-
dd
|
46
|
-
M
|
47
|
-
MM
|
48
|
-
y
|
49
|
-
yy
|
33
|
+
relativeTime: {
|
34
|
+
future: 'sa loob ng %s',
|
35
|
+
past: '%s ang nakalipas',
|
36
|
+
s: 'ilang segundo',
|
37
|
+
ss: '%d segundo',
|
38
|
+
m: 'isang minuto',
|
39
|
+
mm: '%d minuto',
|
40
|
+
h: 'isang oras',
|
41
|
+
hh: '%d oras',
|
42
|
+
d: 'isang araw',
|
43
|
+
dd: '%d araw',
|
44
|
+
M: 'isang buwan',
|
45
|
+
MM: '%d buwan',
|
46
|
+
y: 'isang taon',
|
47
|
+
yy: '%d taon',
|
50
48
|
},
|
51
49
|
dayOfMonthOrdinalParse: /\d{1,2}/,
|
52
|
-
ordinal
|
50
|
+
ordinal: function (number) {
|
53
51
|
return number;
|
54
52
|
},
|
55
|
-
week
|
56
|
-
dow
|
57
|
-
doy
|
58
|
-
}
|
53
|
+
week: {
|
54
|
+
dow: 1, // Monday is the first day of the week.
|
55
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
56
|
+
},
|
59
57
|
});
|
60
|
-
|
61
|
-
return tlPh;
|
62
|
-
|
63
|
-
})));
|
@@ -2,37 +2,33 @@
|
|
2
2
|
//! locale : Klingon [tlh]
|
3
3
|
//! author : Dominika Kruk : https://github.com/amaranthrose
|
4
4
|
|
5
|
-
|
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
|
-
|
5
|
+
import moment from '../moment';
|
12
6
|
|
13
7
|
var numbersNouns = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_');
|
14
8
|
|
15
9
|
function translateFuture(output) {
|
16
10
|
var time = output;
|
17
|
-
time =
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
11
|
+
time =
|
12
|
+
output.indexOf('jaj') !== -1
|
13
|
+
? time.slice(0, -3) + 'leS'
|
14
|
+
: output.indexOf('jar') !== -1
|
15
|
+
? time.slice(0, -3) + 'waQ'
|
16
|
+
: output.indexOf('DIS') !== -1
|
17
|
+
? time.slice(0, -3) + 'nem'
|
18
|
+
: time + ' pIq';
|
24
19
|
return time;
|
25
20
|
}
|
26
21
|
|
27
22
|
function translatePast(output) {
|
28
23
|
var time = output;
|
29
|
-
time =
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
24
|
+
time =
|
25
|
+
output.indexOf('jaj') !== -1
|
26
|
+
? time.slice(0, -3) + 'Hu’'
|
27
|
+
: output.indexOf('jar') !== -1
|
28
|
+
? time.slice(0, -3) + 'wen'
|
29
|
+
: output.indexOf('DIS') !== -1
|
30
|
+
? time.slice(0, -3) + 'ben'
|
31
|
+
: time + ' ret';
|
36
32
|
return time;
|
37
33
|
}
|
38
34
|
|
@@ -56,68 +52,74 @@ function translate(number, withoutSuffix, string, isFuture) {
|
|
56
52
|
|
57
53
|
function numberAsNoun(number) {
|
58
54
|
var hundred = Math.floor((number % 1000) / 100),
|
59
|
-
|
60
|
-
|
61
|
-
|
55
|
+
ten = Math.floor((number % 100) / 10),
|
56
|
+
one = number % 10,
|
57
|
+
word = '';
|
62
58
|
if (hundred > 0) {
|
63
59
|
word += numbersNouns[hundred] + 'vatlh';
|
64
60
|
}
|
65
61
|
if (ten > 0) {
|
66
|
-
word += (
|
62
|
+
word += (word !== '' ? ' ' : '') + numbersNouns[ten] + 'maH';
|
67
63
|
}
|
68
64
|
if (one > 0) {
|
69
|
-
word += (
|
65
|
+
word += (word !== '' ? ' ' : '') + numbersNouns[one];
|
70
66
|
}
|
71
|
-
return
|
67
|
+
return word === '' ? 'pagh' : word;
|
72
68
|
}
|
73
69
|
|
74
|
-
|
75
|
-
months
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
70
|
+
export default moment.defineLocale('tlh', {
|
71
|
+
months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split(
|
72
|
+
'_'
|
73
|
+
),
|
74
|
+
monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split(
|
75
|
+
'_'
|
76
|
+
),
|
77
|
+
monthsParseExact: true,
|
78
|
+
weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
|
79
|
+
'_'
|
80
|
+
),
|
81
|
+
weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
|
82
|
+
'_'
|
83
|
+
),
|
84
|
+
weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split(
|
85
|
+
'_'
|
86
|
+
),
|
87
|
+
longDateFormat: {
|
88
|
+
LT: 'HH:mm',
|
89
|
+
LTS: 'HH:mm:ss',
|
90
|
+
L: 'DD.MM.YYYY',
|
91
|
+
LL: 'D MMMM YYYY',
|
92
|
+
LLL: 'D MMMM YYYY HH:mm',
|
93
|
+
LLLL: 'dddd, D MMMM YYYY HH:mm',
|
88
94
|
},
|
89
|
-
calendar
|
95
|
+
calendar: {
|
90
96
|
sameDay: '[DaHjaj] LT',
|
91
97
|
nextDay: '[wa’leS] LT',
|
92
98
|
nextWeek: 'LLL',
|
93
99
|
lastDay: '[wa’Hu’] LT',
|
94
100
|
lastWeek: 'LLL',
|
95
|
-
sameElse: 'L'
|
101
|
+
sameElse: 'L',
|
96
102
|
},
|
97
|
-
relativeTime
|
98
|
-
future
|
99
|
-
past
|
100
|
-
s
|
101
|
-
ss
|
102
|
-
m
|
103
|
-
mm
|
104
|
-
h
|
105
|
-
hh
|
106
|
-
d
|
107
|
-
dd
|
108
|
-
M
|
109
|
-
MM
|
110
|
-
y
|
111
|
-
yy
|
103
|
+
relativeTime: {
|
104
|
+
future: translateFuture,
|
105
|
+
past: translatePast,
|
106
|
+
s: 'puS lup',
|
107
|
+
ss: translate,
|
108
|
+
m: 'wa’ tup',
|
109
|
+
mm: translate,
|
110
|
+
h: 'wa’ rep',
|
111
|
+
hh: translate,
|
112
|
+
d: 'wa’ jaj',
|
113
|
+
dd: translate,
|
114
|
+
M: 'wa’ jar',
|
115
|
+
MM: translate,
|
116
|
+
y: 'wa’ DIS',
|
117
|
+
yy: translate,
|
112
118
|
},
|
113
119
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
114
|
-
ordinal
|
115
|
-
week
|
116
|
-
dow
|
117
|
-
doy
|
118
|
-
}
|
120
|
+
ordinal: '%d.',
|
121
|
+
week: {
|
122
|
+
dow: 1, // Monday is the first day of the week.
|
123
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
124
|
+
},
|
119
125
|
});
|
120
|
-
|
121
|
-
return tlh;
|
122
|
-
|
123
|
-
})));
|