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" };