From 5dd1b710b43fe5391267efca4244aadbcdb96879 Mon Sep 17 00:00:00 2001 From: JOYCEQL <1449239013@qq.com> Date: Mon, 6 Jan 2025 15:33:57 +0800 Subject: [PATCH] feat: dashboard resumes i18n --- apps/fronted/src/app/app/dashboard/resumes/page.tsx | 13 +++++++------ apps/fronted/src/i18n/locales/en.json | 8 +++++++- apps/fronted/src/i18n/locales/zh.json | 8 +++++++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/apps/fronted/src/app/app/dashboard/resumes/page.tsx b/apps/fronted/src/app/app/dashboard/resumes/page.tsx index e8c484a..efc2d8c 100644 --- a/apps/fronted/src/app/app/dashboard/resumes/page.tsx +++ b/apps/fronted/src/app/app/dashboard/resumes/page.tsx @@ -123,11 +123,9 @@ const ResumeWorkbench = () => { ) : ( - 注意 + {t("dashboard.resumes.notice.title")} - - 建议在设置里中配置简历备份文件夹,防止您的数据可能会在浏览器清除缓存后丢失 - + {t("dashboard.resumes.notice.description")} @@ -233,7 +231,10 @@ const ResumeWorkbench = () => { {resume.title || "未命名简历"} - 创建于 {new Date(resume.createdAt).toLocaleDateString()} + {t("dashboard.resumes.created")} + + {new Date(resume.createdAt).toLocaleDateString()} + diff --git a/apps/fronted/src/i18n/locales/en.json b/apps/fronted/src/i18n/locales/en.json index 9ffe57e..19641c5 100644 --- a/apps/fronted/src/i18n/locales/en.json +++ b/apps/fronted/src/i18n/locales/en.json @@ -43,12 +43,18 @@ "settings": "Settings" }, "resumes": { + "created": "Created At", "synced": "Synced Files", "view": "View", "myResume": "Resumes", "create": "Create Resume", "newResume": "New Resume", - "newResumeDescription": "Create a new resume to get started." + "newResumeDescription": "Create a new resume to get started.", + "notice": { + "title": "Attention", + "description": "It is recommended to configure a resume backup folder in the settings to prevent your data from being lost when the browser cache is cleared", + "goToSettings": "Go to Settings" + } }, "settings": { "title": "Settings", diff --git a/apps/fronted/src/i18n/locales/zh.json b/apps/fronted/src/i18n/locales/zh.json index 462fc13..89ac560 100644 --- a/apps/fronted/src/i18n/locales/zh.json +++ b/apps/fronted/src/i18n/locales/zh.json @@ -43,12 +43,18 @@ "settings": "设置" }, "resumes": { + "created": "创建于", "synced": "已备份文件夹", "view": "去查看", "myResume": "我的简历", "create": "创建简历", "newResume": "新建简历", - "newResumeDescription": "创建一个新简历以开始。" + "newResumeDescription": "创建一个新简历以开始。", + "notice": { + "title": "注意", + "description": "建议在设置里中配置简历备份文件夹,防止您的数据可能会在浏览器清除缓存后丢失", + "goToSettings": "前往设置" + } }, "settings": { "title": "设置",