timeago_js 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/javascripts/timeago/locales/ar.js +26 -26
- data/assets/javascripts/timeago/locales/be.js +51 -51
- data/assets/javascripts/timeago/locales/bg.js +17 -17
- data/assets/javascripts/timeago/locales/ca.js +17 -17
- data/assets/javascripts/timeago/locales/da.js +17 -17
- data/assets/javascripts/timeago/locales/de.js +17 -17
- data/assets/javascripts/timeago/locales/el.js +17 -17
- data/assets/javascripts/timeago/locales/en.js +17 -17
- data/assets/javascripts/timeago/locales/en_short.js +17 -17
- data/assets/javascripts/timeago/locales/es.js +17 -17
- data/assets/javascripts/timeago/locales/eu.js +17 -17
- data/assets/javascripts/timeago/locales/fa.js +18 -0
- data/assets/javascripts/timeago/locales/fi.js +17 -17
- data/assets/javascripts/timeago/locales/fr.js +17 -17
- data/assets/javascripts/timeago/locales/he.js +17 -17
- data/assets/javascripts/timeago/locales/hu.js +17 -17
- data/assets/javascripts/timeago/locales/in_ID.js +17 -17
- data/assets/javascripts/timeago/locales/it.js +17 -17
- data/assets/javascripts/timeago/locales/ja.js +17 -17
- data/assets/javascripts/timeago/locales/ko.js +17 -17
- data/assets/javascripts/timeago/locales/ml.js +17 -17
- data/assets/javascripts/timeago/locales/my.js +18 -0
- data/assets/javascripts/timeago/locales/nl.js +17 -17
- data/assets/javascripts/timeago/locales/pl.js +34 -34
- data/assets/javascripts/timeago/locales/pt_BR.js +17 -17
- data/assets/javascripts/timeago/locales/ro.js +28 -28
- data/assets/javascripts/timeago/locales/ru.js +51 -51
- data/assets/javascripts/timeago/locales/sv.js +17 -17
- data/assets/javascripts/timeago/locales/ta.js +17 -17
- data/assets/javascripts/timeago/locales/th.js +17 -17
- data/assets/javascripts/timeago/locales/tr.js +17 -17
- data/assets/javascripts/timeago/locales/uk.js +40 -40
- data/assets/javascripts/timeago/locales/vi.js +17 -17
- data/assets/javascripts/timeago/locales/zh_CN.js +17 -17
- data/assets/javascripts/timeago/locales/zh_TW.js +17 -17
- data/assets/javascripts/timeago.js +261 -258
- data/assets/javascripts/timeago.locales.js +1 -1
- data/lib/timeago_js/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ef3bb58fb89266b9e5d3afea9587ad9c302b1a5
|
4
|
+
data.tar.gz: c61821fe0f804b3232cd5ef5de07712d8db0f870
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc48621b5533d3ccdd1bbae2aef639f2ce266e8ebff56127f887271dcecf3a33739ee25612f5c6a6cfd35ef3b3cc45542c18239d9a2d5d506caa1f3fbda73e6b
|
7
|
+
data.tar.gz: 7d2116a5a4c2998ac150400256353f1679d2591fcb3d903fbe57041b2d6603e26d0e187f47af382aea992f509768f82435f791b9f3aa2b4587f6ae24ff55a933
|
@@ -1,30 +1,30 @@
|
|
1
1
|
(function() {
|
2
|
-
var _fn = function(number, index) {
|
3
|
-
if (index === 0) {
|
4
|
-
return [ 'منذ لحظات', 'بعد لحظات' ];
|
5
|
-
}
|
6
|
-
|
7
|
-
var timeStr = formatTime(Math.floor(index/2), number);
|
8
|
-
return ['منذ' + ' ' + timeStr, 'بعد' + ' ' + timeStr];
|
9
|
-
}
|
10
|
-
|
11
|
-
var timeTypes = [
|
12
|
-
[ 'ثانية', 'ثانيتين', '%s ثوان', '%s ثانية' ], // Seconds
|
13
|
-
[ 'دقيقة', 'دقيقتين', '%s دقائق', '%s دقيقة' ], // Minutes
|
14
|
-
[ 'ساعة', 'ساعتين', '%s ساعات', '%s ساعة' ], // Hours
|
15
|
-
[ 'يوم', 'يومين', '%s أيام', '%s يوماً' ], // Days
|
16
|
-
[ 'أسبوع', 'أسبوعين', '%s أسابيع', '%s أسبوعاً' ], // Weeks
|
17
|
-
[ 'شهر', 'شهرين', '%s أشهر', '%s شهراً' ], // Months
|
18
|
-
[ 'عام', 'عامين', '%s أعوام', '%s عاماً' ] // Years
|
19
|
-
];
|
20
|
-
|
21
|
-
function formatTime(type, n) {
|
22
|
-
if (n < 3)
|
23
|
-
return timeTypes[type][n-1];
|
24
|
-
else if (n >= 3 && n <= 10)
|
25
|
-
return timeTypes[type][2];
|
26
|
-
else
|
27
|
-
return timeTypes[type][3];
|
2
|
+
var _fn = function(number, index) {
|
3
|
+
if (index === 0) {
|
4
|
+
return [ 'منذ لحظات', 'بعد لحظات' ];
|
5
|
+
}
|
6
|
+
|
7
|
+
var timeStr = formatTime(Math.floor(index/2), number);
|
8
|
+
return ['منذ' + ' ' + timeStr, 'بعد' + ' ' + timeStr];
|
9
|
+
}
|
10
|
+
|
11
|
+
var timeTypes = [
|
12
|
+
[ 'ثانية', 'ثانيتين', '%s ثوان', '%s ثانية' ], // Seconds
|
13
|
+
[ 'دقيقة', 'دقيقتين', '%s دقائق', '%s دقيقة' ], // Minutes
|
14
|
+
[ 'ساعة', 'ساعتين', '%s ساعات', '%s ساعة' ], // Hours
|
15
|
+
[ 'يوم', 'يومين', '%s أيام', '%s يوماً' ], // Days
|
16
|
+
[ 'أسبوع', 'أسبوعين', '%s أسابيع', '%s أسبوعاً' ], // Weeks
|
17
|
+
[ 'شهر', 'شهرين', '%s أشهر', '%s شهراً' ], // Months
|
18
|
+
[ 'عام', 'عامين', '%s أعوام', '%s عاماً' ] // Years
|
19
|
+
];
|
20
|
+
|
21
|
+
function formatTime(type, n) {
|
22
|
+
if (n < 3)
|
23
|
+
return timeTypes[type][n-1];
|
24
|
+
else if (n >= 3 && n <= 10)
|
25
|
+
return timeTypes[type][2];
|
26
|
+
else
|
27
|
+
return timeTypes[type][3];
|
28
28
|
}
|
29
29
|
this.timeago.register('ar', _fn)
|
30
30
|
})();
|
@@ -1,55 +1,55 @@
|
|
1
1
|
(function() {
|
2
|
-
var seconds = formatNum.bind(null, 'секунду', '%s секунду', '%s секунды', '%s секунд'),
|
3
|
-
minutes = formatNum.bind(null, 'хвіліну', '%s хвіліну', '%s хвіліны', '%s хвілін'),
|
4
|
-
hours = formatNum.bind(null, 'гадзіну', '%s гадзіну', '%s гадзіны', '%s гадзін'),
|
5
|
-
days = formatNum.bind(null, 'дзень', '%s дзень', '%s дні', '%s дзён'),
|
6
|
-
weeks = formatNum.bind(null, 'тыдзень', '%s тыдзень', '%s тыдні', '%s тыдняў'),
|
7
|
-
months = formatNum.bind(null, 'месяц', '%s месяц', '%s месяцы', '%s месяцаў'),
|
8
|
-
years = formatNum.bind(null, 'год', '%s год', '%s гады', '%s гадоў');
|
9
|
-
|
10
|
-
var _fn = function(number, index) {
|
11
|
-
switch(index) {
|
12
|
-
case 0: return ['толькі што', 'праз некалькі секунд'];
|
13
|
-
case 1: return [seconds(number) + ' таму', 'праз ' + seconds(number)];
|
14
|
-
case 2:
|
15
|
-
case 3: return [minutes(number) + ' таму', 'праз ' + minutes(number)];
|
16
|
-
case 4:
|
17
|
-
case 5: return [hours(number) + ' таму', 'праз ' + hours(number)];
|
18
|
-
case 6:
|
19
|
-
case 7: return [days(number) + ' таму', 'праз ' + days(number)];
|
20
|
-
case 8:
|
21
|
-
case 9: return [weeks(number) + ' таму', 'праз ' + weeks(number)];
|
22
|
-
case 10:
|
23
|
-
case 11: return [months(number) + ' таму', 'праз ' + months(number)];
|
24
|
-
case 12:
|
25
|
-
case 13: return [years(number) + ' таму', 'праз ' + years(number)];
|
26
|
-
default: return ['', '']
|
27
|
-
}
|
28
|
-
};
|
29
|
-
|
30
|
-
/**
|
31
|
-
*
|
32
|
-
* @param f1 - 1
|
33
|
-
* @param f - 21, 31, ...
|
34
|
-
* @param s - 2-4, 22-24, 32-34 ...
|
35
|
-
* @param t - 5-20, 25-30, ...
|
36
|
-
* @param n
|
37
|
-
* @returns {string}
|
38
|
-
*/
|
39
|
-
function formatNum(f1, f, s, t, n) {
|
40
|
-
var n10 = n % 10,
|
41
|
-
str = t;
|
42
|
-
|
43
|
-
if (n === 1) {
|
44
|
-
str = f1;
|
45
|
-
} else if (n10 === 1 && n > 20) {
|
46
|
-
str = f;
|
47
|
-
} else if (n10 > 1 && n10 < 5 && (n > 20 || n < 10)) {
|
48
|
-
str = s;
|
49
|
-
}
|
50
|
-
|
51
|
-
return str;
|
52
|
-
}
|
2
|
+
var seconds = formatNum.bind(null, 'секунду', '%s секунду', '%s секунды', '%s секунд'),
|
3
|
+
minutes = formatNum.bind(null, 'хвіліну', '%s хвіліну', '%s хвіліны', '%s хвілін'),
|
4
|
+
hours = formatNum.bind(null, 'гадзіну', '%s гадзіну', '%s гадзіны', '%s гадзін'),
|
5
|
+
days = formatNum.bind(null, 'дзень', '%s дзень', '%s дні', '%s дзён'),
|
6
|
+
weeks = formatNum.bind(null, 'тыдзень', '%s тыдзень', '%s тыдні', '%s тыдняў'),
|
7
|
+
months = formatNum.bind(null, 'месяц', '%s месяц', '%s месяцы', '%s месяцаў'),
|
8
|
+
years = formatNum.bind(null, 'год', '%s год', '%s гады', '%s гадоў');
|
9
|
+
|
10
|
+
var _fn = function(number, index) {
|
11
|
+
switch(index) {
|
12
|
+
case 0: return ['толькі што', 'праз некалькі секунд'];
|
13
|
+
case 1: return [seconds(number) + ' таму', 'праз ' + seconds(number)];
|
14
|
+
case 2:
|
15
|
+
case 3: return [minutes(number) + ' таму', 'праз ' + minutes(number)];
|
16
|
+
case 4:
|
17
|
+
case 5: return [hours(number) + ' таму', 'праз ' + hours(number)];
|
18
|
+
case 6:
|
19
|
+
case 7: return [days(number) + ' таму', 'праз ' + days(number)];
|
20
|
+
case 8:
|
21
|
+
case 9: return [weeks(number) + ' таму', 'праз ' + weeks(number)];
|
22
|
+
case 10:
|
23
|
+
case 11: return [months(number) + ' таму', 'праз ' + months(number)];
|
24
|
+
case 12:
|
25
|
+
case 13: return [years(number) + ' таму', 'праз ' + years(number)];
|
26
|
+
default: return ['', '']
|
27
|
+
}
|
28
|
+
};
|
29
|
+
|
30
|
+
/**
|
31
|
+
*
|
32
|
+
* @param f1 - 1
|
33
|
+
* @param f - 21, 31, ...
|
34
|
+
* @param s - 2-4, 22-24, 32-34 ...
|
35
|
+
* @param t - 5-20, 25-30, ...
|
36
|
+
* @param n
|
37
|
+
* @returns {string}
|
38
|
+
*/
|
39
|
+
function formatNum(f1, f, s, t, n) {
|
40
|
+
var n10 = n % 10,
|
41
|
+
str = t;
|
42
|
+
|
43
|
+
if (n === 1) {
|
44
|
+
str = f1;
|
45
|
+
} else if (n10 === 1 && n > 20) {
|
46
|
+
str = f;
|
47
|
+
} else if (n10 > 1 && n10 < 5 && (n > 20 || n < 10)) {
|
48
|
+
str = s;
|
49
|
+
}
|
50
|
+
|
51
|
+
return str;
|
52
|
+
}
|
53
53
|
|
54
54
|
this.timeago.register('be', _fn)
|
55
55
|
})();
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('bg', function(number, index) {
|
2
|
-
return [
|
3
|
-
['току що', 'съвсем скоро'],
|
4
|
-
['преди %s секунди', 'след %s секунди'],
|
5
|
-
['преди 1 минута', 'след 1 минута'],
|
6
|
-
['преди %s минути', 'след %s минути'],
|
7
|
-
['преди 1 час', 'след 1 час'],
|
8
|
-
['преди %s часа', 'след %s часа'],
|
9
|
-
['преди 1 ден', 'след 1 ден'],
|
10
|
-
['преди %s дни', 'след %s дни'],
|
11
|
-
['преди 1 седмица', 'след 1 седмица'],
|
12
|
-
['преди %s седмици', 'след %s седмици'],
|
13
|
-
['преди 1 месец', 'след 1 месец'],
|
14
|
-
['преди %s месеца', 'след %s месеца'],
|
15
|
-
['преди 1 година', 'след 1 година'],
|
16
|
-
['преди %s години', 'след %s години']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('bg', function(number, index) {
|
2
|
+
return [
|
3
|
+
['току що', 'съвсем скоро'],
|
4
|
+
['преди %s секунди', 'след %s секунди'],
|
5
|
+
['преди 1 минута', 'след 1 минута'],
|
6
|
+
['преди %s минути', 'след %s минути'],
|
7
|
+
['преди 1 час', 'след 1 час'],
|
8
|
+
['преди %s часа', 'след %s часа'],
|
9
|
+
['преди 1 ден', 'след 1 ден'],
|
10
|
+
['преди %s дни', 'след %s дни'],
|
11
|
+
['преди 1 седмица', 'след 1 седмица'],
|
12
|
+
['преди %s седмици', 'след %s седмици'],
|
13
|
+
['преди 1 месец', 'след 1 месец'],
|
14
|
+
['преди %s месеца', 'след %s месеца'],
|
15
|
+
['преди 1 година', 'след 1 година'],
|
16
|
+
['преди %s години', 'след %s години']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('ca', function(number, index) {
|
2
|
-
return [
|
3
|
-
['fa un moment', 'd\'aquí un moment'],
|
4
|
-
['fa %s segons', 'd\'aquí %s segons'],
|
5
|
-
['fa 1 minut', 'd\'aquí 1 minut'],
|
6
|
-
['fa %s minuts', 'd\'aquí %s minuts'],
|
7
|
-
['fa 1 hora', 'd\'aquí 1 hora'],
|
8
|
-
['fa %s hores', 'd\'aquí %s hores'],
|
9
|
-
['fa 1 dia', 'd\'aquí 1 dia'],
|
10
|
-
['fa %s dies', 'd\'aquí %s dies'],
|
11
|
-
['fa 1 setmana', 'd\'aquí 1 setmana'],
|
12
|
-
['fa %s setmanes', 'd\'aquí %s setmanes'],
|
13
|
-
['fa 1 mes', 'd\'aquí 1 mes'],
|
14
|
-
['fa %s mesos', 'd\'aquí %s mesos'],
|
15
|
-
['fa 1 any', 'd\'aquí 1 any'],
|
16
|
-
['fa %s anys', 'd\'aquí %s anys']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('ca', function(number, index) {
|
2
|
+
return [
|
3
|
+
['fa un moment', 'd\'aquí un moment'],
|
4
|
+
['fa %s segons', 'd\'aquí %s segons'],
|
5
|
+
['fa 1 minut', 'd\'aquí 1 minut'],
|
6
|
+
['fa %s minuts', 'd\'aquí %s minuts'],
|
7
|
+
['fa 1 hora', 'd\'aquí 1 hora'],
|
8
|
+
['fa %s hores', 'd\'aquí %s hores'],
|
9
|
+
['fa 1 dia', 'd\'aquí 1 dia'],
|
10
|
+
['fa %s dies', 'd\'aquí %s dies'],
|
11
|
+
['fa 1 setmana', 'd\'aquí 1 setmana'],
|
12
|
+
['fa %s setmanes', 'd\'aquí %s setmanes'],
|
13
|
+
['fa 1 mes', 'd\'aquí 1 mes'],
|
14
|
+
['fa %s mesos', 'd\'aquí %s mesos'],
|
15
|
+
['fa 1 any', 'd\'aquí 1 any'],
|
16
|
+
['fa %s anys', 'd\'aquí %s anys']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('da', function(number, index) {
|
2
|
-
return [
|
3
|
-
['for et øjeblik siden', 'om et øjeblik'],
|
4
|
-
['for %s sekunder siden', 'om %s sekunder'],
|
5
|
-
['for 1 minut siden', 'om 1 minut'],
|
6
|
-
['for %s minutter siden', 'om %s minutter'],
|
7
|
-
['for 1 time siden', 'om 1 time'],
|
8
|
-
['for %s timer siden', 'om %s timer'],
|
9
|
-
['for 1 dag siden', 'om 1 dag'],
|
10
|
-
['for %s dage siden', 'om %s dage'],
|
11
|
-
['for 1 uge siden', 'om 1 uge'],
|
12
|
-
['for %s uger siden', 'om %s uger'],
|
13
|
-
['for 1 måned siden', 'om 1 måned'],
|
14
|
-
['for %s måneder siden', 'om %s måneder'],
|
15
|
-
['for 1 år siden', 'om 1 år'],
|
16
|
-
['for %s år siden', 'om %s år']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('da', function(number, index) {
|
2
|
+
return [
|
3
|
+
['for et øjeblik siden', 'om et øjeblik'],
|
4
|
+
['for %s sekunder siden', 'om %s sekunder'],
|
5
|
+
['for 1 minut siden', 'om 1 minut'],
|
6
|
+
['for %s minutter siden', 'om %s minutter'],
|
7
|
+
['for 1 time siden', 'om 1 time'],
|
8
|
+
['for %s timer siden', 'om %s timer'],
|
9
|
+
['for 1 dag siden', 'om 1 dag'],
|
10
|
+
['for %s dage siden', 'om %s dage'],
|
11
|
+
['for 1 uge siden', 'om 1 uge'],
|
12
|
+
['for %s uger siden', 'om %s uger'],
|
13
|
+
['for 1 måned siden', 'om 1 måned'],
|
14
|
+
['for %s måneder siden', 'om %s måneder'],
|
15
|
+
['for 1 år siden', 'om 1 år'],
|
16
|
+
['for %s år siden', 'om %s år']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('de', function(number, index) {
|
2
|
-
return [
|
3
|
-
['gerade eben', 'vor einer Weile'],
|
4
|
-
['vor %s Sekunden', 'in %s Sekunden'],
|
5
|
-
['vor 1 Minute', 'in 1 Minute'],
|
6
|
-
['vor %s Minuten', 'in %s Minuten'],
|
7
|
-
['vor 1 Stunde', 'in 1 Stunde'],
|
8
|
-
['vor %s Stunden', 'in %s Stunden'],
|
9
|
-
['vor 1 Tag', 'in 1 Tag'],
|
10
|
-
['vor %s Tagen', 'in %s Tagen'],
|
11
|
-
['vor 1 Woche', 'in 1 Woche'],
|
12
|
-
['vor %s Wochen', 'in %s Wochen'],
|
13
|
-
['vor 1 Monat', 'in 1 Monat'],
|
14
|
-
['vor %s Monaten', 'in %s Monaten'],
|
15
|
-
['vor 1 Jahr', 'in 1 Jahr'],
|
16
|
-
['vor %s Jahren', 'in %s Jahren']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('de', function(number, index) {
|
2
|
+
return [
|
3
|
+
['gerade eben', 'vor einer Weile'],
|
4
|
+
['vor %s Sekunden', 'in %s Sekunden'],
|
5
|
+
['vor 1 Minute', 'in 1 Minute'],
|
6
|
+
['vor %s Minuten', 'in %s Minuten'],
|
7
|
+
['vor 1 Stunde', 'in 1 Stunde'],
|
8
|
+
['vor %s Stunden', 'in %s Stunden'],
|
9
|
+
['vor 1 Tag', 'in 1 Tag'],
|
10
|
+
['vor %s Tagen', 'in %s Tagen'],
|
11
|
+
['vor 1 Woche', 'in 1 Woche'],
|
12
|
+
['vor %s Wochen', 'in %s Wochen'],
|
13
|
+
['vor 1 Monat', 'in 1 Monat'],
|
14
|
+
['vor %s Monaten', 'in %s Monaten'],
|
15
|
+
['vor 1 Jahr', 'in 1 Jahr'],
|
16
|
+
['vor %s Jahren', 'in %s Jahren']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('el', function(number, index) {
|
2
|
-
return [
|
3
|
-
['μόλις τώρα', 'σε λίγο'],
|
4
|
-
['%s δευτερόλεπτα πριν', 'σε %s δευτερόλεπτα'],
|
5
|
-
['1 λεπτό πριν', 'σε 1 λεπτό'],
|
6
|
-
['%s λεπτά πριν', 'σε %s λεπτά'],
|
7
|
-
['1 ώρα πριν', 'σε 1 ώρα'],
|
8
|
-
['%s ώρες πριν', 'σε %s ώρες'],
|
9
|
-
['1 μέρα πριν', 'σε 1 μέρα'],
|
10
|
-
['%s μέρες πριν', 'σε %s μέρες'],
|
11
|
-
['1 εβδομάδα πριν', 'σε 1 εβδομάδα'],
|
12
|
-
['%s εβδομάδες πριν', 'σε %s εβδομάδες'],
|
13
|
-
['1 μήνα πριν', 'σε 1 μήνα'],
|
14
|
-
['%s μήνες πριν', 'σε %s μήνες'],
|
15
|
-
['1 χρόνο πριν', 'σε 1 χρόνο'],
|
16
|
-
['%s χρόνια πριν', 'σε %s χρόνια']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('el', function(number, index) {
|
2
|
+
return [
|
3
|
+
['μόλις τώρα', 'σε λίγο'],
|
4
|
+
['%s δευτερόλεπτα πριν', 'σε %s δευτερόλεπτα'],
|
5
|
+
['1 λεπτό πριν', 'σε 1 λεπτό'],
|
6
|
+
['%s λεπτά πριν', 'σε %s λεπτά'],
|
7
|
+
['1 ώρα πριν', 'σε 1 ώρα'],
|
8
|
+
['%s ώρες πριν', 'σε %s ώρες'],
|
9
|
+
['1 μέρα πριν', 'σε 1 μέρα'],
|
10
|
+
['%s μέρες πριν', 'σε %s μέρες'],
|
11
|
+
['1 εβδομάδα πριν', 'σε 1 εβδομάδα'],
|
12
|
+
['%s εβδομάδες πριν', 'σε %s εβδομάδες'],
|
13
|
+
['1 μήνα πριν', 'σε 1 μήνα'],
|
14
|
+
['%s μήνες πριν', 'σε %s μήνες'],
|
15
|
+
['1 χρόνο πριν', 'σε 1 χρόνο'],
|
16
|
+
['%s χρόνια πριν', 'σε %s χρόνια']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('en', function(number, index) {
|
2
|
-
return [
|
3
|
-
['just now', 'right now'],
|
4
|
-
['%s seconds ago', 'in %s seconds'],
|
5
|
-
['1 minute ago', 'in 1 minute'],
|
6
|
-
['%s minutes ago', 'in %s minutes'],
|
7
|
-
['1 hour ago', 'in 1 hour'],
|
8
|
-
['%s hours ago', 'in %s hours'],
|
9
|
-
['1 day ago', 'in 1 day'],
|
10
|
-
['%s days ago', 'in %s days'],
|
11
|
-
['1 week ago', 'in 1 week'],
|
12
|
-
['%s weeks ago', 'in %s weeks'],
|
13
|
-
['1 month ago', 'in 1 month'],
|
14
|
-
['%s months ago', 'in %s months'],
|
15
|
-
['1 year ago', 'in 1 year'],
|
16
|
-
['%s years ago', 'in %s years']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('en', function(number, index) {
|
2
|
+
return [
|
3
|
+
['just now', 'right now'],
|
4
|
+
['%s seconds ago', 'in %s seconds'],
|
5
|
+
['1 minute ago', 'in 1 minute'],
|
6
|
+
['%s minutes ago', 'in %s minutes'],
|
7
|
+
['1 hour ago', 'in 1 hour'],
|
8
|
+
['%s hours ago', 'in %s hours'],
|
9
|
+
['1 day ago', 'in 1 day'],
|
10
|
+
['%s days ago', 'in %s days'],
|
11
|
+
['1 week ago', 'in 1 week'],
|
12
|
+
['%s weeks ago', 'in %s weeks'],
|
13
|
+
['1 month ago', 'in 1 month'],
|
14
|
+
['%s months ago', 'in %s months'],
|
15
|
+
['1 year ago', 'in 1 year'],
|
16
|
+
['%s years ago', 'in %s years']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('en_short', function(number, index) {
|
2
|
-
return [
|
3
|
-
['just now', 'right now'],
|
4
|
-
['%ss ago', 'in %ss'],
|
5
|
-
['1m ago', 'in 1m'],
|
6
|
-
['%sm ago', 'in %sm'],
|
7
|
-
['1h ago', 'in 1h'],
|
8
|
-
['%sh ago', 'in %sh'],
|
9
|
-
['1d ago', 'in 1d'],
|
10
|
-
['%sd ago', 'in %sd'],
|
11
|
-
['1w ago', 'in 1w'],
|
12
|
-
['%sw ago', 'in %sw'],
|
13
|
-
['1mo ago', 'in 1mo'],
|
14
|
-
['%smo ago', 'in %smo'],
|
15
|
-
['1yr ago', 'in 1yr'],
|
16
|
-
['%syr ago', 'in %syr']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('en_short', function(number, index) {
|
2
|
+
return [
|
3
|
+
['just now', 'right now'],
|
4
|
+
['%ss ago', 'in %ss'],
|
5
|
+
['1m ago', 'in 1m'],
|
6
|
+
['%sm ago', 'in %sm'],
|
7
|
+
['1h ago', 'in 1h'],
|
8
|
+
['%sh ago', 'in %sh'],
|
9
|
+
['1d ago', 'in 1d'],
|
10
|
+
['%sd ago', 'in %sd'],
|
11
|
+
['1w ago', 'in 1w'],
|
12
|
+
['%sw ago', 'in %sw'],
|
13
|
+
['1mo ago', 'in 1mo'],
|
14
|
+
['%smo ago', 'in %smo'],
|
15
|
+
['1yr ago', 'in 1yr'],
|
16
|
+
['%syr ago', 'in %syr']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('es', function(number, index) {
|
2
|
-
return [
|
3
|
-
['justo ahora', 'en un rato'],
|
4
|
-
['hace %s segundos', 'en %s segundos'],
|
5
|
-
['hace 1 minuto', 'en 1 minuto'],
|
6
|
-
['hace %s minutos', 'en %s minutos'],
|
7
|
-
['hace 1 hora', 'en 1 hora'],
|
8
|
-
['hace %s horas', 'en %s horas'],
|
9
|
-
['hace 1 día', 'en 1 día'],
|
10
|
-
['hace %s días', 'en %s días'],
|
11
|
-
['hace 1 semana', 'en 1 semana'],
|
12
|
-
['hace %s semanas', 'en %s semanas'],
|
13
|
-
['hace 1 mes', 'en 1 mes'],
|
14
|
-
['hace %s meses', 'en %s meses'],
|
15
|
-
['hace 1 año', 'en 1 año'],
|
16
|
-
['hace %s años', 'en %s años']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('es', function(number, index) {
|
2
|
+
return [
|
3
|
+
['justo ahora', 'en un rato'],
|
4
|
+
['hace %s segundos', 'en %s segundos'],
|
5
|
+
['hace 1 minuto', 'en 1 minuto'],
|
6
|
+
['hace %s minutos', 'en %s minutos'],
|
7
|
+
['hace 1 hora', 'en 1 hora'],
|
8
|
+
['hace %s horas', 'en %s horas'],
|
9
|
+
['hace 1 día', 'en 1 día'],
|
10
|
+
['hace %s días', 'en %s días'],
|
11
|
+
['hace 1 semana', 'en 1 semana'],
|
12
|
+
['hace %s semanas', 'en %s semanas'],
|
13
|
+
['hace 1 mes', 'en 1 mes'],
|
14
|
+
['hace %s meses', 'en %s meses'],
|
15
|
+
['hace 1 año', 'en 1 año'],
|
16
|
+
['hace %s años', 'en %s años']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('eu', function(number, index) {
|
2
|
-
return [
|
3
|
-
['orain', 'denbora bat barru'],
|
4
|
-
['duela %s segundu', '%s segundu barru'],
|
5
|
-
['duela minutu 1', 'minutu 1 barru'],
|
6
|
-
['duela %s minutu', '%s minutu barru'],
|
7
|
-
['duela ordu 1', 'ordu 1 barru'],
|
8
|
-
['duela %s ordu', '%s ordu barru'],
|
9
|
-
['duela egun 1', 'egun 1 barru'],
|
10
|
-
['duela %s egun', '%s egun barru'],
|
11
|
-
['duela aste 1', 'aste 1 barru'],
|
12
|
-
['duela %s aste', '%s aste barru'],
|
13
|
-
['duela hillabete 1', 'hillabete 1 barru'],
|
14
|
-
['duela %s hillabete', '%s hillabete barru'],
|
15
|
-
['duela urte 1', 'urte 1 barru'],
|
16
|
-
['duela %s urte', '%s urte barru']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('eu', function(number, index) {
|
2
|
+
return [
|
3
|
+
['orain', 'denbora bat barru'],
|
4
|
+
['duela %s segundu', '%s segundu barru'],
|
5
|
+
['duela minutu 1', 'minutu 1 barru'],
|
6
|
+
['duela %s minutu', '%s minutu barru'],
|
7
|
+
['duela ordu 1', 'ordu 1 barru'],
|
8
|
+
['duela %s ordu', '%s ordu barru'],
|
9
|
+
['duela egun 1', 'egun 1 barru'],
|
10
|
+
['duela %s egun', '%s egun barru'],
|
11
|
+
['duela aste 1', 'aste 1 barru'],
|
12
|
+
['duela %s aste', '%s aste barru'],
|
13
|
+
['duela hillabete 1', 'hillabete 1 barru'],
|
14
|
+
['duela %s hillabete', '%s hillabete barru'],
|
15
|
+
['duela urte 1', 'urte 1 barru'],
|
16
|
+
['duela %s urte', '%s urte barru']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -0,0 +1,18 @@
|
|
1
|
+
this.timeago.register('fa', function(number, index) {
|
2
|
+
return [
|
3
|
+
['همین الآن', 'لحظاتی پیش'],
|
4
|
+
['%s ثانیه پیش', 'حدود %s ثانیه پیش'],
|
5
|
+
['1 دقیقه پیش', 'حدود 1 دقیقه پیش'],
|
6
|
+
['%s دقیقه پیش', 'حدود %s دقیقه پیش'],
|
7
|
+
['1 ساعت پیش', 'حدود 1 ساعت پیش'],
|
8
|
+
['%s ساعت پیش', 'حدود %s ساعت پیش'],
|
9
|
+
['1 روز پیش', 'حدود 1 روز پیش'],
|
10
|
+
['%s روز پیش', 'حدود %s روز پیش'],
|
11
|
+
['1 هفته پیش', 'حدود 1 هفته پیش'],
|
12
|
+
['%s هفته پیش', 'حدود %s هفته پیش'],
|
13
|
+
['1 ماه پیش', 'حدود 1 ماه پیش'],
|
14
|
+
['%s ماه پیش', 'حدود %s ماه پیش'],
|
15
|
+
['1 سال پیش', 'حدود 1 سال پیش'],
|
16
|
+
['%s سال پیش', 'حدود %s سال پیش']
|
17
|
+
][index];
|
18
|
+
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('fi', function(number, index) {
|
2
|
-
return [
|
3
|
-
['juuri äsken', 'juuri nyt'],
|
4
|
-
['%s sekuntia sitten', '%s sekunnin päästä'],
|
5
|
-
['minuutti sitten', 'minuutin päästä'],
|
6
|
-
['%s minuuttia sitten', '%s minuutin päästä'],
|
7
|
-
['tunti sitten', 'tunnin päästä'],
|
8
|
-
['%s tuntia sitten', '%s tunnin päästä'],
|
9
|
-
['päivä sitten', 'päivän päästä'],
|
10
|
-
['%s päivää sitten', '%s päivän päästä'],
|
11
|
-
['viikko sitten', 'viikon päästä'],
|
12
|
-
['%s viikkoa sitten', '%s viikon päästä'],
|
13
|
-
['kuukausi sitten', 'kuukauden päästä'],
|
14
|
-
['%s kuukautta sitten', '%s kuukauden päästä'],
|
15
|
-
['vuosi sitten', 'vuoden päästä'],
|
16
|
-
['%s vuotta sitten', '%s vuoden päästä']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('fi', function(number, index) {
|
2
|
+
return [
|
3
|
+
['juuri äsken', 'juuri nyt'],
|
4
|
+
['%s sekuntia sitten', '%s sekunnin päästä'],
|
5
|
+
['minuutti sitten', 'minuutin päästä'],
|
6
|
+
['%s minuuttia sitten', '%s minuutin päästä'],
|
7
|
+
['tunti sitten', 'tunnin päästä'],
|
8
|
+
['%s tuntia sitten', '%s tunnin päästä'],
|
9
|
+
['päivä sitten', 'päivän päästä'],
|
10
|
+
['%s päivää sitten', '%s päivän päästä'],
|
11
|
+
['viikko sitten', 'viikon päästä'],
|
12
|
+
['%s viikkoa sitten', '%s viikon päästä'],
|
13
|
+
['kuukausi sitten', 'kuukauden päästä'],
|
14
|
+
['%s kuukautta sitten', '%s kuukauden päästä'],
|
15
|
+
['vuosi sitten', 'vuoden päästä'],
|
16
|
+
['%s vuotta sitten', '%s vuoden päästä']
|
17
|
+
][index];
|
18
18
|
})
|
@@ -1,18 +1,18 @@
|
|
1
|
-
this.timeago.register('fr', function(number, index) {
|
2
|
-
return [
|
3
|
-
['à l\'instant', 'dans un instant'],
|
4
|
-
['il y a %s secondes', 'dans %s secondes'],
|
5
|
-
['il y a 1 minute', 'dans 1 minute'],
|
6
|
-
['il y a %s minutes', 'dans %s minutes'],
|
7
|
-
['il y a 1 heure', 'dans 1 heure'],
|
8
|
-
['il y a %s heures', 'dans %s heures'],
|
9
|
-
['il y a 1 jour', 'dans 1 jour'],
|
10
|
-
['il y a %s jours', 'dans %s jours'],
|
11
|
-
['il y a 1 semaine', 'dans 1 semaine'],
|
12
|
-
['il y a %s semaines', 'dans %s semaines'],
|
13
|
-
['il y a 1 mois', 'dans 1 mois'],
|
14
|
-
['il y a %s mois', 'dans %s mois'],
|
15
|
-
['il y a 1 an', 'dans 1 an'],
|
16
|
-
['il y a %s ans', 'dans %s ans']
|
17
|
-
][index];
|
1
|
+
this.timeago.register('fr', function(number, index) {
|
2
|
+
return [
|
3
|
+
['à l\'instant', 'dans un instant'],
|
4
|
+
['il y a %s secondes', 'dans %s secondes'],
|
5
|
+
['il y a 1 minute', 'dans 1 minute'],
|
6
|
+
['il y a %s minutes', 'dans %s minutes'],
|
7
|
+
['il y a 1 heure', 'dans 1 heure'],
|
8
|
+
['il y a %s heures', 'dans %s heures'],
|
9
|
+
['il y a 1 jour', 'dans 1 jour'],
|
10
|
+
['il y a %s jours', 'dans %s jours'],
|
11
|
+
['il y a 1 semaine', 'dans 1 semaine'],
|
12
|
+
['il y a %s semaines', 'dans %s semaines'],
|
13
|
+
['il y a 1 mois', 'dans 1 mois'],
|
14
|
+
['il y a %s mois', 'dans %s mois'],
|
15
|
+
['il y a 1 an', 'dans 1 an'],
|
16
|
+
['il y a %s ans', 'dans %s ans']
|
17
|
+
][index];
|
18
18
|
})
|