diff --git a/web_src/vuepages/langs/config/en-US.js b/web_src/vuepages/langs/config/en-US.js index d51b620ba..c715b979e 100644 --- a/web_src/vuepages/langs/config/en-US.js +++ b/web_src/vuepages/langs/config/en-US.js @@ -312,7 +312,29 @@ const en = { star: 'Star', fork: 'Fork', noReposfound: 'No matching repositories found.', - } + }, + timeObj: { + ago: '{msg} ago', + from_now: '{msg} from now', + now: 'now', + future: 'future', + '1s': '1 second', + '1m': '1 minute', + '1h': '1 hour', + '1d': '1 day', + '1w': '1 week', + '1mon': '1 month', + '1y': '1 year', + seconds: '{msg} seconds', + minutes: '{msg} minutes', + hours: '{msg} hours', + days: '{msg} days', + weeks: '{msg} weeks', + months: '{msg} months', + years: '{msg} years', + raw_seconds: 'seconds', + raw_minutes: 'minutes', + }, } export default en; diff --git a/web_src/vuepages/langs/config/zh-CN.js b/web_src/vuepages/langs/config/zh-CN.js index 589afd98f..deec22676 100644 --- a/web_src/vuepages/langs/config/zh-CN.js +++ b/web_src/vuepages/langs/config/zh-CN.js @@ -220,7 +220,7 @@ const zh = { graphicMemory: "显存", memory: "内存", sharedMemory: "共享内存", - tips:'本次新建的调试任务会放在您名下项目openi-notebook中,如果没有该项目系统会自动新建一个。' + tips: '本次新建的调试任务会放在您名下项目openi-notebook中,如果没有该项目系统会自动新建一个。' }, tranformImageFailed: '图片脱敏失败', originPicture: '原始图片', @@ -330,6 +330,28 @@ const zh = { fork: '派生', noReposfound: '未找到匹配的项目。', }, + timeObj: { + ago: '{msg}前', + from_now: '{msg} 之后', + now: '现在', + future: '将来', + '1s': '1 秒', + '1m': '1 分钟', + '1h': '1 小时', + '1d': '1 天', + '1w': '1 周', + '1mon': '1 个月', + '1y': '1 年', + seconds: '{msg} 秒', + minutes: '{msg} 分钟', + hours: '{msg} 小时', + days: '{msg} 天', + weeks: '{msg} 周', + months: '{msg} 个月', + years: '{msg} 年', + raw_seconds: '秒', + raw_minutes: '分钟', + }, } export default zh; diff --git a/web_src/vuepages/pages/repos/components/ReposItem.vue b/web_src/vuepages/pages/repos/components/ReposItem.vue index e9710f247..f99e90ffa 100644 --- a/web_src/vuepages/pages/repos/components/ReposItem.vue +++ b/web_src/vuepages/pages/repos/components/ReposItem.vue @@ -12,6 +12,7 @@ / +