8000 Merge remote-tracking branch 'eggli/master' · rmm5t/jquery-timeago@d11a9cc · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit d11a9cc

Browse files
committed
Merge remote-tracking branch 'eggli/master'
* eggli/master: add word separator setting for i18n, most Asian languages uses no word separator.
2 parents 389c1af + c2f3d8a commit d11a9cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jquery.timeago.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
months: "%d months",
4646
year: "about a year",
4747
years: "%d years",
48+
wordSep: " ",
4849
numbers: []
4950
}
5051
},
@@ -83,7 +84,7 @@
8384
years < 2 && substitute($l.year, 1) ||
8485
substitute($l.years, Math.floor(years));
8586

86-
return $.trim([prefix, words, suffix].join(" "));
87+
return $.trim([prefix, words, suffix].join($l.wordSep));
8788
},
8889
parse: function(iso8601) {
8990
var s = $.trim(iso8601);

0 commit comments

Comments
 (0)
0