rails-timeago 2.16.0 → 2.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +53 -0
  3. data/.travis.yml +20 -8
  4. data/CHANGELOG.md +8 -0
  5. data/Gemfile +3 -5
  6. data/Rakefile +14 -12
  7. data/lib/assets/javascripts/rails-timeago-all.js +4 -0
  8. data/lib/rails-timeago.rb +21 -17
  9. data/lib/rails-timeago/helper.rb +13 -10
  10. data/lib/rails-timeago/version.rb +4 -2
  11. data/rails-timeago.gemspec +13 -11
  12. data/spec/rails-timeago_spec.rb +2 -0
  13. data/spec/spec_helper.rb +2 -0
  14. data/spec/support/stub.rb +11 -9
  15. data/spec/timeago/helper_spec.rb +27 -25
  16. data/vendor/assets/javascripts/jquery.timeago.js +1 -1
  17. data/vendor/assets/javascripts/locales/jquery.timeago.af.js +30 -20
  18. data/vendor/assets/javascripts/locales/jquery.timeago.am.js +30 -0
  19. data/vendor/assets/javascripts/locales/jquery.timeago.ar.js +12 -4
  20. data/vendor/assets/javascripts/locales/jquery.timeago.az-short.js +30 -20
  21. data/vendor/assets/javascripts/locales/jquery.timeago.az.js +30 -20
  22. data/vendor/assets/javascripts/locales/jquery.timeago.be.js +43 -0
  23. data/vendor/assets/javascripts/locales/jquery.timeago.bg.js +28 -18
  24. data/vendor/assets/javascripts/locales/jquery.timeago.bs.js +13 -7
  25. data/vendor/assets/javascripts/locales/jquery.timeago.ca.js +30 -20
  26. data/vendor/assets/javascripts/locales/jquery.timeago.cs.js +34 -24
  27. data/vendor/assets/javascripts/locales/jquery.timeago.cy.js +30 -20
  28. data/vendor/assets/javascripts/locales/jquery.timeago.da.js +28 -18
  29. data/vendor/assets/javascripts/locales/jquery.timeago.de-short.js +30 -20
  30. data/vendor/assets/javascripts/locales/jquery.timeago.de.js +28 -18
  31. data/vendor/assets/javascripts/locales/jquery.timeago.dv.js +32 -22
  32. data/vendor/assets/javascripts/locales/jquery.timeago.el.js +28 -18
  33. data/vendor/assets/javascripts/locales/jquery.timeago.en-short.js +30 -20
  34. data/vendor/assets/javascripts/locales/jquery.timeago.es-short.js +31 -20
  35. data/vendor/assets/javascripts/locales/jquery.timeago.es.js +29 -18
  36. data/vendor/assets/javascripts/locales/jquery.timeago.et.js +28 -18
  37. data/vendor/assets/javascripts/locales/jquery.timeago.eu.js +28 -17
  38. data/vendor/assets/javascripts/locales/jquery.timeago.fa-short.js +30 -20
  39. data/vendor/assets/javascripts/locales/jquery.timeago.fa.js +32 -22
  40. data/vendor/assets/javascripts/locales/jquery.timeago.fi.js +38 -28
  41. data/vendor/assets/javascripts/locales/jquery.timeago.fr-short.js +26 -16
  42. data/vendor/assets/javascripts/locales/jquery.timeago.fr.js +27 -17
  43. data/vendor/assets/javascripts/locales/jquery.timeago.gl.js +28 -18
  44. data/vendor/assets/javascripts/locales/jquery.timeago.he.js +26 -16
  45. data/vendor/assets/javascripts/locales/jquery.timeago.hr.js +53 -48
  46. data/vendor/assets/javascripts/locales/jquery.timeago.hu.js +28 -18
  47. data/vendor/assets/javascripts/locales/jquery.timeago.hy.js +28 -18
  48. data/vendor/assets/javascripts/locales/jquery.timeago.id.js +29 -18
  49. data/vendor/assets/javascripts/locales/jquery.timeago.is.js +29 -19
  50. data/vendor/assets/javascripts/locales/jquery.timeago.it-short.js +30 -20
  51. data/vendor/assets/javascripts/locales/jquery.timeago.it.js +28 -16
  52. data/vendor/assets/javascripts/locales/jquery.timeago.ja.js +29 -19
  53. data/vendor/assets/javascripts/locales/jquery.timeago.jv.js +28 -18
  54. data/vendor/assets/javascripts/locales/jquery.timeago.ko.js +31 -20
  55. data/vendor/assets/javascripts/locales/jquery.timeago.ky.js +11 -3
  56. data/vendor/assets/javascripts/locales/jquery.timeago.lt.js +30 -20
  57. data/vendor/assets/javascripts/locales/jquery.timeago.lv.js +30 -20
  58. data/vendor/assets/javascripts/locales/jquery.timeago.mk.js +30 -20
  59. data/vendor/assets/javascripts/locales/jquery.timeago.nl.js +30 -20
  60. data/vendor/assets/javascripts/locales/jquery.timeago.no.js +28 -18
  61. data/vendor/assets/javascripts/locales/jquery.timeago.pl.js +11 -3
  62. data/vendor/assets/javascripts/locales/jquery.timeago.pt-br-short.js +30 -20
  63. data/vendor/assets/javascripts/locales/jquery.timeago.pt-br.js +28 -18
  64. data/vendor/assets/javascripts/locales/jquery.timeago.pt-short.js +30 -20
  65. data/vendor/assets/javascripts/locales/jquery.timeago.pt.js +26 -16
  66. data/vendor/assets/javascripts/locales/jquery.timeago.ro.js +29 -18
  67. data/vendor/assets/javascripts/locales/jquery.timeago.rs.js +53 -48
  68. data/vendor/assets/javascripts/locales/jquery.timeago.ru.js +11 -3
  69. data/vendor/assets/javascripts/locales/jquery.timeago.rw.js +30 -20
  70. data/vendor/assets/javascripts/locales/jquery.timeago.si.js +28 -18
  71. data/vendor/assets/javascripts/locales/jquery.timeago.sk.js +34 -24
  72. data/vendor/assets/javascripts/locales/jquery.timeago.sl.js +45 -39
  73. data/vendor/assets/javascripts/locales/jquery.timeago.sq.js +26 -0
  74. data/vendor/assets/javascripts/locales/jquery.timeago.sr.js +53 -48
  75. data/vendor/assets/javascripts/locales/jquery.timeago.sv.js +28 -18
  76. data/vendor/assets/javascripts/locales/jquery.timeago.th.js +30 -20
  77. data/vendor/assets/javascripts/locales/jquery.timeago.tr-short.js +30 -20
  78. data/vendor/assets/javascripts/locales/jquery.timeago.tr.js +26 -16
  79. data/vendor/assets/javascripts/locales/jquery.timeago.uk.js +11 -3
  80. data/vendor/assets/javascripts/locales/jquery.timeago.ur.js +30 -0
  81. data/vendor/assets/javascripts/locales/jquery.timeago.uz.js +29 -19
  82. data/vendor/assets/javascripts/locales/jquery.timeago.vi.js +30 -20
  83. data/vendor/assets/javascripts/locales/jquery.timeago.zh-CN.js +31 -20
  84. data/vendor/assets/javascripts/locales/jquery.timeago.zh-TW.js +30 -20
  85. metadata +8 -4
@@ -1,24 +1,34 @@
1
- // Slovak
2
- (function() {
3
- function f(n, d, a) {
4
- return a[d>=0 ? 0 : a.length===2 || n<5 ? 1 : 2];
5
- }
6
-
7
- jQuery.timeago.settings.strings["sk"] = {
8
- prefixAgo: 'pred',
9
- prefixFromNow: 'o',
10
- suffixAgo: null,
11
- suffixFromNow: null,
12
- seconds: function(n, d) {return f(n, d, ['menej ako minútou', 'menej ako minútu']);},
13
- minute: function(n, d) {return f(n, d, ['minútou', 'minútu']);},
14
- minutes: function(n, d) {return f(n, d, ['%d minútami', '%d minúty', '%d minút']);},
15
- hour: function(n, d) {return f(n, d, ['hodinou', 'hodinu']);},
16
- hours: function(n, d) {return f(n, d, ['%d hodinami', '%d hodiny', '%d hodín']);},
17
- day: function(n, d) {return f(n, d, ['%d dňom', '%d deň']);},
18
- days: function(n, d) {return f(n, d, ['%d dňami', '%d dni', '%d dní']);},
19
- month: function(n, d) {return f(n, d, ['%d mesiacom', '%d mesiac']);},
20
- months: function(n, d) {return f(n, d, ['%d mesiacmi', '%d mesiace', '%d mesiacov']);},
21
- year: function(n, d) {return f(n, d, ['%d rokom', '%d rok']);},
22
- years: function(n, d) {return f(n, d, ['%d rokmi', '%d roky', '%d rokov']);}
23
- };
24
- })();
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Slovak
11
+ (function() {
12
+ function f(n, d, a) {
13
+ return a[d>=0 ? 0 : a.length===2 || n<5 ? 1 : 2];
14
+ }
15
+
16
+ jQuery.timeago.settings.strings["sk"] = {
17
+ prefixAgo: 'pred',
18
+ prefixFromNow: 'o',
19
+ suffixAgo: null,
20
+ suffixFromNow: null,
21
+ seconds: function(n, d) {return f(n, d, ['menej ako minútou', 'menej ako minútu']);},
22
+ minute: function(n, d) {return f(n, d, ['minútou', 'minútu']);},
23
+ minutes: function(n, d) {return f(n, d, ['%d minútami', '%d minúty', '%d minút']);},
24
+ hour: function(n, d) {return f(n, d, ['hodinou', 'hodinu']);},
25
+ hours: function(n, d) {return f(n, d, ['%d hodinami', '%d hodiny', '%d hodín']);},
26
+ day: function(n, d) {return f(n, d, ['%d dňom', '%d deň']);},
27
+ days: function(n, d) {return f(n, d, ['%d dňami', '%d dni', '%d dní']);},
28
+ month: function(n, d) {return f(n, d, ['%d mesiacom', '%d mesiac']);},
29
+ months: function(n, d) {return f(n, d, ['%d mesiacmi', '%d mesiace', '%d mesiacov']);},
30
+ year: function(n, d) {return f(n, d, ['%d rokom', '%d rok']);},
31
+ years: function(n, d) {return f(n, d, ['%d rokmi', '%d roky', '%d rokov']);}
32
+ };
33
+ })();
34
+ }));
@@ -1,40 +1,46 @@
1
- // Slovenian with support for dual
2
- (function () {
3
- var numpf;
4
- numpf = function (n, a) {
5
- return a[n%100===1 ? 1 : n%100===2 ? 2 : n%100===3 || n%100===4 ? 3 : 0];
6
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Slovenian with support for dual
11
+ var numpf = function (n, a) {
12
+ return a[n%100===1 ? 1 : n%100===2 ? 2 : n%100===3 || n%100===4 ? 3 : 0];
13
+ };
7
14
 
8
- jQuery.timeago.settings.strings["sl"] = {
9
- prefixAgo: null,
10
- prefixFromNow: "čez",
11
- suffixAgo: "nazaj",
12
- suffixFromNow: null,
13
- second: "sekundo",
14
- seconds: function (value) {
15
- return numpf(value, ["%d sekund", "%d sekundo", "%d sekundi", "%d sekunde"]);
16
- },
17
- minute: "minuto",
18
- minutes: function (value) {
19
- return numpf(value, ["%d minut", "%d minuto", "%d minuti", "%d minute"]);
20
- },
21
- hour: "eno uro",
22
- hours: function (value) {
23
- return numpf(value, ["%d ur", "%d uro", "%d uri", "%d ure"]);
24
- },
25
- day: "en dan",
26
- days: function (value) {
27
- return numpf(value, ["%d dni", "%d dan", "%d dneva", "%d dni"]);
28
- },
29
- month: "en mesec",
30
- months: function (value) {
31
- return numpf(value, ["%d mesecev", "%d mesec", "%d meseca", "%d mesece"]);
32
- },
33
- year: "eno leto",
34
- years: function (value) {
35
- return numpf(value, ["%d let", "%d leto", "%d leti", "%d leta"]);
36
- },
37
- wordSeparator: " "
38
- };
39
-
40
- }).call(this);
15
+ jQuery.timeago.settings.strings["sl"] = {
16
+ prefixAgo: null,
17
+ prefixFromNow: "čez",
18
+ suffixAgo: "nazaj",
19
+ suffixFromNow: null,
20
+ second: "sekundo",
21
+ seconds: function (value) {
22
+ return numpf(value, ["%d sekund", "%d sekundo", "%d sekundi", "%d sekunde"]);
23
+ },
24
+ minute: "minuto",
25
+ minutes: function (value) {
26
+ return numpf(value, ["%d minut", "%d minuto", "%d minuti", "%d minute"]);
27
+ },
28
+ hour: "eno uro",
29
+ hours: function (value) {
30
+ return numpf(value, ["%d ur", "%d uro", "%d uri", "%d ure"]);
31
+ },
32
+ day: "en dan",
33
+ days: function (value) {
34
+ return numpf(value, ["%d dni", "%d dan", "%d dneva", "%d dni"]);
35
+ },
36
+ month: "en mesec",
37
+ months: function (value) {
38
+ return numpf(value, ["%d mesecev", "%d mesec", "%d meseca", "%d mesece"]);
39
+ },
40
+ year: "eno leto",
41
+ years: function (value) {
42
+ return numpf(value, ["%d let", "%d leto", "%d leti", "%d leta"]);
43
+ },
44
+ wordSeparator: " "
45
+ };
46
+ }));
@@ -0,0 +1,26 @@
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Albanian SQ
11
+ jQuery.timeago.settings.strings["sq"] = {
12
+ suffixAgo: "më parë",
13
+ suffixFromNow: "tani",
14
+ seconds: "më pak se një minutë",
15
+ minute: "rreth një minutë",
16
+ minutes: "%d minuta",
17
+ hour: "rreth një orë",
18
+ hours: "rreth %d orë",
19
+ day: "një ditë",
20
+ days: "%d ditë",
21
+ month: "rreth një muaj",
22
+ months: "%d muaj",
23
+ year: "rreth një vit",
24
+ years: "%d vjet"
25
+ };
26
+ }));
@@ -1,49 +1,54 @@
1
- // Serbian
2
- (function () {
3
- var numpf;
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Serbian
11
+ var numpf = function (n, f, s, t) {
12
+ var n10;
13
+ n10 = n % 10;
14
+ if (n10 === 1 && (n === 1 || n > 20)) {
15
+ return f;
16
+ } else if (n10 > 1 && n10 < 5 && (n > 20 || n < 10)) {
17
+ return s;
18
+ } else {
19
+ return t;
20
+ }
21
+ };
4
22
 
5
- numpf = function (n, f, s, t) {
6
- var n10;
7
- n10 = n % 10;
8
- if (n10 === 1 && (n === 1 || n > 20)) {
9
- return f;
10
- } else if (n10 > 1 && n10 < 5 && (n > 20 || n < 10)) {
11
- return s;
12
- } else {
13
- return t;
14
- }
15
- };
16
-
17
- jQuery.timeago.settings.strings["sr"] = {
18
- prefixAgo: "пре",
19
- prefixFromNow: "за",
20
- suffixAgo: null,
21
- suffixFromNow: null,
22
- second: "секунд",
23
- seconds: function (value) {
24
- return numpf(value, "%d секунд", "%d секунде", "%d секунди");
25
- },
26
- minute: "један минут",
27
- minutes: function (value) {
28
- return numpf(value, "%d минут", "%d минута", "%d минута");
29
- },
30
- hour: "један сат",
31
- hours: function (value) {
32
- return numpf(value, "%d сат", "%d сата", "%d сати");
33
- },
34
- day: "један дан",
35
- days: function (value) {
36
- return numpf(value, "%d дан", "%d дана", "%d дана");
37
- },
38
- month: "месец дана",
39
- months: function (value) {
40
- return numpf(value, "%d месец", "%d месеца", "%d месеци");
41
- },
42
- year: "годину дана",
43
- years: function (value) {
44
- return numpf(value, "%d годину", "%d године", "%d година");
45
- },
46
- wordSeparator: " "
47
- };
48
-
49
- }).call(this);
23
+ jQuery.timeago.settings.strings["sr"] = {
24
+ prefixAgo: "пре",
25
+ prefixFromNow: "за",
26
+ suffixAgo: null,
27
+ suffixFromNow: null,
28
+ second: "секунд",
29
+ seconds: function (value) {
30
+ return numpf(value, "%d секунд", "%d секунде", "%d секунди");
31
+ },
32
+ minute: "један минут",
33
+ minutes: function (value) {
34
+ return numpf(value, "%d минут", "%d минута", "%d минута");
35
+ },
36
+ hour: "један сат",
37
+ hours: function (value) {
38
+ return numpf(value, "%d сат", "%d сата", "%d сати");
39
+ },
40
+ day: "један дан",
41
+ days: function (value) {
42
+ return numpf(value, "%d дан", "%d дана", "%d дана");
43
+ },
44
+ month: "месец дана",
45
+ months: function (value) {
46
+ return numpf(value, "%d месец", "%d месеца", "%d месеци");
47
+ },
48
+ year: "годину дана",
49
+ years: function (value) {
50
+ return numpf(value, "%d годину", "%d године", "%d година");
51
+ },
52
+ wordSeparator: " "
53
+ };
54
+ }));
@@ -1,18 +1,28 @@
1
- // Swedish
2
- jQuery.timeago.settings.strings["sv"] = {
3
- prefixAgo: "för",
4
- prefixFromNow: "om",
5
- suffixAgo: "sedan",
6
- suffixFromNow: "",
7
- seconds: "mindre än en minut",
8
- minute: "ungefär en minut",
9
- minutes: "%d minuter",
10
- hour: "ungefär en timme",
11
- hours: "ungefär %d timmar",
12
- day: "en dag",
13
- days: "%d dagar",
14
- month: "ungefär en månad",
15
- months: "%d månader",
16
- year: "ungefär ett år",
17
- years: "%d år"
18
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Swedish
11
+ jQuery.timeago.settings.strings["sv"] = {
12
+ prefixAgo: "för",
13
+ prefixFromNow: "om",
14
+ suffixAgo: "sedan",
15
+ suffixFromNow: "",
16
+ seconds: "mindre än en minut",
17
+ minute: "ungefär en minut",
18
+ minutes: "%d minuter",
19
+ hour: "ungefär en timme",
20
+ hours: "ungefär %d timmar",
21
+ day: "en dag",
22
+ days: "%d dagar",
23
+ month: "ungefär en månad",
24
+ months: "%d månader",
25
+ year: "ungefär ett år",
26
+ years: "%d år"
27
+ };
28
+ }));
@@ -1,20 +1,30 @@
1
- // Thai
2
- jQuery.timeago.settings.strings["th"] = {
3
- prefixAgo: null,
4
- prefixFromNow: null,
5
- suffixAgo: "ที่แล้ว",
6
- suffixFromNow: "จากตอนนี้",
7
- seconds: "น้อยกว่าหนึ่งนาที",
8
- minute: "ประมาณหนึ่งนาที",
9
- minutes: "%d นาที",
10
- hour: "ประมาณหนึ่งชั่วโมง",
11
- hours: "ประมาณ %d ชั่วโมง",
12
- day: "หนึ่งวัน",
13
- days: "%d วัน",
14
- month: "ประมาณหนึ่งเดือน",
15
- months: "%d เดือน",
16
- year: "ประมาณหนึ่งปี",
17
- years: "%d ปี",
18
- wordSeparator: "",
19
- numbers: []
20
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Thai
11
+ jQuery.timeago.settings.strings["th"] = {
12
+ prefixAgo: null,
13
+ prefixFromNow: null,
14
+ suffixAgo: "ที่แล้ว",
15
+ suffixFromNow: "จากตอนนี้",
16
+ seconds: "น้อยกว่าหนึ่งนาที",
17
+ minute: "ประมาณหนึ่งนาที",
18
+ minutes: "%d นาที",
19
+ hour: "ประมาณหนึ่งชั่วโมง",
20
+ hours: "ประมาณ %d ชั่วโมง",
21
+ day: "หนึ่งวัน",
22
+ days: "%d วัน",
23
+ month: "ประมาณหนึ่งเดือน",
24
+ months: "%d เดือน",
25
+ year: "ประมาณหนึ่งปี",
26
+ years: "%d ปี",
27
+ wordSeparator: "",
28
+ numbers: []
29
+ };
30
+ }));
@@ -1,20 +1,30 @@
1
- // Turkish shortened
2
- jQuery.timeago.settings.strings["tr-short"] = {
3
- prefixAgo: null,
4
- prefixFromNow: null,
5
- suffixAgo: "",
6
- suffixFromNow: "",
7
- seconds: "1sn",
8
- minute: "1d",
9
- minutes: "%dd",
10
- hour: "1s",
11
- hours: "%ds",
12
- day: "1g",
13
- days: "%dg",
14
- month: "1ay",
15
- months: "%day",
16
- year: "1y",
17
- years: "%dy",
18
- wordSeparator: " ",
19
- numbers: []
20
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Turkish shortened
11
+ jQuery.timeago.settings.strings["tr-short"] = {
12
+ prefixAgo: null,
13
+ prefixFromNow: null,
14
+ suffixAgo: "",
15
+ suffixFromNow: "",
16
+ seconds: "1dk",
17
+ minute: "1dk",
18
+ minutes: "%ddk",
19
+ hour: "1s",
20
+ hours: "%ds",
21
+ day: "1g",
22
+ days: "%dg",
23
+ month: "1ay",
24
+ months: "%day",
25
+ year: "1y",
26
+ years: "%dy",
27
+ wordSeparator: " ",
28
+ numbers: []
29
+ };
30
+ }));
@@ -1,16 +1,26 @@
1
- // Turkish
2
- jQuery.timeago.settings.strings["tr"] = {
3
- suffixAgo: 'önce',
4
- suffixFromNow: null,
5
- seconds: '1 dakikadan',
6
- minute: '1 dakika',
7
- minutes: '%d dakika',
8
- hour: '1 saat',
9
- hours: '%d saat',
10
- day: '1 gün',
11
- days: '%d gün',
12
- month: '1 ay',
13
- months: '%d ay',
14
- year: '1 yıl',
15
- years: '%d yıl'
16
- };
1
+ (function (factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define(['jquery'], factory);
4
+ } else if (typeof module === 'object' && typeof module.exports === 'object') {
5
+ factory(require('jquery'));
6
+ } else {
7
+ factory(jQuery);
8
+ }
9
+ }(function (jQuery) {
10
+ // Turkish
11
+ jQuery.timeago.settings.strings["tr"] = {
12
+ suffixAgo: 'önce',
13
+ suffixFromNow: null,
14
+ seconds: 'birkaç saniye',
15
+ minute: '1 dakika',
16
+ minutes: '%d dakika',
17
+ hour: '1 saat',
18
+ hours: '%d saat',
19
+ day: '1 gün',
20
+ days: '%d gün',
21
+ month: '1 ay',
22
+ months: '%d ay',
23
+ year: '1 yıl',
24
+ years: '%d yıl'
25
+ };
26
+ }));