提交 8b8a8ed7 编写于 作者: E Eric Amodio

Localizes "in" #94240

上级 77517976
......@@ -20,8 +20,10 @@ export function fromNow(date: number | Date, appendAgoLabel?: boolean): string {
const seconds = Math.round((new Date().getTime() - date) / 1000);
if (seconds < -30) {
return `in ${fromNow(new Date().getTime() + seconds * 1000, false)}`;
} else if (seconds < 30) {
return localize('date.fromNow.in', 'in {0}', fromNow(new Date().getTime() + seconds * 1000, false));
}
if (seconds < 30) {
return localize('date.fromNow.now', 'now');
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册