momentjs-rails 2.7.0 → 2.8.0
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/integration/navigation_test.rb +1 -1
- data/vendor/assets/javascripts/moment.js +560 -367
- data/vendor/assets/javascripts/moment/af.js +65 -0
- data/vendor/assets/javascripts/moment/ar-ma.js +3 -3
- data/vendor/assets/javascripts/moment/ar-sa.js +3 -3
- data/vendor/assets/javascripts/moment/ar.js +3 -3
- data/vendor/assets/javascripts/moment/az.js +3 -4
- data/vendor/assets/javascripts/moment/be.js +150 -0
- data/vendor/assets/javascripts/moment/bg.js +3 -3
- data/vendor/assets/javascripts/moment/bn.js +4 -4
- data/vendor/assets/javascripts/moment/bo.js +103 -0
- data/vendor/assets/javascripts/moment/br.js +3 -3
- data/vendor/assets/javascripts/moment/bs.js +5 -6
- data/vendor/assets/javascripts/moment/ca.js +3 -3
- data/vendor/assets/javascripts/moment/cs.js +3 -3
- data/vendor/assets/javascripts/moment/cv.js +3 -3
- data/vendor/assets/javascripts/moment/cy.js +3 -3
- data/vendor/assets/javascripts/moment/da.js +3 -3
- data/vendor/assets/javascripts/moment/de-at.js +3 -3
- data/vendor/assets/javascripts/moment/de.js +3 -3
- data/vendor/assets/javascripts/moment/el.js +4 -4
- data/vendor/assets/javascripts/moment/en-au.js +4 -4
- data/vendor/assets/javascripts/moment/en-ca.js +4 -4
- data/vendor/assets/javascripts/moment/en-gb.js +4 -4
- data/vendor/assets/javascripts/moment/eo.js +3 -3
- data/vendor/assets/javascripts/moment/es.js +3 -3
- data/vendor/assets/javascripts/moment/et.js +3 -3
- data/vendor/assets/javascripts/moment/eu.js +3 -3
- data/vendor/assets/javascripts/moment/fa.js +3 -3
- data/vendor/assets/javascripts/moment/fi.js +7 -5
- data/vendor/assets/javascripts/moment/fo.js +3 -3
- data/vendor/assets/javascripts/moment/fr-ca.js +3 -3
- data/vendor/assets/javascripts/moment/fr.js +3 -3
- data/vendor/assets/javascripts/moment/gl.js +3 -3
- data/vendor/assets/javascripts/moment/he.js +3 -3
- data/vendor/assets/javascripts/moment/hi.js +3 -3
- data/vendor/assets/javascripts/moment/hr.js +3 -4
- data/vendor/assets/javascripts/moment/hu.js +3 -3
- data/vendor/assets/javascripts/moment/hy-am.js +3 -4
- data/vendor/assets/javascripts/moment/id.js +3 -3
- data/vendor/assets/javascripts/moment/is.js +3 -3
- data/vendor/assets/javascripts/moment/it.js +3 -3
- data/vendor/assets/javascripts/moment/ja.js +3 -3
- data/vendor/assets/javascripts/moment/ka.js +3 -4
- data/vendor/assets/javascripts/moment/km.js +3 -3
- data/vendor/assets/javascripts/moment/ko.js +4 -4
- data/vendor/assets/javascripts/moment/lb.js +29 -52
- data/vendor/assets/javascripts/moment/lt.js +4 -4
- data/vendor/assets/javascripts/moment/lv.js +3 -3
- data/vendor/assets/javascripts/moment/mk.js +3 -3
- data/vendor/assets/javascripts/moment/ml.js +3 -3
- data/vendor/assets/javascripts/moment/mr.js +3 -3
- data/vendor/assets/javascripts/moment/ms-my.js +3 -3
- data/vendor/assets/javascripts/moment/my.js +88 -0
- data/vendor/assets/javascripts/moment/nb.js +3 -3
- data/vendor/assets/javascripts/moment/ne.js +3 -3
- data/vendor/assets/javascripts/moment/nl.js +3 -3
- data/vendor/assets/javascripts/moment/nn.js +3 -3
- data/vendor/assets/javascripts/moment/pl.js +3 -3
- data/vendor/assets/javascripts/moment/pt-br.js +3 -3
- data/vendor/assets/javascripts/moment/pt.js +3 -3
- data/vendor/assets/javascripts/moment/ro.js +9 -9
- data/vendor/assets/javascripts/moment/ru.js +3 -3
- data/vendor/assets/javascripts/moment/sk.js +3 -3
- data/vendor/assets/javascripts/moment/sl.js +3 -3
- data/vendor/assets/javascripts/moment/sq.js +3 -3
- data/vendor/assets/javascripts/moment/sr-cyrl.js +3 -4
- data/vendor/assets/javascripts/moment/sr.js +3 -4
- data/vendor/assets/javascripts/moment/sv.js +4 -4
- data/vendor/assets/javascripts/moment/ta.js +9 -9
- data/vendor/assets/javascripts/moment/th.js +3 -3
- data/vendor/assets/javascripts/moment/tl-ph.js +3 -3
- data/vendor/assets/javascripts/moment/tr.js +3 -4
- data/vendor/assets/javascripts/moment/tzm-latn.js +3 -3
- data/vendor/assets/javascripts/moment/tzm.js +3 -3
- data/vendor/assets/javascripts/moment/uk.js +3 -3
- data/vendor/assets/javascripts/moment/uz.js +3 -3
- data/vendor/assets/javascripts/moment/vi.js +3 -3
- data/vendor/assets/javascripts/moment/zh-cn.js +3 -3
- data/vendor/assets/javascripts/moment/zh-tw.js +3 -3
- metadata +13 -9
@@ -0,0 +1,65 @@
|
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : afrikaans (af)
|
3
|
+
// author : Werner Mollentze : https://github.com/wernerm
|
4
|
+
|
5
|
+
(function (factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
define(['moment'], factory); // AMD
|
8
|
+
} else if (typeof exports === 'object') {
|
9
|
+
module.exports = factory(require('../moment')); // Node
|
10
|
+
} else {
|
11
|
+
factory(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
return moment.defineLocale('af', {
|
15
|
+
months : "Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),
|
16
|
+
monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),
|
17
|
+
weekdays : "Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),
|
18
|
+
weekdaysShort : "Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),
|
19
|
+
weekdaysMin : "So_Ma_Di_Wo_Do_Vr_Sa".split("_"),
|
20
|
+
meridiem : function (hours, minutes, isLower) {
|
21
|
+
if (hours < 12) {
|
22
|
+
return isLower ? 'vm' : 'VM';
|
23
|
+
} else {
|
24
|
+
return isLower ? 'nm' : 'NM';
|
25
|
+
}
|
26
|
+
},
|
27
|
+
longDateFormat : {
|
28
|
+
LT : "HH:mm",
|
29
|
+
L : "DD/MM/YYYY",
|
30
|
+
LL : "D MMMM YYYY",
|
31
|
+
LLL : "D MMMM YYYY LT",
|
32
|
+
LLLL : "dddd, D MMMM YYYY LT"
|
33
|
+
},
|
34
|
+
calendar : {
|
35
|
+
sameDay : '[Vandag om] LT',
|
36
|
+
nextDay : '[Môre om] LT',
|
37
|
+
nextWeek : 'dddd [om] LT',
|
38
|
+
lastDay : '[Gister om] LT',
|
39
|
+
lastWeek : '[Laas] dddd [om] LT',
|
40
|
+
sameElse : 'L'
|
41
|
+
},
|
42
|
+
relativeTime : {
|
43
|
+
future : "oor %s",
|
44
|
+
past : "%s gelede",
|
45
|
+
s : "'n paar sekondes",
|
46
|
+
m : "'n minuut",
|
47
|
+
mm : "%d minute",
|
48
|
+
h : "'n uur",
|
49
|
+
hh : "%d ure",
|
50
|
+
d : "'n dag",
|
51
|
+
dd : "%d dae",
|
52
|
+
M : "'n maand",
|
53
|
+
MM : "%d maande",
|
54
|
+
y : "'n jaar",
|
55
|
+
yy : "%d jaar"
|
56
|
+
},
|
57
|
+
ordinal : function (number) {
|
58
|
+
return number + ((number === 1 || number === 8 || number >= 20) ? 'ste' : 'de'); // Thanks to Joris Röling : https://github.com/jjupiter
|
59
|
+
},
|
60
|
+
week : {
|
61
|
+
dow : 1, // Maandag is die eerste dag van die week.
|
62
|
+
doy : 4 // Die week wat die 4de Januarie bevat is die eerste week van die jaar.
|
63
|
+
}
|
64
|
+
});
|
65
|
+
}));
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// moment.js
|
2
|
-
//
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : Moroccan Arabic (ar-ma)
|
3
3
|
// author : ElFadili Yassine : https://github.com/ElFadiliY
|
4
4
|
// author : Abdel Said : https://github.com/abdelsaid
|
5
5
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
factory(window.moment); // Browser global
|
13
13
|
}
|
14
14
|
}(function (moment) {
|
15
|
-
return moment.
|
15
|
+
return moment.defineLocale('ar-ma', {
|
16
16
|
months : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
|
17
17
|
monthsShort : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
|
18
18
|
weekdays : "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// moment.js
|
2
|
-
//
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : Arabic Saudi Arabia (ar-sa)
|
3
3
|
// author : Suhail Alkowaileet : https://github.com/xsoh
|
4
4
|
|
5
5
|
(function (factory) {
|
@@ -35,7 +35,7 @@
|
|
35
35
|
'٠': '0'
|
36
36
|
};
|
37
37
|
|
38
|
-
return moment.
|
38
|
+
return moment.defineLocale('ar-sa', {
|
39
39
|
months : "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),
|
40
40
|
monthsShort : "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),
|
41
41
|
weekdays : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// moment.js
|
2
|
-
//
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : Arabic (ar)
|
3
3
|
// author : Abdel Said : https://github.com/abdelsaid
|
4
4
|
// changes in months, weekdays : Ahmed Elkhatib
|
5
5
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
'٠': '0'
|
37
37
|
};
|
38
38
|
|
39
|
-
return moment.
|
39
|
+
return moment.defineLocale('ar', {
|
40
40
|
months : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),
|
41
41
|
monthsShort : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"),
|
42
42
|
weekdays : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// moment.js
|
2
|
-
//
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : azerbaijani (az)
|
3
3
|
// author : topchiyev : https://github.com/topchiyev
|
4
4
|
|
5
5
|
(function (factory) {
|
@@ -11,7 +11,6 @@
|
|
11
11
|
factory(window.moment); // Browser global
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
|
-
|
15
14
|
var suffixes = {
|
16
15
|
1: "-inci",
|
17
16
|
5: "-inci",
|
@@ -37,7 +36,7 @@
|
|
37
36
|
60: "-ıncı",
|
38
37
|
90: "-ıncı"
|
39
38
|
};
|
40
|
-
return moment.
|
39
|
+
return moment.defineLocale('az', {
|
41
40
|
months : "yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),
|
42
41
|
monthsShort : "yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),
|
43
42
|
weekdays : "Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),
|
@@ -0,0 +1,150 @@
|
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : belarusian (be)
|
3
|
+
// author : Dmitry Demidov : https://github.com/demidov91
|
4
|
+
// author: Praleska: http://praleska.pro/
|
5
|
+
// Author : Menelion Elensúle : https://github.com/Oire
|
6
|
+
|
7
|
+
(function (factory) {
|
8
|
+
if (typeof define === 'function' && define.amd) {
|
9
|
+
define(['moment'], factory); // AMD
|
10
|
+
} else if (typeof exports === 'object') {
|
11
|
+
module.exports = factory(require('../moment')); // Node
|
12
|
+
} else {
|
13
|
+
factory(window.moment); // Browser global
|
14
|
+
}
|
15
|
+
}(function (moment) {
|
16
|
+
function plural(word, num) {
|
17
|
+
var forms = word.split('_');
|
18
|
+
return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
|
19
|
+
}
|
20
|
+
|
21
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
22
|
+
var format = {
|
23
|
+
'mm': withoutSuffix ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін',
|
24
|
+
'hh': withoutSuffix ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін',
|
25
|
+
'dd': 'дзень_дні_дзён',
|
26
|
+
'MM': 'месяц_месяцы_месяцаў',
|
27
|
+
'yy': 'год_гады_гадоў'
|
28
|
+
};
|
29
|
+
if (key === 'm') {
|
30
|
+
return withoutSuffix ? 'хвіліна' : 'хвіліну';
|
31
|
+
}
|
32
|
+
else if (key === 'h') {
|
33
|
+
return withoutSuffix ? 'гадзіна' : 'гадзіну';
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
return number + ' ' + plural(format[key], +number);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
function monthsCaseReplace(m, format) {
|
41
|
+
var months = {
|
42
|
+
'nominative': 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split('_'),
|
43
|
+
'accusative': 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split('_')
|
44
|
+
},
|
45
|
+
|
46
|
+
nounCase = (/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/).test(format) ?
|
47
|
+
'accusative' :
|
48
|
+
'nominative';
|
49
|
+
|
50
|
+
return months[nounCase][m.month()];
|
51
|
+
}
|
52
|
+
|
53
|
+
function weekdaysCaseReplace(m, format) {
|
54
|
+
var weekdays = {
|
55
|
+
'nominative': 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split('_'),
|
56
|
+
'accusative': 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split('_')
|
57
|
+
},
|
58
|
+
|
59
|
+
nounCase = (/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/).test(format) ?
|
60
|
+
'accusative' :
|
61
|
+
'nominative';
|
62
|
+
|
63
|
+
return weekdays[nounCase][m.day()];
|
64
|
+
}
|
65
|
+
|
66
|
+
return moment.defineLocale('be', {
|
67
|
+
months : monthsCaseReplace,
|
68
|
+
monthsShort : 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split('_'),
|
69
|
+
weekdays : weekdaysCaseReplace,
|
70
|
+
weekdaysShort : "нд_пн_ат_ср_чц_пт_сб".split("_"),
|
71
|
+
weekdaysMin : "нд_пн_ат_ср_чц_пт_сб".split("_"),
|
72
|
+
longDateFormat : {
|
73
|
+
LT : "HH:mm",
|
74
|
+
L : "DD.MM.YYYY",
|
75
|
+
LL : "D MMMM YYYY г.",
|
76
|
+
LLL : "D MMMM YYYY г., LT",
|
77
|
+
LLLL : "dddd, D MMMM YYYY г., LT"
|
78
|
+
},
|
79
|
+
calendar : {
|
80
|
+
sameDay: '[Сёння ў] LT',
|
81
|
+
nextDay: '[Заўтра ў] LT',
|
82
|
+
lastDay: '[Учора ў] LT',
|
83
|
+
nextWeek: function () {
|
84
|
+
return '[У] dddd [ў] LT';
|
85
|
+
},
|
86
|
+
lastWeek: function () {
|
87
|
+
switch (this.day()) {
|
88
|
+
case 0:
|
89
|
+
case 3:
|
90
|
+
case 5:
|
91
|
+
case 6:
|
92
|
+
return '[У мінулую] dddd [ў] LT';
|
93
|
+
case 1:
|
94
|
+
case 2:
|
95
|
+
case 4:
|
96
|
+
return '[У мінулы] dddd [ў] LT';
|
97
|
+
}
|
98
|
+
},
|
99
|
+
sameElse: 'L'
|
100
|
+
},
|
101
|
+
relativeTime : {
|
102
|
+
future : "праз %s",
|
103
|
+
past : "%s таму",
|
104
|
+
s : "некалькі секунд",
|
105
|
+
m : relativeTimeWithPlural,
|
106
|
+
mm : relativeTimeWithPlural,
|
107
|
+
h : relativeTimeWithPlural,
|
108
|
+
hh : relativeTimeWithPlural,
|
109
|
+
d : "дзень",
|
110
|
+
dd : relativeTimeWithPlural,
|
111
|
+
M : "месяц",
|
112
|
+
MM : relativeTimeWithPlural,
|
113
|
+
y : "год",
|
114
|
+
yy : relativeTimeWithPlural
|
115
|
+
},
|
116
|
+
|
117
|
+
|
118
|
+
meridiem : function (hour, minute, isLower) {
|
119
|
+
if (hour < 4) {
|
120
|
+
return "ночы";
|
121
|
+
} else if (hour < 12) {
|
122
|
+
return "раніцы";
|
123
|
+
} else if (hour < 17) {
|
124
|
+
return "дня";
|
125
|
+
} else {
|
126
|
+
return "вечара";
|
127
|
+
}
|
128
|
+
},
|
129
|
+
|
130
|
+
ordinal: function (number, period) {
|
131
|
+
switch (period) {
|
132
|
+
case 'M':
|
133
|
+
case 'd':
|
134
|
+
case 'DDD':
|
135
|
+
case 'w':
|
136
|
+
case 'W':
|
137
|
+
return (number % 10 === 2 || number % 10 === 3) && (number % 100 !== 12 && number % 100 !== 13) ? number + '-і' : number + '-ы';
|
138
|
+
case 'D':
|
139
|
+
return number + '-га';
|
140
|
+
default:
|
141
|
+
return number;
|
142
|
+
}
|
143
|
+
},
|
144
|
+
|
145
|
+
week : {
|
146
|
+
dow : 1, // Monday is the first day of the week.
|
147
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
148
|
+
}
|
149
|
+
});
|
150
|
+
}));
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// moment.js
|
2
|
-
//
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : bulgarian (bg)
|
3
3
|
// author : Krasen Borisov : https://github.com/kraz
|
4
4
|
|
5
5
|
(function (factory) {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
factory(window.moment); // Browser global
|
12
12
|
}
|
13
13
|
}(function (moment) {
|
14
|
-
return moment.
|
14
|
+
return moment.defineLocale('bg', {
|
15
15
|
months : "януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),
|
16
16
|
monthsShort : "янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),
|
17
17
|
weekdays : "неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// moment.js
|
2
|
-
//
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : Bengali (bn)
|
3
3
|
// author : Kaushik Gandhi : https://github.com/kaushikgandhi
|
4
4
|
|
5
5
|
(function (factory) {
|
@@ -36,7 +36,7 @@
|
|
36
36
|
'০': '0'
|
37
37
|
};
|
38
38
|
|
39
|
-
return moment.
|
39
|
+
return moment.defineLocale('bn', {
|
40
40
|
months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split("_"),
|
41
41
|
monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split("_"),
|
42
42
|
weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split("_"),
|
@@ -82,7 +82,7 @@
|
|
82
82
|
return symbolMap[match];
|
83
83
|
});
|
84
84
|
},
|
85
|
-
//Bengali is a vast language its spoken
|
85
|
+
//Bengali is a vast language its spoken
|
86
86
|
//in different forms in various parts of the world.
|
87
87
|
//I have just generalized with most common one used
|
88
88
|
meridiem : function (hour, minute, isLower) {
|
@@ -0,0 +1,103 @@
|
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : tibetan (bo)
|
3
|
+
// author : Thupten N. Chakrishar : https://github.com/vajradog
|
4
|
+
|
5
|
+
(function (factory) {
|
6
|
+
if (typeof define === 'function' && define.amd) {
|
7
|
+
define(['moment'], factory); // AMD
|
8
|
+
} else if (typeof exports === 'object') {
|
9
|
+
module.exports = factory(require('../moment')); // Node
|
10
|
+
} else {
|
11
|
+
factory(window.moment); // Browser global
|
12
|
+
}
|
13
|
+
}(function (moment) {
|
14
|
+
var symbolMap = {
|
15
|
+
'1': '༡',
|
16
|
+
'2': '༢',
|
17
|
+
'3': '༣',
|
18
|
+
'4': '༤',
|
19
|
+
'5': '༥',
|
20
|
+
'6': '༦',
|
21
|
+
'7': '༧',
|
22
|
+
'8': '༨',
|
23
|
+
'9': '༩',
|
24
|
+
'0': '༠'
|
25
|
+
},
|
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
|
+
return moment.defineLocale('bo', {
|
40
|
+
months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split("_"),
|
41
|
+
monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split("_"),
|
42
|
+
weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split("_"),
|
43
|
+
weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split("_"),
|
44
|
+
weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split("_"),
|
45
|
+
longDateFormat : {
|
46
|
+
LT : "A h:mm",
|
47
|
+
L : "DD/MM/YYYY",
|
48
|
+
LL : "D MMMM YYYY",
|
49
|
+
LLL : "D MMMM YYYY, LT",
|
50
|
+
LLLL : "dddd, D MMMM YYYY, LT"
|
51
|
+
},
|
52
|
+
calendar : {
|
53
|
+
sameDay : '[དི་རིང] LT',
|
54
|
+
nextDay : '[སང་ཉིན] LT',
|
55
|
+
nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
|
56
|
+
lastDay : '[ཁ་སང] LT',
|
57
|
+
lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
|
58
|
+
sameElse : 'L'
|
59
|
+
},
|
60
|
+
relativeTime : {
|
61
|
+
future : "%s ལ་",
|
62
|
+
past : "%s སྔན་ལ",
|
63
|
+
s : "ལམ་སང",
|
64
|
+
m : "སྐར་མ་གཅིག",
|
65
|
+
mm : "%d སྐར་མ",
|
66
|
+
h : "ཆུ་ཚོད་གཅིག",
|
67
|
+
hh : "%d ཆུ་ཚོད",
|
68
|
+
d : "ཉིན་གཅིག",
|
69
|
+
dd : "%d ཉིན་",
|
70
|
+
M : "ཟླ་བ་གཅིག",
|
71
|
+
MM : "%d ཟླ་བ",
|
72
|
+
y : "ལོ་གཅིག",
|
73
|
+
yy : "%d ལོ"
|
74
|
+
},
|
75
|
+
preparse: function (string) {
|
76
|
+
return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
|
77
|
+
return numberMap[match];
|
78
|
+
});
|
79
|
+
},
|
80
|
+
postformat: function (string) {
|
81
|
+
return string.replace(/\d/g, function (match) {
|
82
|
+
return symbolMap[match];
|
83
|
+
});
|
84
|
+
},
|
85
|
+
meridiem : function (hour, minute, isLower) {
|
86
|
+
if (hour < 4) {
|
87
|
+
return "མཚན་མོ";
|
88
|
+
} else if (hour < 10) {
|
89
|
+
return "ཞོགས་ཀས";
|
90
|
+
} else if (hour < 17) {
|
91
|
+
return "ཉིན་གུང";
|
92
|
+
} else if (hour < 20) {
|
93
|
+
return "དགོང་དག";
|
94
|
+
} else {
|
95
|
+
return "མཚན་མོ";
|
96
|
+
}
|
97
|
+
},
|
98
|
+
week : {
|
99
|
+
dow : 0, // Sunday is the first day of the week.
|
100
|
+
doy : 6 // The week that contains Jan 1st is the first week of the year.
|
101
|
+
}
|
102
|
+
});
|
103
|
+
}));
|
@@ -1,5 +1,5 @@
|
|
1
|
-
// moment.js
|
2
|
-
//
|
1
|
+
// moment.js locale configuration
|
2
|
+
// locale : breton (br)
|
3
3
|
// author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou
|
4
4
|
|
5
5
|
(function (factory) {
|
@@ -59,7 +59,7 @@
|
|
59
59
|
return mutationTable[text.charAt(0)] + text.substring(1);
|
60
60
|
}
|
61
61
|
|
62
|
-
return moment.
|
62
|
+
return moment.defineLocale('br', {
|
63
63
|
months : "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),
|
64
64
|
monthsShort : "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),
|
65
65
|
weekdays : "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),
|