8000 add word separator setting for i18n, most Asian languages uses no wor… · rmm5t/jquery-timeago@c2f3d8a · GitHub
[go: up one dir, main page]

Skip to content

Commit c2f3d8a

Browse files
committed
add word separator setting for i18n, most Asian languages uses no word separator.
1 parent ade04a5 commit c2f3d8a

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
},
@@ -84,7 +85,7 @@
8485
years < 2 && substitute($l.year, 1) ||
8586
substitute($l.years, Math.floor(years));
8687

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

0 commit comments

Comments
 (0)
0