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,76 +2,80 @@
|
|
2
2
|
//! locale : Tibetan [bo]
|
3
3
|
//! author : Thupten N. Chakrishar : https://github.com/vajradog
|
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 symbolMap = {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
};
|
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
|
+
};
|
37
31
|
|
38
|
-
|
39
|
-
months
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
32
|
+
export default moment.defineLocale('bo', {
|
33
|
+
months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split(
|
34
|
+
'_'
|
35
|
+
),
|
36
|
+
monthsShort: 'ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12'.split(
|
37
|
+
'_'
|
38
|
+
),
|
39
|
+
monthsShortRegex: /^(ཟླ་\d{1,2})/,
|
40
|
+
monthsParseExact: true,
|
41
|
+
weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split(
|
42
|
+
'_'
|
43
|
+
),
|
44
|
+
weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split(
|
45
|
+
'_'
|
46
|
+
),
|
47
|
+
weekdaysMin: 'ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན'.split('_'),
|
48
|
+
longDateFormat: {
|
49
|
+
LT: 'A h:mm',
|
50
|
+
LTS: 'A h:mm:ss',
|
51
|
+
L: 'DD/MM/YYYY',
|
52
|
+
LL: 'D MMMM YYYY',
|
53
|
+
LLL: 'D MMMM YYYY, A h:mm',
|
54
|
+
LLLL: 'dddd, D MMMM YYYY, A h:mm',
|
51
55
|
},
|
52
|
-
calendar
|
53
|
-
sameDay
|
54
|
-
nextDay
|
55
|
-
nextWeek
|
56
|
-
lastDay
|
57
|
-
lastWeek
|
58
|
-
sameElse
|
56
|
+
calendar: {
|
57
|
+
sameDay: '[དི་རིང] LT',
|
58
|
+
nextDay: '[སང་ཉིན] LT',
|
59
|
+
nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT',
|
60
|
+
lastDay: '[ཁ་སང] LT',
|
61
|
+
lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
|
62
|
+
sameElse: 'L',
|
59
63
|
},
|
60
|
-
relativeTime
|
61
|
-
future
|
62
|
-
past
|
63
|
-
s
|
64
|
-
ss
|
65
|
-
m
|
66
|
-
mm
|
67
|
-
h
|
68
|
-
hh
|
69
|
-
d
|
70
|
-
dd
|
71
|
-
M
|
72
|
-
MM
|
73
|
-
y
|
74
|
-
yy
|
64
|
+
relativeTime: {
|
65
|
+
future: '%s ལ་',
|
66
|
+
past: '%s སྔན་ལ',
|
67
|
+
s: 'ལམ་སང',
|
68
|
+
ss: '%d སྐར་ཆ།',
|
69
|
+
m: 'སྐར་མ་གཅིག',
|
70
|
+
mm: '%d སྐར་མ',
|
71
|
+
h: 'ཆུ་ཚོད་གཅིག',
|
72
|
+
hh: '%d ཆུ་ཚོད',
|
73
|
+
d: 'ཉིན་གཅིག',
|
74
|
+
dd: '%d ཉིན་',
|
75
|
+
M: 'ཟླ་བ་གཅིག',
|
76
|
+
MM: '%d ཟླ་བ',
|
77
|
+
y: 'ལོ་གཅིག',
|
78
|
+
yy: '%d ལོ',
|
75
79
|
},
|
76
80
|
preparse: function (string) {
|
77
81
|
return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
|
@@ -84,19 +88,21 @@ var bo = moment.defineLocale('bo', {
|
|
84
88
|
});
|
85
89
|
},
|
86
90
|
meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,
|
87
|
-
meridiemHour
|
91
|
+
meridiemHour: function (hour, meridiem) {
|
88
92
|
if (hour === 12) {
|
89
93
|
hour = 0;
|
90
94
|
}
|
91
|
-
if (
|
92
|
-
|
93
|
-
|
95
|
+
if (
|
96
|
+
(meridiem === 'མཚན་མོ' && hour >= 4) ||
|
97
|
+
(meridiem === 'ཉིན་གུང' && hour < 5) ||
|
98
|
+
meridiem === 'དགོང་དག'
|
99
|
+
) {
|
94
100
|
return hour + 12;
|
95
101
|
} else {
|
96
102
|
return hour;
|
97
103
|
}
|
98
104
|
},
|
99
|
-
meridiem
|
105
|
+
meridiem: function (hour, minute, isLower) {
|
100
106
|
if (hour < 4) {
|
101
107
|
return 'མཚན་མོ';
|
102
108
|
} else if (hour < 10) {
|
@@ -109,12 +115,8 @@ var bo = moment.defineLocale('bo', {
|
|
109
115
|
return 'མཚན་མོ';
|
110
116
|
}
|
111
117
|
},
|
112
|
-
week
|
113
|
-
dow
|
114
|
-
doy
|
115
|
-
}
|
118
|
+
week: {
|
119
|
+
dow: 0, // Sunday is the first day of the week.
|
120
|
+
doy: 6, // The week that contains Jan 6th is the first week of the year.
|
121
|
+
},
|
116
122
|
});
|
117
|
-
|
118
|
-
return bo;
|
119
|
-
|
120
|
-
})));
|
@@ -2,19 +2,13 @@
|
|
2
2
|
//! locale : Breton [br]
|
3
3
|
//! author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
|
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
|
function relativeTimeWithMutation(number, withoutSuffix, key) {
|
14
8
|
var format = {
|
15
|
-
|
16
|
-
|
17
|
-
|
9
|
+
mm: 'munutenn',
|
10
|
+
MM: 'miz',
|
11
|
+
dd: 'devezh',
|
18
12
|
};
|
19
13
|
return number + ' ' + mutation(format[key], number);
|
20
14
|
}
|
@@ -44,9 +38,9 @@ function mutation(text, number) {
|
|
44
38
|
}
|
45
39
|
function softMutation(text) {
|
46
40
|
var mutationTable = {
|
47
|
-
|
48
|
-
|
49
|
-
|
41
|
+
m: 'v',
|
42
|
+
b: 'v',
|
43
|
+
d: 'z',
|
50
44
|
};
|
51
45
|
if (mutationTable[text.charAt(0)] === undefined) {
|
52
46
|
return text;
|
@@ -54,56 +48,118 @@ function softMutation(text) {
|
|
54
48
|
return mutationTable[text.charAt(0)] + text.substring(1);
|
55
49
|
}
|
56
50
|
|
57
|
-
var
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
51
|
+
var monthsParse = [
|
52
|
+
/^gen/i,
|
53
|
+
/^c[ʼ\']hwe/i,
|
54
|
+
/^meu/i,
|
55
|
+
/^ebr/i,
|
56
|
+
/^mae/i,
|
57
|
+
/^(mez|eve)/i,
|
58
|
+
/^gou/i,
|
59
|
+
/^eos/i,
|
60
|
+
/^gwe/i,
|
61
|
+
/^her/i,
|
62
|
+
/^du/i,
|
63
|
+
/^ker/i,
|
64
|
+
],
|
65
|
+
monthsRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
|
66
|
+
monthsStrictRegex = /^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,
|
67
|
+
monthsShortStrictRegex = /^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,
|
68
|
+
fullWeekdaysParse = [
|
69
|
+
/^sul/i,
|
70
|
+
/^lun/i,
|
71
|
+
/^meurzh/i,
|
72
|
+
/^merc[ʼ\']her/i,
|
73
|
+
/^yaou/i,
|
74
|
+
/^gwener/i,
|
75
|
+
/^sadorn/i,
|
76
|
+
],
|
77
|
+
shortWeekdaysParse = [
|
78
|
+
/^Sul/i,
|
79
|
+
/^Lun/i,
|
80
|
+
/^Meu/i,
|
81
|
+
/^Mer/i,
|
82
|
+
/^Yao/i,
|
83
|
+
/^Gwe/i,
|
84
|
+
/^Sad/i,
|
85
|
+
],
|
86
|
+
minWeekdaysParse = [
|
87
|
+
/^Su/i,
|
88
|
+
/^Lu/i,
|
89
|
+
/^Me([^r]|$)/i,
|
90
|
+
/^Mer/i,
|
91
|
+
/^Ya/i,
|
92
|
+
/^Gw/i,
|
93
|
+
/^Sa/i,
|
94
|
+
];
|
95
|
+
|
96
|
+
export default moment.defineLocale('br', {
|
97
|
+
months: 'Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu'.split(
|
98
|
+
'_'
|
99
|
+
),
|
100
|
+
monthsShort: 'Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker'.split('_'),
|
101
|
+
weekdays: 'Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn'.split('_'),
|
102
|
+
weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'),
|
103
|
+
weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'),
|
104
|
+
weekdaysParse: minWeekdaysParse,
|
105
|
+
fullWeekdaysParse: fullWeekdaysParse,
|
106
|
+
shortWeekdaysParse: shortWeekdaysParse,
|
107
|
+
minWeekdaysParse: minWeekdaysParse,
|
108
|
+
|
109
|
+
monthsRegex: monthsRegex,
|
110
|
+
monthsShortRegex: monthsRegex,
|
111
|
+
monthsStrictRegex: monthsStrictRegex,
|
112
|
+
monthsShortStrictRegex: monthsShortStrictRegex,
|
113
|
+
monthsParse: monthsParse,
|
114
|
+
longMonthsParse: monthsParse,
|
115
|
+
shortMonthsParse: monthsParse,
|
116
|
+
|
117
|
+
longDateFormat: {
|
118
|
+
LT: 'HH:mm',
|
119
|
+
LTS: 'HH:mm:ss',
|
120
|
+
L: 'DD/MM/YYYY',
|
121
|
+
LL: 'D [a viz] MMMM YYYY',
|
122
|
+
LLL: 'D [a viz] MMMM YYYY HH:mm',
|
123
|
+
LLLL: 'dddd, D [a viz] MMMM YYYY HH:mm',
|
71
124
|
},
|
72
|
-
calendar
|
73
|
-
sameDay
|
74
|
-
nextDay
|
75
|
-
nextWeek
|
76
|
-
lastDay
|
77
|
-
lastWeek
|
78
|
-
sameElse
|
125
|
+
calendar: {
|
126
|
+
sameDay: '[Hiziv da] LT',
|
127
|
+
nextDay: '[Warcʼhoazh da] LT',
|
128
|
+
nextWeek: 'dddd [da] LT',
|
129
|
+
lastDay: '[Decʼh da] LT',
|
130
|
+
lastWeek: 'dddd [paset da] LT',
|
131
|
+
sameElse: 'L',
|
79
132
|
},
|
80
|
-
relativeTime
|
81
|
-
future
|
82
|
-
past
|
83
|
-
s
|
84
|
-
ss
|
85
|
-
m
|
86
|
-
mm
|
87
|
-
h
|
88
|
-
hh
|
89
|
-
d
|
90
|
-
dd
|
91
|
-
M
|
92
|
-
MM
|
93
|
-
y
|
94
|
-
yy
|
133
|
+
relativeTime: {
|
134
|
+
future: 'a-benn %s',
|
135
|
+
past: '%s ʼzo',
|
136
|
+
s: 'un nebeud segondennoù',
|
137
|
+
ss: '%d eilenn',
|
138
|
+
m: 'ur vunutenn',
|
139
|
+
mm: relativeTimeWithMutation,
|
140
|
+
h: 'un eur',
|
141
|
+
hh: '%d eur',
|
142
|
+
d: 'un devezh',
|
143
|
+
dd: relativeTimeWithMutation,
|
144
|
+
M: 'ur miz',
|
145
|
+
MM: relativeTimeWithMutation,
|
146
|
+
y: 'ur bloaz',
|
147
|
+
yy: specialMutationForYears,
|
95
148
|
},
|
96
149
|
dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/,
|
97
|
-
ordinal
|
98
|
-
var output =
|
150
|
+
ordinal: function (number) {
|
151
|
+
var output = number === 1 ? 'añ' : 'vet';
|
99
152
|
return number + output;
|
100
153
|
},
|
101
|
-
week
|
102
|
-
dow
|
103
|
-
doy
|
104
|
-
}
|
154
|
+
week: {
|
155
|
+
dow: 1, // Monday is the first day of the week.
|
156
|
+
doy: 4, // The week that contains Jan 4th is the first week of the year.
|
157
|
+
},
|
158
|
+
meridiemParse: /a.m.|g.m./, // goude merenn | a-raok merenn
|
159
|
+
isPM: function (token) {
|
160
|
+
return token === 'g.m.';
|
161
|
+
},
|
162
|
+
meridiem: function (hour, minute, isLower) {
|
163
|
+
return hour < 12 ? 'a.m.' : 'g.m.';
|
164
|
+
},
|
105
165
|
});
|
106
|
-
|
107
|
-
return br;
|
108
|
-
|
109
|
-
})));
|
@@ -3,13 +3,7 @@
|
|
3
3
|
//! author : Nedim Cholich : https://github.com/frontyard
|
4
4
|
//! based on (hr) translation by Bojan Marković
|
5
5
|
|
6
|
-
|
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
|
-
|
6
|
+
import moment from '../moment';
|
13
7
|
|
14
8
|
function translate(number, withoutSuffix, key) {
|
15
9
|
var result = number + ' ';
|
@@ -73,26 +67,32 @@ function translate(number, withoutSuffix, key) {
|
|
73
67
|
}
|
74
68
|
}
|
75
69
|
|
76
|
-
|
77
|
-
months
|
78
|
-
|
70
|
+
export default moment.defineLocale('bs', {
|
71
|
+
months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split(
|
72
|
+
'_'
|
73
|
+
),
|
74
|
+
monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split(
|
75
|
+
'_'
|
76
|
+
),
|
79
77
|
monthsParseExact: true,
|
80
|
-
weekdays
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
78
|
+
weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split(
|
79
|
+
'_'
|
80
|
+
),
|
81
|
+
weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
82
|
+
weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'),
|
83
|
+
weekdaysParseExact: true,
|
84
|
+
longDateFormat: {
|
85
|
+
LT: 'H:mm',
|
86
|
+
LTS: 'H:mm:ss',
|
87
|
+
L: 'DD.MM.YYYY',
|
88
|
+
LL: 'D. MMMM YYYY',
|
89
|
+
LLL: 'D. MMMM YYYY H:mm',
|
90
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
91
91
|
},
|
92
|
-
calendar
|
93
|
-
sameDay
|
94
|
-
nextDay
|
95
|
-
nextWeek
|
92
|
+
calendar: {
|
93
|
+
sameDay: '[danas u] LT',
|
94
|
+
nextDay: '[sutra u] LT',
|
95
|
+
nextWeek: function () {
|
96
96
|
switch (this.day()) {
|
97
97
|
case 0:
|
98
98
|
return '[u] [nedjelju] [u] LT';
|
@@ -107,8 +107,8 @@ var bs = moment.defineLocale('bs', {
|
|
107
107
|
return '[u] dddd [u] LT';
|
108
108
|
}
|
109
109
|
},
|
110
|
-
lastDay
|
111
|
-
lastWeek
|
110
|
+
lastDay: '[jučer u] LT',
|
111
|
+
lastWeek: function () {
|
112
112
|
switch (this.day()) {
|
113
113
|
case 0:
|
114
114
|
case 3:
|
@@ -122,32 +122,28 @@ var bs = moment.defineLocale('bs', {
|
|
122
122
|
return '[prošli] dddd [u] LT';
|
123
123
|
}
|
124
124
|
},
|
125
|
-
sameElse
|
125
|
+
sameElse: 'L',
|
126
126
|
},
|
127
|
-
relativeTime
|
128
|
-
future
|
129
|
-
past
|
130
|
-
s
|
131
|
-
ss
|
132
|
-
m
|
133
|
-
mm
|
134
|
-
h
|
135
|
-
hh
|
136
|
-
d
|
137
|
-
dd
|
138
|
-
M
|
139
|
-
MM
|
140
|
-
y
|
141
|
-
yy
|
127
|
+
relativeTime: {
|
128
|
+
future: 'za %s',
|
129
|
+
past: 'prije %s',
|
130
|
+
s: 'par sekundi',
|
131
|
+
ss: translate,
|
132
|
+
m: translate,
|
133
|
+
mm: translate,
|
134
|
+
h: translate,
|
135
|
+
hh: translate,
|
136
|
+
d: 'dan',
|
137
|
+
dd: translate,
|
138
|
+
M: 'mjesec',
|
139
|
+
MM: translate,
|
140
|
+
y: 'godinu',
|
141
|
+
yy: translate,
|
142
142
|
},
|
143
143
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
144
|
-
ordinal
|
145
|
-
week
|
146
|
-
dow
|
147
|
-
doy
|
148
|
-
}
|
144
|
+
ordinal: '%d.',
|
145
|
+
week: {
|
146
|
+
dow: 1, // Monday is the first day of the week.
|
147
|
+
doy: 7, // The week that contains Jan 7th is the first week of the year.
|
148
|
+
},
|
149
149
|
});
|
150
|
-
|
151
|
-
return bs;
|
152
|
-
|
153
|
-
})));
|