momentjs-rails 2.10.2 → 2.10.3
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 -7
- data/test/dummy/log/test.log +7 -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/integration/navigation_test.rb +1 -2
- data/vendor/assets/javascripts/moment.js +95 -67
- data/vendor/assets/javascripts/moment/ar.js +2 -2
- data/vendor/assets/javascripts/moment/cv.js +22 -22
- data/vendor/assets/javascripts/moment/es.js +5 -5
- data/vendor/assets/javascripts/moment/hr.js +2 -2
- data/vendor/assets/javascripts/moment/jv.js +82 -0
- data/vendor/assets/javascripts/moment/lv.js +33 -16
- data/vendor/assets/javascripts/moment/me.js +108 -0
- data/vendor/assets/javascripts/moment/my.js +3 -2
- data/vendor/assets/javascripts/moment/pl.js +6 -1
- data/vendor/assets/javascripts/moment/pt-br.js +5 -5
- data/vendor/assets/javascripts/moment/pt.js +5 -5
- data/vendor/assets/javascripts/moment/si.js +64 -0
- data/vendor/assets/javascripts/moment/sl.js +49 -36
- data/vendor/assets/javascripts/moment/sv.js +2 -2
- data/vendor/assets/javascripts/moment/zh-cn.js +11 -11
- data/vendor/assets/javascripts/moment/zh-tw.js +1 -1
- metadata +5 -2
@@ -75,7 +75,7 @@
|
|
75
75
|
longDateFormat : {
|
76
76
|
LT : 'HH:mm',
|
77
77
|
LTS : 'HH:mm:ss',
|
78
|
-
L : '
|
78
|
+
L : 'D/\u200FM/\u200FYYYY',
|
79
79
|
LL : 'D MMMM YYYY',
|
80
80
|
LLL : 'D MMMM YYYY LT',
|
81
81
|
LLLL : 'dddd D MMMM YYYY LT'
|
@@ -115,7 +115,7 @@
|
|
115
115
|
yy : pluralize('y')
|
116
116
|
},
|
117
117
|
preparse: function (string) {
|
118
|
-
return string.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
118
|
+
return string.replace(/\u200f/g, '').replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (match) {
|
119
119
|
return numberMap[match];
|
120
120
|
}).replace(/،/g, ',');
|
121
121
|
},
|
@@ -10,47 +10,47 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
var cv = moment.defineLocale('cv', {
|
13
|
-
months : '
|
14
|
-
monthsShort : '
|
15
|
-
weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_
|
16
|
-
weekdaysShort : 'выр_тун_ытл_юн_
|
17
|
-
weekdaysMin : 'вр_тн_ыт_юн_
|
13
|
+
months : 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split('_'),
|
14
|
+
monthsShort : 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split('_'),
|
15
|
+
weekdays : 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split('_'),
|
16
|
+
weekdaysShort : 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'),
|
17
|
+
weekdaysMin : 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'),
|
18
18
|
longDateFormat : {
|
19
19
|
LT : 'HH:mm',
|
20
20
|
LTS : 'LT:ss',
|
21
21
|
L : 'DD-MM-YYYY',
|
22
|
-
LL : 'YYYY [
|
23
|
-
LLL : 'YYYY [
|
24
|
-
LLLL : 'dddd, YYYY [
|
22
|
+
LL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]',
|
23
|
+
LLL : 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], LT',
|
24
|
+
LLLL : 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], LT'
|
25
25
|
},
|
26
26
|
calendar : {
|
27
27
|
sameDay: '[Паян] LT [сехетре]',
|
28
28
|
nextDay: '[Ыран] LT [сехетре]',
|
29
|
-
lastDay: '[
|
30
|
-
nextWeek: '[
|
31
|
-
lastWeek: '[
|
29
|
+
lastDay: '[Ӗнер] LT [сехетре]',
|
30
|
+
nextWeek: '[Ҫитес] dddd LT [сехетре]',
|
31
|
+
lastWeek: '[Иртнӗ] dddd LT [сехетре]',
|
32
32
|
sameElse: 'L'
|
33
33
|
},
|
34
34
|
relativeTime : {
|
35
35
|
future : function (output) {
|
36
|
-
var affix = /сехет$/i.exec(output) ? 'рен' :
|
36
|
+
var affix = /сехет$/i.exec(output) ? 'рен' : /ҫул$/i.exec(output) ? 'тан' : 'ран';
|
37
37
|
return output + affix;
|
38
38
|
},
|
39
39
|
past : '%s каялла',
|
40
|
-
s : '
|
41
|
-
m : '
|
40
|
+
s : 'пӗр-ик ҫеккунт',
|
41
|
+
m : 'пӗр минут',
|
42
42
|
mm : '%d минут',
|
43
|
-
h : '
|
43
|
+
h : 'пӗр сехет',
|
44
44
|
hh : '%d сехет',
|
45
|
-
d : '
|
45
|
+
d : 'пӗр кун',
|
46
46
|
dd : '%d кун',
|
47
|
-
M : '
|
48
|
-
MM : '%d
|
49
|
-
y : '
|
50
|
-
yy : '%d
|
47
|
+
M : 'пӗр уйӑх',
|
48
|
+
MM : '%d уйӑх',
|
49
|
+
y : 'пӗр ҫул',
|
50
|
+
yy : '%d ҫул'
|
51
51
|
},
|
52
|
-
ordinalParse: /\d{1,2}
|
53
|
-
ordinal : '%d
|
52
|
+
ordinalParse: /\d{1,2}-мӗш/,
|
53
|
+
ordinal : '%d-мӗш',
|
54
54
|
week : {
|
55
55
|
dow : 1, // Monday is the first day of the week.
|
56
56
|
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
@@ -9,11 +9,11 @@
|
|
9
9
|
}(this, function (moment) { 'use strict';
|
10
10
|
|
11
11
|
|
12
|
-
var monthsShortDot = '
|
13
|
-
monthsShort = '
|
12
|
+
var monthsShortDot = 'Ene._Feb._Mar._Abr._May._Jun._Jul._Ago._Sep._Oct._Nov._Dic.'.split('_'),
|
13
|
+
monthsShort = 'Ene_Feb_Mar_Abr_May_Jun_Jul_Ago_Sep_Oct_Nov_Dic'.split('_');
|
14
14
|
|
15
15
|
var es = moment.defineLocale('es', {
|
16
|
-
months : '
|
16
|
+
months : 'Enero_Febrero_Marzo_Abril_Mayo_Junio_Julio_Agosto_Septiembre_Octubre_Noviembre_Diciembre'.split('_'),
|
17
17
|
monthsShort : function (m, format) {
|
18
18
|
if (/-MMM-/.test(format)) {
|
19
19
|
return monthsShort[m.month()];
|
@@ -21,8 +21,8 @@
|
|
21
21
|
return monthsShortDot[m.month()];
|
22
22
|
}
|
23
23
|
},
|
24
|
-
weekdays : '
|
25
|
-
weekdaysShort : '
|
24
|
+
weekdays : 'Domingo_Lunes_Martes_Miércoles_Jueves_Viernes_Sábado'.split('_'),
|
25
|
+
weekdaysShort : 'Dom._Lun._Mar._Mié._Jue._Vie._Sáb.'.split('_'),
|
26
26
|
weekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'),
|
27
27
|
longDateFormat : {
|
28
28
|
LT : 'H:mm',
|
@@ -63,8 +63,8 @@
|
|
63
63
|
}
|
64
64
|
|
65
65
|
var hr = moment.defineLocale('hr', {
|
66
|
-
months : '
|
67
|
-
monthsShort : '
|
66
|
+
months : 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split('_'),
|
67
|
+
monthsShort : 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split('_'),
|
68
68
|
weekdays : 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split('_'),
|
69
69
|
weekdaysShort : 'ned._pon._uto._sri._čet._pet._sub.'.split('_'),
|
70
70
|
weekdaysMin : 'ne_po_ut_sr_če_pe_su'.split('_'),
|
@@ -0,0 +1,82 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Boso Jowo (jv)
|
3
|
+
//! author : Rony Lantip : https://github.com/lantip
|
4
|
+
//! reference: http://jv.wikipedia.org/wiki/Basa_Jawa
|
5
|
+
|
6
|
+
(function (global, factory) {
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
8
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
9
|
+
factory(global.moment)
|
10
|
+
}(this, function (moment) { 'use strict';
|
11
|
+
|
12
|
+
|
13
|
+
var jv = moment.defineLocale('jv', {
|
14
|
+
months : 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split('_'),
|
15
|
+
monthsShort : 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split('_'),
|
16
|
+
weekdays : 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'),
|
17
|
+
weekdaysShort : 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'),
|
18
|
+
weekdaysMin : 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'),
|
19
|
+
longDateFormat : {
|
20
|
+
LT : 'HH.mm',
|
21
|
+
LTS : 'LT.ss',
|
22
|
+
L : 'DD/MM/YYYY',
|
23
|
+
LL : 'D MMMM YYYY',
|
24
|
+
LLL : 'D MMMM YYYY [pukul] LT',
|
25
|
+
LLLL : 'dddd, D MMMM YYYY [pukul] LT'
|
26
|
+
},
|
27
|
+
meridiemParse: /enjing|siyang|sonten|ndalu/,
|
28
|
+
meridiemHour : function (hour, meridiem) {
|
29
|
+
if (hour === 12) {
|
30
|
+
hour = 0;
|
31
|
+
}
|
32
|
+
if (meridiem === 'enjing') {
|
33
|
+
return hour;
|
34
|
+
} else if (meridiem === 'siyang') {
|
35
|
+
return hour >= 11 ? hour : hour + 12;
|
36
|
+
} else if (meridiem === 'sonten' || meridiem === 'ndalu') {
|
37
|
+
return hour + 12;
|
38
|
+
}
|
39
|
+
},
|
40
|
+
meridiem : function (hours, minutes, isLower) {
|
41
|
+
if (hours < 11) {
|
42
|
+
return 'enjing';
|
43
|
+
} else if (hours < 15) {
|
44
|
+
return 'siyang';
|
45
|
+
} else if (hours < 19) {
|
46
|
+
return 'sonten';
|
47
|
+
} else {
|
48
|
+
return 'ndalu';
|
49
|
+
}
|
50
|
+
},
|
51
|
+
calendar : {
|
52
|
+
sameDay : '[Dinten puniko pukul] LT',
|
53
|
+
nextDay : '[Mbenjang pukul] LT',
|
54
|
+
nextWeek : 'dddd [pukul] LT',
|
55
|
+
lastDay : '[Kala wingi pukul] LT',
|
56
|
+
lastWeek : 'dddd [kepengker pukul] LT',
|
57
|
+
sameElse : 'L'
|
58
|
+
},
|
59
|
+
relativeTime : {
|
60
|
+
future : 'wonten ing %s',
|
61
|
+
past : '%s ingkang kepengker',
|
62
|
+
s : 'sawetawis detik',
|
63
|
+
m : 'setunggal menit',
|
64
|
+
mm : '%d menit',
|
65
|
+
h : 'setunggal jam',
|
66
|
+
hh : '%d jam',
|
67
|
+
d : 'sedinten',
|
68
|
+
dd : '%d dinten',
|
69
|
+
M : 'sewulan',
|
70
|
+
MM : '%d wulan',
|
71
|
+
y : 'setaun',
|
72
|
+
yy : '%d taun'
|
73
|
+
},
|
74
|
+
week : {
|
75
|
+
dow : 1, // Monday is the first day of the week.
|
76
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
77
|
+
}
|
78
|
+
});
|
79
|
+
|
80
|
+
return jv;
|
81
|
+
|
82
|
+
}));
|
@@ -1,6 +1,7 @@
|
|
1
1
|
//! moment.js locale configuration
|
2
2
|
//! locale : latvian (lv)
|
3
3
|
//! author : Kristaps Karlsons : https://github.com/skakri
|
4
|
+
//! author : Jānis Elmeris : https://github.com/JanisE
|
4
5
|
|
5
6
|
(function (global, factory) {
|
6
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
@@ -10,23 +11,39 @@
|
|
10
11
|
|
11
12
|
|
12
13
|
var units = {
|
13
|
-
'
|
14
|
-
'
|
15
|
-
'
|
16
|
-
'
|
17
|
-
'
|
14
|
+
'm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
|
15
|
+
'mm': 'minūtes_minūtēm_minūte_minūtes'.split('_'),
|
16
|
+
'h': 'stundas_stundām_stunda_stundas'.split('_'),
|
17
|
+
'hh': 'stundas_stundām_stunda_stundas'.split('_'),
|
18
|
+
'd': 'dienas_dienām_diena_dienas'.split('_'),
|
19
|
+
'dd': 'dienas_dienām_diena_dienas'.split('_'),
|
20
|
+
'M': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
|
21
|
+
'MM': 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'),
|
22
|
+
'y': 'gada_gadiem_gads_gadi'.split('_'),
|
23
|
+
'yy': 'gada_gadiem_gads_gadi'.split('_')
|
18
24
|
};
|
19
|
-
|
20
|
-
|
25
|
+
/**
|
26
|
+
* @param withoutSuffix boolean true = a length of time; false = before/after a period of time.
|
27
|
+
*/
|
28
|
+
function format(forms, number, withoutSuffix) {
|
21
29
|
if (withoutSuffix) {
|
30
|
+
// E.g. "21 minūte", "3 minūtes".
|
22
31
|
return number % 10 === 1 && number !== 11 ? forms[2] : forms[3];
|
23
32
|
} else {
|
33
|
+
// E.g. "21 minūtes" as in "pēc 21 minūtes".
|
34
|
+
// E.g. "3 minūtēm" as in "pēc 3 minūtēm".
|
24
35
|
return number % 10 === 1 && number !== 11 ? forms[0] : forms[1];
|
25
36
|
}
|
26
37
|
}
|
27
38
|
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
28
39
|
return number + ' ' + format(units[key], number, withoutSuffix);
|
29
40
|
}
|
41
|
+
function relativeTimeWithSingular(number, withoutSuffix, key) {
|
42
|
+
return format(units[key], number, withoutSuffix);
|
43
|
+
}
|
44
|
+
function relativeSeconds(number, withoutSuffix) {
|
45
|
+
return withoutSuffix ? 'dažas sekundes' : 'dažām sekundēm';
|
46
|
+
}
|
30
47
|
|
31
48
|
var lv = moment.defineLocale('lv', {
|
32
49
|
months : 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split('_'),
|
@@ -37,7 +54,7 @@
|
|
37
54
|
longDateFormat : {
|
38
55
|
LT : 'HH:mm',
|
39
56
|
LTS : 'LT:ss',
|
40
|
-
L : 'DD.MM.YYYY',
|
57
|
+
L : 'DD.MM.YYYY.',
|
41
58
|
LL : 'YYYY. [gada] D. MMMM',
|
42
59
|
LLL : 'YYYY. [gada] D. MMMM, LT',
|
43
60
|
LLLL : 'YYYY. [gada] D. MMMM, dddd, LT'
|
@@ -51,18 +68,18 @@
|
|
51
68
|
sameElse : 'L'
|
52
69
|
},
|
53
70
|
relativeTime : {
|
54
|
-
future : '%s
|
55
|
-
past : '%s
|
56
|
-
s :
|
57
|
-
m :
|
71
|
+
future : 'pēc %s',
|
72
|
+
past : 'pirms %s',
|
73
|
+
s : relativeSeconds,
|
74
|
+
m : relativeTimeWithSingular,
|
58
75
|
mm : relativeTimeWithPlural,
|
59
|
-
h :
|
76
|
+
h : relativeTimeWithSingular,
|
60
77
|
hh : relativeTimeWithPlural,
|
61
|
-
d :
|
78
|
+
d : relativeTimeWithSingular,
|
62
79
|
dd : relativeTimeWithPlural,
|
63
|
-
M :
|
80
|
+
M : relativeTimeWithSingular,
|
64
81
|
MM : relativeTimeWithPlural,
|
65
|
-
y :
|
82
|
+
y : relativeTimeWithSingular,
|
66
83
|
yy : relativeTimeWithPlural
|
67
84
|
},
|
68
85
|
ordinalParse: /\d{1,2}\./,
|
@@ -0,0 +1,108 @@
|
|
1
|
+
//! moment.js locale configuration
|
2
|
+
//! locale : Montenegrin (me)
|
3
|
+
//! author : Miodrag Nikač <miodrag@restartit.me> : https://github.com/miodragnikac
|
4
|
+
|
5
|
+
(function (global, factory) {
|
6
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
|
7
|
+
typeof define === 'function' && define.amd ? define(['moment'], factory) :
|
8
|
+
factory(global.moment)
|
9
|
+
}(this, function (moment) { 'use strict';
|
10
|
+
|
11
|
+
|
12
|
+
var translator = {
|
13
|
+
words: { //Different grammatical cases
|
14
|
+
m: ['jedan minut', 'jednog minuta'],
|
15
|
+
mm: ['minut', 'minuta', 'minuta'],
|
16
|
+
h: ['jedan sat', 'jednog sata'],
|
17
|
+
hh: ['sat', 'sata', 'sati'],
|
18
|
+
dd: ['dan', 'dana', 'dana'],
|
19
|
+
MM: ['mjesec', 'mjeseca', 'mjeseci'],
|
20
|
+
yy: ['godina', 'godine', 'godina']
|
21
|
+
},
|
22
|
+
correctGrammaticalCase: function (number, wordKey) {
|
23
|
+
return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]);
|
24
|
+
},
|
25
|
+
translate: function (number, withoutSuffix, key) {
|
26
|
+
var wordKey = translator.words[key];
|
27
|
+
if (key.length === 1) {
|
28
|
+
return withoutSuffix ? wordKey[0] : wordKey[1];
|
29
|
+
} else {
|
30
|
+
return number + ' ' + translator.correctGrammaticalCase(number, wordKey);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
};
|
34
|
+
|
35
|
+
var me = moment.defineLocale('me', {
|
36
|
+
months: ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
|
37
|
+
monthsShort: ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
|
38
|
+
weekdays: ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'],
|
39
|
+
weekdaysShort: ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'],
|
40
|
+
weekdaysMin: ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
|
41
|
+
longDateFormat: {
|
42
|
+
LT: 'H:mm',
|
43
|
+
LTS : 'LT:ss',
|
44
|
+
L: 'DD. MM. YYYY',
|
45
|
+
LL: 'D. MMMM YYYY',
|
46
|
+
LLL: 'D. MMMM YYYY LT',
|
47
|
+
LLLL: 'dddd, D. MMMM YYYY LT'
|
48
|
+
},
|
49
|
+
calendar: {
|
50
|
+
sameDay: '[danas u] LT',
|
51
|
+
nextDay: '[sjutra u] LT',
|
52
|
+
|
53
|
+
nextWeek: function () {
|
54
|
+
switch (this.day()) {
|
55
|
+
case 0:
|
56
|
+
return '[u] [nedjelju] [u] LT';
|
57
|
+
case 3:
|
58
|
+
return '[u] [srijedu] [u] LT';
|
59
|
+
case 6:
|
60
|
+
return '[u] [subotu] [u] LT';
|
61
|
+
case 1:
|
62
|
+
case 2:
|
63
|
+
case 4:
|
64
|
+
case 5:
|
65
|
+
return '[u] dddd [u] LT';
|
66
|
+
}
|
67
|
+
},
|
68
|
+
lastDay : '[juče u] LT',
|
69
|
+
lastWeek : function () {
|
70
|
+
var lastWeekDays = [
|
71
|
+
'[prošle] [nedjelje] [u] LT',
|
72
|
+
'[prošlog] [ponedjeljka] [u] LT',
|
73
|
+
'[prošlog] [utorka] [u] LT',
|
74
|
+
'[prošle] [srijede] [u] LT',
|
75
|
+
'[prošlog] [četvrtka] [u] LT',
|
76
|
+
'[prošlog] [petka] [u] LT',
|
77
|
+
'[prošle] [subote] [u] LT'
|
78
|
+
];
|
79
|
+
return lastWeekDays[this.day()];
|
80
|
+
},
|
81
|
+
sameElse : 'L'
|
82
|
+
},
|
83
|
+
relativeTime : {
|
84
|
+
future : 'za %s',
|
85
|
+
past : 'prije %s',
|
86
|
+
s : 'nekoliko sekundi',
|
87
|
+
m : translator.translate,
|
88
|
+
mm : translator.translate,
|
89
|
+
h : translator.translate,
|
90
|
+
hh : translator.translate,
|
91
|
+
d : 'dan',
|
92
|
+
dd : translator.translate,
|
93
|
+
M : 'mjesec',
|
94
|
+
MM : translator.translate,
|
95
|
+
y : 'godinu',
|
96
|
+
yy : translator.translate
|
97
|
+
},
|
98
|
+
ordinalParse: /\d{1,2}\./,
|
99
|
+
ordinal : '%d.',
|
100
|
+
week : {
|
101
|
+
dow : 1, // Monday is the first day of the week.
|
102
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
103
|
+
}
|
104
|
+
});
|
105
|
+
|
106
|
+
return me;
|
107
|
+
|
108
|
+
}));
|
@@ -37,8 +37,9 @@
|
|
37
37
|
months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split('_'),
|
38
38
|
monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split('_'),
|
39
39
|
weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split('_'),
|
40
|
-
weekdaysShort: 'နွေ_လာ_
|
41
|
-
weekdaysMin: 'နွေ_လာ_
|
40
|
+
weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
41
|
+
weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'),
|
42
|
+
|
42
43
|
longDateFormat: {
|
43
44
|
LT: 'HH:mm',
|
44
45
|
LTS: 'HH:mm:ss',
|
@@ -34,7 +34,12 @@
|
|
34
34
|
|
35
35
|
var pl = moment.defineLocale('pl', {
|
36
36
|
months : function (momentToFormat, format) {
|
37
|
-
if (
|
37
|
+
if (format === '') {
|
38
|
+
// Hack: if format empty we know this is used to generate
|
39
|
+
// RegExp by moment. Give then back both valid forms of months
|
40
|
+
// in RegExp ready format.
|
41
|
+
return '(' + monthsSubjective[momentToFormat.month()] + '|' + monthsNominative[momentToFormat.month()] + ')';
|
42
|
+
} else if (/D MMMM/.test(format)) {
|
38
43
|
return monthsSubjective[momentToFormat.month()];
|
39
44
|
} else {
|
40
45
|
return monthsNominative[momentToFormat.month()];
|
@@ -10,11 +10,11 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
var pt_br = moment.defineLocale('pt-br', {
|
13
|
-
months : '
|
14
|
-
monthsShort : '
|
15
|
-
weekdays : '
|
16
|
-
weekdaysShort : '
|
17
|
-
weekdaysMin : '
|
13
|
+
months : 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split('_'),
|
14
|
+
monthsShort : 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split('_'),
|
15
|
+
weekdays : 'Domingo_Segunda-Feira_Terça-Feira_Quarta-Feira_Quinta-Feira_Sexta-Feira_Sábado'.split('_'),
|
16
|
+
weekdaysShort : 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'),
|
17
|
+
weekdaysMin : 'Dom_2ª_3ª_4ª_5ª_6ª_Sáb'.split('_'),
|
18
18
|
longDateFormat : {
|
19
19
|
LT : 'HH:mm',
|
20
20
|
LTS : 'LT:ss',
|