momentjs-rails 1.6.2 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/changelog.md +4 -0
- data/vendor/assets/javascripts/moment.js +407 -219
- data/vendor/assets/javascripts/moment/bg.js +66 -0
- data/vendor/assets/javascripts/moment/ca.js +5 -1
- data/vendor/assets/javascripts/moment/cv.js +54 -0
- data/vendor/assets/javascripts/moment/da.js +6 -2
- data/vendor/assets/javascripts/moment/de.js +5 -1
- data/vendor/assets/javascripts/moment/en-ca.js +58 -0
- data/vendor/assets/javascripts/moment/en-gb.js +5 -1
- data/vendor/assets/javascripts/moment/es.js +5 -1
- data/vendor/assets/javascripts/moment/eu.js +5 -1
- data/vendor/assets/javascripts/moment/fi.js +6 -2
- data/vendor/assets/javascripts/moment/fr-ca.js +54 -0
- data/vendor/assets/javascripts/moment/fr.js +5 -1
- data/vendor/assets/javascripts/moment/gl.js +5 -1
- data/vendor/assets/javascripts/moment/hu.js +108 -0
- data/vendor/assets/javascripts/moment/is.js +5 -1
- data/vendor/assets/javascripts/moment/it.js +8 -4
- data/vendor/assets/javascripts/moment/ja.js +61 -0
- data/vendor/assets/javascripts/moment/jp.js +12 -5
- data/vendor/assets/javascripts/moment/ko.js +58 -0
- data/vendor/assets/javascripts/moment/kr.js +9 -2
- data/vendor/assets/javascripts/moment/nb.js +5 -1
- data/vendor/assets/javascripts/moment/nl.js +15 -3
- data/vendor/assets/javascripts/moment/pl.js +5 -1
- data/vendor/assets/javascripts/moment/pt-br.js +58 -0
- data/vendor/assets/javascripts/moment/pt.js +6 -2
- data/vendor/assets/javascripts/moment/ru.js +38 -8
- data/vendor/assets/javascripts/moment/sv.js +5 -1
- data/vendor/assets/javascripts/moment/tr.js +40 -6
- data/vendor/assets/javascripts/moment/zh-cn.js +6 -2
- data/vendor/assets/javascripts/moment/zh-tw.js +5 -1
- metadata +12 -4
@@ -0,0 +1,108 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : hungarian (hu)
|
3
|
+
// author : Adam Brunner : https://github.com/adambrunner
|
4
|
+
(function()
|
5
|
+
{
|
6
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
7
|
+
var num = number;
|
8
|
+
|
9
|
+
switch (key) {
|
10
|
+
case 's':
|
11
|
+
return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
|
12
|
+
|
13
|
+
case 'm':
|
14
|
+
num = 'egy';
|
15
|
+
case 'mm':
|
16
|
+
return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
17
|
+
break;
|
18
|
+
|
19
|
+
case 'h':
|
20
|
+
num = 'egy';
|
21
|
+
case 'hh':
|
22
|
+
return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
23
|
+
|
24
|
+
case 'd':
|
25
|
+
num = 'egy';
|
26
|
+
case 'dd':
|
27
|
+
return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
28
|
+
|
29
|
+
case 'M':
|
30
|
+
num = 'egy';
|
31
|
+
case 'MM':
|
32
|
+
return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
33
|
+
|
34
|
+
case 'y':
|
35
|
+
num = 'egy';
|
36
|
+
case 'yy':
|
37
|
+
return num + (isFuture || withoutSuffix ? ' év' : ' éve');
|
38
|
+
|
39
|
+
default:
|
40
|
+
}
|
41
|
+
|
42
|
+
return '';
|
43
|
+
}
|
44
|
+
|
45
|
+
function week(isFuture) {
|
46
|
+
var ending = '';
|
47
|
+
switch (this.day()) {
|
48
|
+
case 0: ending = 'vasárnap'; break;
|
49
|
+
case 1: ending = 'hétfőn'; break;
|
50
|
+
case 2: ending = 'kedden'; break;
|
51
|
+
case 3: ending = 'szerdán'; break;
|
52
|
+
case 4: ending = 'csütörtökön'; break;
|
53
|
+
case 5: ending = 'pénteken'; break;
|
54
|
+
case 6: ending = 'szombaton'; break;
|
55
|
+
}
|
56
|
+
return (isFuture ? '' : 'múlt ')+'['+ending+'] LT[-kor]';
|
57
|
+
}
|
58
|
+
|
59
|
+
var lang = {
|
60
|
+
months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),
|
61
|
+
monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),
|
62
|
+
weekdays : "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),
|
63
|
+
weekdaysShort : "v_h_k_sze_cs_p_szo".split("_"),
|
64
|
+
longDateFormat : {
|
65
|
+
LT : "H:mm",
|
66
|
+
L : "YYYY.MM.DD.",
|
67
|
+
LL : "YYYY. MMMM D.",
|
68
|
+
LLL : "YYYY. MMMM D., LT",
|
69
|
+
LLLL : "YYYY. MMMM D., dddd LT"
|
70
|
+
},
|
71
|
+
calendar : {
|
72
|
+
sameDay : '[ma] LT[-kor]',
|
73
|
+
nextDay : '[holnap] LT[-kor]',
|
74
|
+
nextWeek : function(){return week.call(this, true);},
|
75
|
+
lastDay : '[tegnap] LT[-kor]',
|
76
|
+
lastWeek : function(){return week.call(this, false);},
|
77
|
+
sameElse : 'L'
|
78
|
+
},
|
79
|
+
relativeTime : {
|
80
|
+
future : "%s múlva",
|
81
|
+
past : "%s",
|
82
|
+
s : translate,
|
83
|
+
m : translate,
|
84
|
+
mm : translate,
|
85
|
+
h : translate,
|
86
|
+
hh : translate,
|
87
|
+
d : translate,
|
88
|
+
dd : translate,
|
89
|
+
M : translate,
|
90
|
+
MM : translate,
|
91
|
+
y : translate,
|
92
|
+
yy : translate
|
93
|
+
},
|
94
|
+
ordinal : function(number) {
|
95
|
+
return '.';
|
96
|
+
}
|
97
|
+
};
|
98
|
+
|
99
|
+
// Node
|
100
|
+
if (typeof module !== 'undefined' && module.exports) {
|
101
|
+
module.exports = lang;
|
102
|
+
}
|
103
|
+
|
104
|
+
// Browser
|
105
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
106
|
+
this.moment.lang('hu', lang);
|
107
|
+
}
|
108
|
+
}());
|
@@ -1,3 +1,6 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : icelandic (is)
|
3
|
+
// author : Hinrik Örn Sigurðsson : https://github.com/hinrik
|
1
4
|
(function () {
|
2
5
|
var plural = function (n) {
|
3
6
|
if (n % 100 == 11) {
|
@@ -82,6 +85,7 @@
|
|
82
85
|
monthsShort : "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),
|
83
86
|
weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),
|
84
87
|
weekdaysShort : "sun_mán_þri_mið_fim_fös_lau".split("_"),
|
88
|
+
weekdaysMin : "Su_Má_Þr_Mi_Fi_Fö_La".split("_"),
|
85
89
|
longDateFormat : {
|
86
90
|
LT : "H:mm",
|
87
91
|
L : "DD/MM/YYYY",
|
@@ -118,7 +122,7 @@
|
|
118
122
|
};
|
119
123
|
|
120
124
|
// Node
|
121
|
-
if (typeof module !== 'undefined') {
|
125
|
+
if (typeof module !== 'undefined' && module.exports) {
|
122
126
|
module.exports = lang;
|
123
127
|
}
|
124
128
|
// Browser
|
@@ -1,10 +1,14 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : italian (it)
|
3
|
+
// author : Lorenzo : https://github.com/aliem
|
1
4
|
(function () {
|
2
5
|
var lang = {
|
3
6
|
months : "Gennaio_Febbraio_Marzo_Aprile_Maggio_Giugno_Luglio_Agosto_Settebre_Ottobre_Novembre_Dicembre".split("_"),
|
4
7
|
monthsShort : "Gen_Feb_Mar_Apr_Mag_Giu_Lug_Ago_Set_Ott_Nov_Dic".split("_"),
|
5
|
-
weekdays : "
|
8
|
+
weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"),
|
6
9
|
weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"),
|
7
|
-
|
10
|
+
weekdaysMin : "D_L_Ma_Me_G_V_S".split("_"),
|
11
|
+
longDateFormat : {
|
8
12
|
LT : "HH:mm",
|
9
13
|
L : "DD/MM/YYYY",
|
10
14
|
LL : "D MMMM YYYY",
|
@@ -25,7 +29,7 @@
|
|
25
29
|
s : "secondi",
|
26
30
|
m : "un minuto",
|
27
31
|
mm : "%d minuti",
|
28
|
-
h : "un
|
32
|
+
h : "un'ora",
|
29
33
|
hh : "%d ore",
|
30
34
|
d : "un giorno",
|
31
35
|
dd : "%d giorni",
|
@@ -40,7 +44,7 @@
|
|
40
44
|
};
|
41
45
|
|
42
46
|
// Node
|
43
|
-
if (typeof module !== 'undefined') {
|
47
|
+
if (typeof module !== 'undefined' && module.exports) {
|
44
48
|
module.exports = lang;
|
45
49
|
}
|
46
50
|
// Browser
|
@@ -0,0 +1,61 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : japanese (ja)
|
3
|
+
// author : LI Long : https://github.com/baryon
|
4
|
+
(function () {
|
5
|
+
var lang = {
|
6
|
+
months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
7
|
+
monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
8
|
+
weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
|
9
|
+
weekdaysShort : "日_月_火_水_木_金_土".split("_"),
|
10
|
+
weekdaysMin : "日_月_火_水_木_金_土".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "Ah時m分",
|
13
|
+
L : "YYYY/MM/DD",
|
14
|
+
LL : "YYYY年M月D日",
|
15
|
+
LLL : "YYYY年M月D日LT",
|
16
|
+
LLLL : "YYYY年M月D日LT dddd"
|
17
|
+
},
|
18
|
+
meridiem : function (hour, minute, isLower) {
|
19
|
+
if (hour < 12) {
|
20
|
+
return "午前";
|
21
|
+
} else {
|
22
|
+
return "午後";
|
23
|
+
}
|
24
|
+
},
|
25
|
+
calendar : {
|
26
|
+
sameDay : '[今日] LT',
|
27
|
+
nextDay : '[明日] LT',
|
28
|
+
nextWeek : '[来週]dddd LT',
|
29
|
+
lastDay : '[昨日] LT',
|
30
|
+
lastWeek : '[前週]dddd LT',
|
31
|
+
sameElse : 'L'
|
32
|
+
},
|
33
|
+
relativeTime : {
|
34
|
+
future : "%s後",
|
35
|
+
past : "%s前",
|
36
|
+
s : "数秒",
|
37
|
+
m : "1分",
|
38
|
+
mm : "%d分",
|
39
|
+
h : "1時間",
|
40
|
+
hh : "%d時間",
|
41
|
+
d : "1日",
|
42
|
+
dd : "%d日",
|
43
|
+
M : "1ヶ月",
|
44
|
+
MM : "%dヶ月",
|
45
|
+
y : "1年",
|
46
|
+
yy : "%d年"
|
47
|
+
},
|
48
|
+
ordinal : function (number) {
|
49
|
+
return '';
|
50
|
+
}
|
51
|
+
};
|
52
|
+
|
53
|
+
// Node
|
54
|
+
if (typeof module !== 'undefined' && module.exports) {
|
55
|
+
module.exports = lang;
|
56
|
+
}
|
57
|
+
// Browser
|
58
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
59
|
+
this.moment.lang('ja', lang);
|
60
|
+
}
|
61
|
+
}());
|
@@ -1,15 +1,22 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : japanese (jp)
|
3
|
+
// author : LI Long : https://github.com/baryon
|
4
|
+
|
5
|
+
// This language config was incorrectly named 'jp' instead of 'ja'.
|
6
|
+
// In version 2.0.0, this will be deprecated and you should use 'ja' instead.
|
1
7
|
(function () {
|
2
8
|
var lang = {
|
3
9
|
months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
4
10
|
monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
5
11
|
weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),
|
6
12
|
weekdaysShort : "日_月_火_水_木_金_土".split("_"),
|
13
|
+
weekdaysMin : "日_月_火_水_木_金_土".split("_"),
|
7
14
|
longDateFormat : {
|
8
|
-
LT : "Ah
|
15
|
+
LT : "Ah時m分",
|
9
16
|
L : "YYYY/MM/DD",
|
10
17
|
LL : "YYYY年M月D日",
|
11
|
-
LLL : "YYYY年M月D日
|
12
|
-
LLLL : "YYYY年M月D日 dddd
|
18
|
+
LLL : "YYYY年M月D日LT",
|
19
|
+
LLLL : "YYYY年M月D日LT dddd"
|
13
20
|
},
|
14
21
|
meridiem : function (hour, minute, isLower) {
|
15
22
|
if (hour < 12) {
|
@@ -42,12 +49,12 @@
|
|
42
49
|
yy : "%d年"
|
43
50
|
},
|
44
51
|
ordinal : function (number) {
|
45
|
-
|
52
|
+
return '';
|
46
53
|
}
|
47
54
|
};
|
48
55
|
|
49
56
|
// Node
|
50
|
-
if (typeof module !== 'undefined') {
|
57
|
+
if (typeof module !== 'undefined' && module.exports) {
|
51
58
|
module.exports = lang;
|
52
59
|
}
|
53
60
|
// Browser
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : korean (ko)
|
3
|
+
// author : Kyungwook, Park : https://github.com/kyungw00k
|
4
|
+
(function () {
|
5
|
+
var lang = {
|
6
|
+
months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
7
|
+
monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
8
|
+
weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
|
9
|
+
weekdaysShort : "일_월_화_수_목_금_토".split("_"),
|
10
|
+
weekdaysMin : "일_월_화_수_목_금_토".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "A h시 mm분",
|
13
|
+
L : "YYYY.MM.DD",
|
14
|
+
LL : "YYYY년 MMMM D일",
|
15
|
+
LLL : "YYYY년 MMMM D일 LT",
|
16
|
+
LLLL : "YYYY년 MMMM D일 dddd LT"
|
17
|
+
},
|
18
|
+
meridiem : function (hour, minute, isUpper) {
|
19
|
+
return hour < 12 ? '오전' : '오후';
|
20
|
+
},
|
21
|
+
calendar : {
|
22
|
+
sameDay : '오늘 LT',
|
23
|
+
nextDay : '내일 LT',
|
24
|
+
nextWeek : 'dddd LT',
|
25
|
+
lastDay : '어제 LT',
|
26
|
+
lastWeek : '지난주 dddd LT',
|
27
|
+
sameElse : 'L'
|
28
|
+
},
|
29
|
+
relativeTime : {
|
30
|
+
future : "%s 후",
|
31
|
+
past : "%s 전",
|
32
|
+
s : "몇초",
|
33
|
+
ss : "%d초",
|
34
|
+
m : "일분",
|
35
|
+
mm : "%d분",
|
36
|
+
h : "한시간",
|
37
|
+
hh : "%d시간",
|
38
|
+
d : "하루",
|
39
|
+
dd : "%d일",
|
40
|
+
M : "한달",
|
41
|
+
MM : "%d달",
|
42
|
+
y : "일년",
|
43
|
+
yy : "%d년"
|
44
|
+
},
|
45
|
+
ordinal : function (number) {
|
46
|
+
return '일';
|
47
|
+
}
|
48
|
+
};
|
49
|
+
|
50
|
+
// Node
|
51
|
+
if (typeof module !== 'undefined' && module.exports) {
|
52
|
+
module.exports = lang;
|
53
|
+
}
|
54
|
+
// Browser
|
55
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
56
|
+
this.moment.lang('ko', lang);
|
57
|
+
}
|
58
|
+
}());
|
@@ -1,9 +1,16 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : korean (kr)
|
3
|
+
// author : Kyungwook, Park : https://github.com/kyungw00k
|
4
|
+
|
5
|
+
// This language config was incorrectly named 'kr' instead of 'ko'.
|
6
|
+
// In version 2.0.0, this will be deprecated and you should use 'ko' instead.
|
1
7
|
(function () {
|
2
8
|
var lang = {
|
3
9
|
months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
4
10
|
monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),
|
5
11
|
weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),
|
6
12
|
weekdaysShort : "일_월_화_수_목_금_토".split("_"),
|
13
|
+
weekdaysMin : "일_월_화_수_목_금_토".split("_"),
|
7
14
|
longDateFormat : {
|
8
15
|
LT : "A h시 mm분",
|
9
16
|
L : "YYYY.MM.DD",
|
@@ -11,7 +18,7 @@
|
|
11
18
|
LLL : "YYYY년 MMMM D일 LT",
|
12
19
|
LLLL : "YYYY년 MMMM D일 dddd LT"
|
13
20
|
},
|
14
|
-
meridiem : function(hour, minute, isUpper) {
|
21
|
+
meridiem : function (hour, minute, isUpper) {
|
15
22
|
return hour < 12 ? '오전' : '오후';
|
16
23
|
},
|
17
24
|
calendar : {
|
@@ -44,7 +51,7 @@
|
|
44
51
|
};
|
45
52
|
|
46
53
|
// Node
|
47
|
-
if (typeof module !== 'undefined') {
|
54
|
+
if (typeof module !== 'undefined' && module.exports) {
|
48
55
|
module.exports = lang;
|
49
56
|
}
|
50
57
|
// Browser
|
@@ -1,9 +1,13 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : norwegian bokmål (nb)
|
3
|
+
// author : Espen Hovlandsdal : https://github.com/rexxars
|
1
4
|
(function () {
|
2
5
|
var lang = {
|
3
6
|
months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),
|
4
7
|
monthsShort : "jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),
|
5
8
|
weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
|
6
9
|
weekdaysShort : "søn_man_tir_ons_tor_fre_lør".split("_"),
|
10
|
+
weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"),
|
7
11
|
longDateFormat : {
|
8
12
|
LT : "HH:mm",
|
9
13
|
L : "YYYY-MM-DD",
|
@@ -40,7 +44,7 @@
|
|
40
44
|
};
|
41
45
|
|
42
46
|
// Node
|
43
|
-
if (typeof module !== 'undefined') {
|
47
|
+
if (typeof module !== 'undefined' && module.exports) {
|
44
48
|
module.exports = lang;
|
45
49
|
}
|
46
50
|
// Browser
|
@@ -1,10 +1,22 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : dutch (nl)
|
3
|
+
// author : Joris Röling : https://github.com/jjupiter
|
1
4
|
(function () {
|
5
|
+
var monthsShortWithDots = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_");
|
6
|
+
var monthsShortWithoutDots = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");
|
2
7
|
var lang = {
|
3
8
|
months : "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),
|
4
|
-
monthsShort :
|
9
|
+
monthsShort : function (m, format) {
|
10
|
+
if (/-MMM-/.test(format)) {
|
11
|
+
return monthsShortWithoutDots[m.month()];
|
12
|
+
} else {
|
13
|
+
return monthsShortWithDots[m.month()];
|
14
|
+
}
|
15
|
+
},
|
5
16
|
weekdays : "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),
|
6
17
|
weekdaysShort : "zo._ma._di._wo._do._vr._za.".split("_"),
|
7
|
-
|
18
|
+
weekdaysMin : "Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),
|
19
|
+
longDateFormat : {
|
8
20
|
LT : "HH:mm",
|
9
21
|
L : "DD-MM-YYYY",
|
10
22
|
LL : "D MMMM YYYY",
|
@@ -40,7 +52,7 @@
|
|
40
52
|
};
|
41
53
|
|
42
54
|
// Node
|
43
|
-
if (typeof module !== 'undefined') {
|
55
|
+
if (typeof module !== 'undefined' && module.exports) {
|
44
56
|
module.exports = lang;
|
45
57
|
}
|
46
58
|
// Browser
|
@@ -1,3 +1,6 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : polish (pl)
|
3
|
+
// author : Rafal Hirsz : https://github.com/evoL
|
1
4
|
(function () {
|
2
5
|
var plural = function (n) {
|
3
6
|
return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1);
|
@@ -26,6 +29,7 @@
|
|
26
29
|
monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),
|
27
30
|
weekdays : "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),
|
28
31
|
weekdaysShort : "nie_pon_wt_śr_czw_pt_sb".split("_"),
|
32
|
+
weekdaysMin : "N_Pn_Wt_Śr_Cz_Pt_So".split("_"),
|
29
33
|
longDateFormat : {
|
30
34
|
LT : "HH:mm",
|
31
35
|
L : "DD-MM-YYYY",
|
@@ -62,7 +66,7 @@
|
|
62
66
|
};
|
63
67
|
|
64
68
|
// Node
|
65
|
-
if (typeof module !== 'undefined') {
|
69
|
+
if (typeof module !== 'undefined' && module.exports) {
|
66
70
|
module.exports = lang;
|
67
71
|
}
|
68
72
|
// Browser
|
@@ -0,0 +1,58 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : brazilian portuguese (pt-br)
|
3
|
+
// author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
|
4
|
+
(function () {
|
5
|
+
var lang = {
|
6
|
+
months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
|
7
|
+
monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
|
8
|
+
weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
|
9
|
+
weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
|
10
|
+
weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "HH:mm",
|
13
|
+
L : "DD/MM/YYYY",
|
14
|
+
LL : "D \\de MMMM \\de YYYY",
|
15
|
+
LLL : "D \\de MMMM \\de YYYY LT",
|
16
|
+
LLLL : "dddd, D \\de MMMM \\de YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay: '[Hoje às] LT',
|
20
|
+
nextDay: '[Amanhã às] LT',
|
21
|
+
nextWeek: 'dddd [às] LT',
|
22
|
+
lastDay: '[Ontem às] LT',
|
23
|
+
lastWeek: function () {
|
24
|
+
return (this.day() === 0 || this.day() === 6) ?
|
25
|
+
'[Último] dddd [às] LT' : // Saturday + Sunday
|
26
|
+
'[Última] dddd [às] LT'; // Monday - Friday
|
27
|
+
},
|
28
|
+
sameElse: 'L'
|
29
|
+
},
|
30
|
+
relativeTime : {
|
31
|
+
future : "em %s",
|
32
|
+
past : "%s atrás",
|
33
|
+
s : "segundos",
|
34
|
+
m : "um minuto",
|
35
|
+
mm : "%d minutos",
|
36
|
+
h : "uma hora",
|
37
|
+
hh : "%d horas",
|
38
|
+
d : "um dia",
|
39
|
+
dd : "%d dias",
|
40
|
+
M : "um mês",
|
41
|
+
MM : "%d meses",
|
42
|
+
y : "um ano",
|
43
|
+
yy : "%d anos"
|
44
|
+
},
|
45
|
+
ordinal : function (number) {
|
46
|
+
return 'º';
|
47
|
+
}
|
48
|
+
};
|
49
|
+
|
50
|
+
// Node
|
51
|
+
if (typeof module !== 'undefined' && module.exports) {
|
52
|
+
module.exports = lang;
|
53
|
+
}
|
54
|
+
// Browser
|
55
|
+
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
56
|
+
this.moment.lang('pt-br', lang);
|
57
|
+
}
|
58
|
+
}());
|