ember-rails-i18n 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +339 -0
- data/README.md +64 -0
- data/Rakefile +1 -0
- data/ember-rails-i18n.gemspec +26 -0
- data/lib/ember-rails-i18n.rb +15 -0
- data/lib/ember-rails-i18n/helper.rb +29 -0
- data/lib/ember-rails-i18n/version.rb +3 -0
- data/lib/javascripts/moment.js +2489 -0
- data/lib/javascripts/moment_locale/ar-ma.js +56 -0
- data/lib/javascripts/moment_locale/ar.js +56 -0
- data/lib/javascripts/moment_locale/bg.js +86 -0
- data/lib/javascripts/moment_locale/br.js +107 -0
- data/lib/javascripts/moment_locale/bs.js +139 -0
- data/lib/javascripts/moment_locale/ca.js +66 -0
- data/lib/javascripts/moment_locale/cs.js +155 -0
- data/lib/javascripts/moment_locale/cv.js +59 -0
- data/lib/javascripts/moment_locale/cy.js +77 -0
- data/lib/javascripts/moment_locale/da.js +56 -0
- data/lib/javascripts/moment_locale/de.js +71 -0
- data/lib/javascripts/moment_locale/el.js +79 -0
- data/lib/javascripts/moment_locale/en-au.js +62 -0
- data/lib/javascripts/moment_locale/en-ca.js +59 -0
- data/lib/javascripts/moment_locale/en-gb.js +63 -0
- data/lib/javascripts/moment_locale/eo.js +65 -0
- data/lib/javascripts/moment_locale/es.js +75 -0
- data/lib/javascripts/moment_locale/et.js +76 -0
- data/lib/javascripts/moment_locale/eu.js +60 -0
- data/lib/javascripts/moment_locale/fa.js +97 -0
- data/lib/javascripts/moment_locale/fi.js +103 -0
- data/lib/javascripts/moment_locale/fo.js +56 -0
- data/lib/javascripts/moment_locale/fr-ca.js +54 -0
- data/lib/javascripts/moment_locale/fr.js +58 -0
- data/lib/javascripts/moment_locale/gl.js +71 -0
- data/lib/javascripts/moment_locale/he.js +77 -0
- data/lib/javascripts/moment_locale/hi.js +105 -0
- data/lib/javascripts/moment_locale/hr.js +140 -0
- data/lib/javascripts/moment_locale/hu.js +105 -0
- data/lib/javascripts/moment_locale/hy-am.js +113 -0
- data/lib/javascripts/moment_locale/id.js +67 -0
- data/lib/javascripts/moment_locale/is.js +124 -0
- data/lib/javascripts/moment_locale/it.js +59 -0
- data/lib/javascripts/moment_locale/ja.js +58 -0
- data/lib/javascripts/moment_locale/ka.js +108 -0
- data/lib/javascripts/moment_locale/km.js +55 -0
- data/lib/javascripts/moment_locale/ko.js +63 -0
- data/lib/javascripts/moment_locale/lb.js +160 -0
- data/lib/javascripts/moment_locale/lt.js +118 -0
- data/lib/javascripts/moment_locale/lv.js +77 -0
- data/lib/javascripts/moment_locale/mk.js +86 -0
- data/lib/javascripts/moment_locale/ml.js +64 -0
- data/lib/javascripts/moment_locale/mr.js +104 -0
- data/lib/javascripts/moment_locale/ms-my.js +66 -0
- data/lib/javascripts/moment_locale/nb.js +57 -0
- data/lib/javascripts/moment_locale/ne.js +105 -0
- data/lib/javascripts/moment_locale/nl.js +67 -0
- data/lib/javascripts/moment_locale/nn.js +56 -0
- data/lib/javascripts/moment_locale/pl.js +98 -0
- data/lib/javascripts/moment_locale/pt-br.js +56 -0
- data/lib/javascripts/moment_locale/pt.js +60 -0
- data/lib/javascripts/moment_locale/ro.js +72 -0
- data/lib/javascripts/moment_locale/ru.js +163 -0
- data/lib/javascripts/moment_locale/sk.js +156 -0
- data/lib/javascripts/moment_locale/sl.js +144 -0
- data/lib/javascripts/moment_locale/sq.js +61 -0
- data/lib/javascripts/moment_locale/sr-cyr.js +106 -0
- data/lib/javascripts/moment_locale/sr.js +106 -0
- data/lib/javascripts/moment_locale/sv.js +63 -0
- data/lib/javascripts/moment_locale/ta.js +112 -0
- data/lib/javascripts/moment_locale/th.js +58 -0
- data/lib/javascripts/moment_locale/tl-ph.js +58 -0
- data/lib/javascripts/moment_locale/tr.js +93 -0
- data/lib/javascripts/moment_locale/tzm-la.js +55 -0
- data/lib/javascripts/moment_locale/tzm.js +55 -0
- data/lib/javascripts/moment_locale/uk.js +157 -0
- data/lib/javascripts/moment_locale/uz.js +55 -0
- data/lib/javascripts/moment_locale/vi.js +62 -0
- data/lib/javascripts/moment_locale/zh-cn.js +108 -0
- data/lib/javascripts/moment_locale/zh-tw.js +84 -0
- data/vendor/assets/javascripts/locales/i18n.js +598 -0
- data/vendor/assets/javascripts/locales/test.js.erb +3 -0
- metadata +182 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Morocco Central Atlas Tamaziɣt in Latin (tzm-la)
|
3
|
+
// author : Abdel Said : https://github.com/abdelsaid
|
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.lang('tzm-la', {
|
15
|
+
months : "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),
|
16
|
+
monthsShort : "innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),
|
17
|
+
weekdays : "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
|
18
|
+
weekdaysShort : "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
|
19
|
+
weekdaysMin : "asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM YYYY",
|
24
|
+
LLL : "D MMMM YYYY LT",
|
25
|
+
LLLL : "dddd D MMMM YYYY LT"
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay: "[asdkh g] LT",
|
29
|
+
nextDay: '[aska g] LT',
|
30
|
+
nextWeek: 'dddd [g] LT',
|
31
|
+
lastDay: '[assant g] LT',
|
32
|
+
lastWeek: 'dddd [g] LT',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "dadkh s yan %s",
|
37
|
+
past : "yan %s",
|
38
|
+
s : "imik",
|
39
|
+
m : "minuḍ",
|
40
|
+
mm : "%d minuḍ",
|
41
|
+
h : "saɛa",
|
42
|
+
hh : "%d tassaɛin",
|
43
|
+
d : "ass",
|
44
|
+
dd : "%d ossan",
|
45
|
+
M : "ayowr",
|
46
|
+
MM : "%d iyyirn",
|
47
|
+
y : "asgas",
|
48
|
+
yy : "%d isgasn"
|
49
|
+
},
|
50
|
+
week : {
|
51
|
+
dow : 6, // Saturday is the first day of the week.
|
52
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}));
|
@@ -0,0 +1,55 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Morocco Central Atlas Tamaziɣt (tzm)
|
3
|
+
// author : Abdel Said : https://github.com/abdelsaid
|
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.lang('tzm', {
|
15
|
+
months : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
|
16
|
+
monthsShort : "ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),
|
17
|
+
weekdays : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
|
18
|
+
weekdaysShort : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
|
19
|
+
weekdaysMin : "ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM YYYY",
|
24
|
+
LLL : "D MMMM YYYY LT",
|
25
|
+
LLLL : "dddd D MMMM YYYY LT"
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay: "[ⴰⵙⴷⵅ ⴴ] LT",
|
29
|
+
nextDay: '[ⴰⵙⴽⴰ ⴴ] LT',
|
30
|
+
nextWeek: 'dddd [ⴴ] LT',
|
31
|
+
lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT',
|
32
|
+
lastWeek: 'dddd [ⴴ] LT',
|
33
|
+
sameElse: 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",
|
37
|
+
past : "ⵢⴰⵏ %s",
|
38
|
+
s : "ⵉⵎⵉⴽ",
|
39
|
+
m : "ⵎⵉⵏⵓⴺ",
|
40
|
+
mm : "%d ⵎⵉⵏⵓⴺ",
|
41
|
+
h : "ⵙⴰⵄⴰ",
|
42
|
+
hh : "%d ⵜⴰⵙⵙⴰⵄⵉⵏ",
|
43
|
+
d : "ⴰⵙⵙ",
|
44
|
+
dd : "%d oⵙⵙⴰⵏ",
|
45
|
+
M : "ⴰⵢoⵓⵔ",
|
46
|
+
MM : "%d ⵉⵢⵢⵉⵔⵏ",
|
47
|
+
y : "ⴰⵙⴳⴰⵙ",
|
48
|
+
yy : "%d ⵉⵙⴳⴰⵙⵏ"
|
49
|
+
},
|
50
|
+
week : {
|
51
|
+
dow : 6, // Saturday is the first day of the week.
|
52
|
+
doy : 12 // The week that contains Jan 1st is the first week of the year.
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}));
|
@@ -0,0 +1,157 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : ukrainian (uk)
|
3
|
+
// author : zemlanin : https://github.com/zemlanin
|
4
|
+
// Author : Menelion Elensúle : https://github.com/Oire
|
5
|
+
|
6
|
+
(function (factory) {
|
7
|
+
if (typeof define === 'function' && define.amd) {
|
8
|
+
define(['moment'], factory); // AMD
|
9
|
+
} else if (typeof exports === 'object') {
|
10
|
+
module.exports = factory(require('../moment')); // Node
|
11
|
+
} else {
|
12
|
+
factory(window.moment); // Browser global
|
13
|
+
}
|
14
|
+
}(function (moment) {
|
15
|
+
function plural(word, num) {
|
16
|
+
var forms = word.split('_');
|
17
|
+
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]);
|
18
|
+
}
|
19
|
+
|
20
|
+
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
21
|
+
var format = {
|
22
|
+
'mm': 'хвилина_хвилини_хвилин',
|
23
|
+
'hh': 'година_години_годин',
|
24
|
+
'dd': 'день_дні_днів',
|
25
|
+
'MM': 'місяць_місяці_місяців',
|
26
|
+
'yy': 'рік_роки_років'
|
27
|
+
};
|
28
|
+
if (key === 'm') {
|
29
|
+
return withoutSuffix ? 'хвилина' : 'хвилину';
|
30
|
+
}
|
31
|
+
else if (key === 'h') {
|
32
|
+
return withoutSuffix ? 'година' : 'годину';
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
return number + ' ' + plural(format[key], +number);
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
function monthsCaseReplace(m, format) {
|
40
|
+
var months = {
|
41
|
+
'nominative': 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split('_'),
|
42
|
+
'accusative': 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split('_')
|
43
|
+
},
|
44
|
+
|
45
|
+
nounCase = (/D[oD]? *MMMM?/).test(format) ?
|
46
|
+
'accusative' :
|
47
|
+
'nominative';
|
48
|
+
|
49
|
+
return months[nounCase][m.month()];
|
50
|
+
}
|
51
|
+
|
52
|
+
function weekdaysCaseReplace(m, format) {
|
53
|
+
var weekdays = {
|
54
|
+
'nominative': 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split('_'),
|
55
|
+
'accusative': 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split('_'),
|
56
|
+
'genitive': 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split('_')
|
57
|
+
},
|
58
|
+
|
59
|
+
nounCase = (/(\[[ВвУу]\]) ?dddd/).test(format) ?
|
60
|
+
'accusative' :
|
61
|
+
((/\[?(?:минулої|наступної)? ?\] ?dddd/).test(format) ?
|
62
|
+
'genitive' :
|
63
|
+
'nominative');
|
64
|
+
|
65
|
+
return weekdays[nounCase][m.day()];
|
66
|
+
}
|
67
|
+
|
68
|
+
function processHoursFunction(str) {
|
69
|
+
return function () {
|
70
|
+
return str + 'о' + (this.hours() === 11 ? 'б' : '') + '] LT';
|
71
|
+
};
|
72
|
+
}
|
73
|
+
|
74
|
+
return moment.lang('uk', {
|
75
|
+
months : monthsCaseReplace,
|
76
|
+
monthsShort : "січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),
|
77
|
+
weekdays : weekdaysCaseReplace,
|
78
|
+
weekdaysShort : "нд_пн_вт_ср_чт_пт_сб".split("_"),
|
79
|
+
weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"),
|
80
|
+
longDateFormat : {
|
81
|
+
LT : "HH:mm",
|
82
|
+
L : "DD.MM.YYYY",
|
83
|
+
LL : "D MMMM YYYY р.",
|
84
|
+
LLL : "D MMMM YYYY р., LT",
|
85
|
+
LLLL : "dddd, D MMMM YYYY р., LT"
|
86
|
+
},
|
87
|
+
calendar : {
|
88
|
+
sameDay: processHoursFunction('[Сьогодні '),
|
89
|
+
nextDay: processHoursFunction('[Завтра '),
|
90
|
+
lastDay: processHoursFunction('[Вчора '),
|
91
|
+
nextWeek: processHoursFunction('[У] dddd ['),
|
92
|
+
lastWeek: function () {
|
93
|
+
switch (this.day()) {
|
94
|
+
case 0:
|
95
|
+
case 3:
|
96
|
+
case 5:
|
97
|
+
case 6:
|
98
|
+
return processHoursFunction('[Минулої] dddd [').call(this);
|
99
|
+
case 1:
|
100
|
+
case 2:
|
101
|
+
case 4:
|
102
|
+
return processHoursFunction('[Минулого] dddd [').call(this);
|
103
|
+
}
|
104
|
+
},
|
105
|
+
sameElse: 'L'
|
106
|
+
},
|
107
|
+
relativeTime : {
|
108
|
+
future : "за %s",
|
109
|
+
past : "%s тому",
|
110
|
+
s : "декілька секунд",
|
111
|
+
m : relativeTimeWithPlural,
|
112
|
+
mm : relativeTimeWithPlural,
|
113
|
+
h : "годину",
|
114
|
+
hh : relativeTimeWithPlural,
|
115
|
+
d : "день",
|
116
|
+
dd : relativeTimeWithPlural,
|
117
|
+
M : "місяць",
|
118
|
+
MM : relativeTimeWithPlural,
|
119
|
+
y : "рік",
|
120
|
+
yy : relativeTimeWithPlural
|
121
|
+
},
|
122
|
+
|
123
|
+
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
|
124
|
+
|
125
|
+
meridiem : function (hour, minute, isLower) {
|
126
|
+
if (hour < 4) {
|
127
|
+
return "ночі";
|
128
|
+
} else if (hour < 12) {
|
129
|
+
return "ранку";
|
130
|
+
} else if (hour < 17) {
|
131
|
+
return "дня";
|
132
|
+
} else {
|
133
|
+
return "вечора";
|
134
|
+
}
|
135
|
+
},
|
136
|
+
|
137
|
+
ordinal: function (number, period) {
|
138
|
+
switch (period) {
|
139
|
+
case 'M':
|
140
|
+
case 'd':
|
141
|
+
case 'DDD':
|
142
|
+
case 'w':
|
143
|
+
case 'W':
|
144
|
+
return number + '-й';
|
145
|
+
case 'D':
|
146
|
+
return number + '-го';
|
147
|
+
default:
|
148
|
+
return number;
|
149
|
+
}
|
150
|
+
},
|
151
|
+
|
152
|
+
week : {
|
153
|
+
dow : 1, // Monday is the first day of the week.
|
154
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
155
|
+
}
|
156
|
+
});
|
157
|
+
}));
|
@@ -0,0 +1,55 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : uzbek
|
3
|
+
// author : Sardor Muminov : https://github.com/muminoff
|
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.lang('uz', {
|
15
|
+
months : "январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),
|
16
|
+
monthsShort : "янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),
|
17
|
+
weekdays : "Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),
|
18
|
+
weekdaysShort : "Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),
|
19
|
+
weekdaysMin : "Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM YYYY",
|
24
|
+
LLL : "D MMMM YYYY LT",
|
25
|
+
LLLL : "D MMMM YYYY, dddd LT"
|
26
|
+
},
|
27
|
+
calendar : {
|
28
|
+
sameDay : '[Бугун соат] LT [да]',
|
29
|
+
nextDay : '[Эртага] LT [да]',
|
30
|
+
nextWeek : 'dddd [куни соат] LT [да]',
|
31
|
+
lastDay : '[Кеча соат] LT [да]',
|
32
|
+
lastWeek : '[Утган] dddd [куни соат] LT [да]',
|
33
|
+
sameElse : 'L'
|
34
|
+
},
|
35
|
+
relativeTime : {
|
36
|
+
future : "Якин %s ичида",
|
37
|
+
past : "Бир неча %s олдин",
|
38
|
+
s : "фурсат",
|
39
|
+
m : "бир дакика",
|
40
|
+
mm : "%d дакика",
|
41
|
+
h : "бир соат",
|
42
|
+
hh : "%d соат",
|
43
|
+
d : "бир кун",
|
44
|
+
dd : "%d кун",
|
45
|
+
M : "бир ой",
|
46
|
+
MM : "%d ой",
|
47
|
+
y : "бир йил",
|
48
|
+
yy : "%d йил"
|
49
|
+
},
|
50
|
+
week : {
|
51
|
+
dow : 1, // Monday is the first day of the week.
|
52
|
+
doy : 7 // The week that contains Jan 4th is the first week of the year.
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}));
|
@@ -0,0 +1,62 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : vietnamese (vi)
|
3
|
+
// author : Bang Nguyen : https://github.com/bangnk
|
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.lang('vi', {
|
15
|
+
months : "tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),
|
16
|
+
monthsShort : "Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),
|
17
|
+
weekdays : "chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),
|
18
|
+
weekdaysShort : "CN_T2_T3_T4_T5_T6_T7".split("_"),
|
19
|
+
weekdaysMin : "CN_T2_T3_T4_T5_T6_T7".split("_"),
|
20
|
+
longDateFormat : {
|
21
|
+
LT : "HH:mm",
|
22
|
+
L : "DD/MM/YYYY",
|
23
|
+
LL : "D MMMM [năm] YYYY",
|
24
|
+
LLL : "D MMMM [năm] YYYY LT",
|
25
|
+
LLLL : "dddd, D MMMM [năm] YYYY LT",
|
26
|
+
l : "DD/M/YYYY",
|
27
|
+
ll : "D MMM YYYY",
|
28
|
+
lll : "D MMM YYYY LT",
|
29
|
+
llll : "ddd, D MMM YYYY LT"
|
30
|
+
},
|
31
|
+
calendar : {
|
32
|
+
sameDay: "[Hôm nay lúc] LT",
|
33
|
+
nextDay: '[Ngày mai lúc] LT',
|
34
|
+
nextWeek: 'dddd [tuần tới lúc] LT',
|
35
|
+
lastDay: '[Hôm qua lúc] LT',
|
36
|
+
lastWeek: 'dddd [tuần rồi lúc] LT',
|
37
|
+
sameElse: 'L'
|
38
|
+
},
|
39
|
+
relativeTime : {
|
40
|
+
future : "%s tới",
|
41
|
+
past : "%s trước",
|
42
|
+
s : "vài giây",
|
43
|
+
m : "một phút",
|
44
|
+
mm : "%d phút",
|
45
|
+
h : "một giờ",
|
46
|
+
hh : "%d giờ",
|
47
|
+
d : "một ngày",
|
48
|
+
dd : "%d ngày",
|
49
|
+
M : "một tháng",
|
50
|
+
MM : "%d tháng",
|
51
|
+
y : "một năm",
|
52
|
+
yy : "%d năm"
|
53
|
+
},
|
54
|
+
ordinal : function (number) {
|
55
|
+
return number;
|
56
|
+
},
|
57
|
+
week : {
|
58
|
+
dow : 1, // Monday is the first day of the week.
|
59
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
60
|
+
}
|
61
|
+
});
|
62
|
+
}));
|
@@ -0,0 +1,108 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : chinese
|
3
|
+
// author : suupic : https://github.com/suupic
|
4
|
+
// author : Zeno Zeng : https://github.com/zenozeng
|
5
|
+
|
6
|
+
(function (factory) {
|
7
|
+
if (typeof define === 'function' && define.amd) {
|
8
|
+
define(['moment'], factory); // AMD
|
9
|
+
} else if (typeof exports === 'object') {
|
10
|
+
module.exports = factory(require('../moment')); // Node
|
11
|
+
} else {
|
12
|
+
factory(window.moment); // Browser global
|
13
|
+
}
|
14
|
+
}(function (moment) {
|
15
|
+
return moment.lang('zh-cn', {
|
16
|
+
months : "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),
|
17
|
+
monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),
|
18
|
+
weekdays : "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),
|
19
|
+
weekdaysShort : "周日_周一_周二_周三_周四_周五_周六".split("_"),
|
20
|
+
weekdaysMin : "日_一_二_三_四_五_六".split("_"),
|
21
|
+
longDateFormat : {
|
22
|
+
LT : "Ah点mm",
|
23
|
+
L : "YYYY-MM-DD",
|
24
|
+
LL : "YYYY年MMMD日",
|
25
|
+
LLL : "YYYY年MMMD日LT",
|
26
|
+
LLLL : "YYYY年MMMD日ddddLT",
|
27
|
+
l : "YYYY-MM-DD",
|
28
|
+
ll : "YYYY年MMMD日",
|
29
|
+
lll : "YYYY年MMMD日LT",
|
30
|
+
llll : "YYYY年MMMD日ddddLT"
|
31
|
+
},
|
32
|
+
meridiem : function (hour, minute, isLower) {
|
33
|
+
var hm = hour * 100 + minute;
|
34
|
+
if (hm < 600) {
|
35
|
+
return "凌晨";
|
36
|
+
} else if (hm < 900) {
|
37
|
+
return "早上";
|
38
|
+
} else if (hm < 1130) {
|
39
|
+
return "上午";
|
40
|
+
} else if (hm < 1230) {
|
41
|
+
return "中午";
|
42
|
+
} else if (hm < 1800) {
|
43
|
+
return "下午";
|
44
|
+
} else {
|
45
|
+
return "晚上";
|
46
|
+
}
|
47
|
+
},
|
48
|
+
calendar : {
|
49
|
+
sameDay : function () {
|
50
|
+
return this.minutes() === 0 ? "[今天]Ah[点整]" : "[今天]LT";
|
51
|
+
},
|
52
|
+
nextDay : function () {
|
53
|
+
return this.minutes() === 0 ? "[明天]Ah[点整]" : "[明天]LT";
|
54
|
+
},
|
55
|
+
lastDay : function () {
|
56
|
+
return this.minutes() === 0 ? "[昨天]Ah[点整]" : "[昨天]LT";
|
57
|
+
},
|
58
|
+
nextWeek : function () {
|
59
|
+
var startOfWeek, prefix;
|
60
|
+
startOfWeek = moment().startOf('week');
|
61
|
+
prefix = this.unix() - startOfWeek.unix() >= 7 * 24 * 3600 ? '[下]' : '[本]';
|
62
|
+
return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
|
63
|
+
},
|
64
|
+
lastWeek : function () {
|
65
|
+
var startOfWeek, prefix;
|
66
|
+
startOfWeek = moment().startOf('week');
|
67
|
+
prefix = this.unix() < startOfWeek.unix() ? '[上]' : '[本]';
|
68
|
+
return this.minutes() === 0 ? prefix + "dddAh点整" : prefix + "dddAh点mm";
|
69
|
+
},
|
70
|
+
sameElse : 'LL'
|
71
|
+
},
|
72
|
+
ordinal : function (number, period) {
|
73
|
+
switch (period) {
|
74
|
+
case "d":
|
75
|
+
case "D":
|
76
|
+
case "DDD":
|
77
|
+
return number + "日";
|
78
|
+
case "M":
|
79
|
+
return number + "月";
|
80
|
+
case "w":
|
81
|
+
case "W":
|
82
|
+
return number + "周";
|
83
|
+
default:
|
84
|
+
return number;
|
85
|
+
}
|
86
|
+
},
|
87
|
+
relativeTime : {
|
88
|
+
future : "%s内",
|
89
|
+
past : "%s前",
|
90
|
+
s : "几秒",
|
91
|
+
m : "1分钟",
|
92
|
+
mm : "%d分钟",
|
93
|
+
h : "1小时",
|
94
|
+
hh : "%d小时",
|
95
|
+
d : "1天",
|
96
|
+
dd : "%d天",
|
97
|
+
M : "1个月",
|
98
|
+
MM : "%d个月",
|
99
|
+
y : "1年",
|
100
|
+
yy : "%d年"
|
101
|
+
},
|
102
|
+
week : {
|
103
|
+
// GB/T 7408-1994《数据元和交换格式·信息交换·日期和时间表示法》与ISO 8601:1988等效
|
104
|
+
dow : 1, // Monday is the first day of the week.
|
105
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
106
|
+
}
|
107
|
+
});
|
108
|
+
}));
|