From a318972cf990732f76d3527a7875fbf7dc3e3735 Mon Sep 17 00:00:00 2001 From: zouap Date: Wed, 5 Jan 2022 11:20:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=AD=E8=8B=B1=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/home.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/public/home/home.js b/public/home/home.js index 4ac4e550b..689e9891d 100644 --- a/public/home/home.js +++ b/public/home/home.js @@ -159,12 +159,12 @@ function getTime(UpdatedUnix,currentTime){ var seconds= leave3; if(hours == 0 && minutes == 0){ - return seconds + "秒前" + return seconds + getRepoOrOrg(6,isZh); }else{ if(hours > 0){ - return hours + "小时前"; + return hours + getRepoOrOrg(4,isZh); }else{ - return minutes + "分钟前"; + return minutes + getRepoOrOrg(5,isZh); } } } @@ -266,13 +266,19 @@ var actionNameEN={ var repoAndOrgZH={ "1":"项目", "2":"成员", - "3":"团队" + "3":"团队", + "4":"小时前", + "5":"分钟前", + "6":"秒前" }; var repoAndOrgEN={ "1":"repository", "2":"Members ", - "3":"Teams" + "3":"Teams", + "4":"hours ago", + "5":"minutes ago", + "6":"seconds ago" };