feat: dashboard resumes i18n

This commit is contained in:
JOYCEQL
2025-01-06 15:33:57 +08:00
committed by qingchen
parent bf9036e566
commit 5dd1b710b4
3 changed files with 21 additions and 8 deletions
@@ -123,11 +123,9 @@ const ResumeWorkbench = () => {
) : (
<Alert variant="destructive" className="mb-6">
<AlertCircle className="h-4 w-4" />
<AlertTitle></AlertTitle>
<AlertTitle>{t("dashboard.resumes.notice.title")}</AlertTitle>
<AlertDescription className="flex items-center justify-between">
<span>
</span>
<span>{t("dashboard.resumes.notice.description")}</span>
<Button
variant="destructive"
size="sm"
@@ -137,7 +135,7 @@ const ResumeWorkbench = () => {
}}
>
<Settings className="w-4 h-4 mr-2" />
{t("dashboard.resumes.notice.goToSettings")}
</Button>
</AlertDescription>
</Alert>
@@ -233,7 +231,10 @@ const ResumeWorkbench = () => {
{resume.title || "未命名简历"}
</CardTitle>
<CardDescription className="mt-2 text-sm">
{new Date(resume.createdAt).toLocaleDateString()}
{t("dashboard.resumes.created")}
<span className="ml-2">
{new Date(resume.createdAt).toLocaleDateString()}
</span>
</CardDescription>
</CardContent>
<CardFooter className="pt-0 pb-4 px-4">
+7 -1
View File
@@ -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",
+7 -1
View File
@@ -43,12 +43,18 @@
"settings": "设置"
},
"resumes": {
"created": "创建于",
"synced": "已备份文件夹",
"view": "去查看",
"myResume": "我的简历",
"create": "创建简历",
"newResume": "新建简历",
"newResumeDescription": "创建一个新简历以开始。"
"newResumeDescription": "创建一个新简历以开始。",
"notice": {
"title": "注意",
"description": "建议在设置里中配置简历备份文件夹,防止您的数据可能会在浏览器清除缓存后丢失",
"goToSettings": "前往设置"
}
},
"settings": {
"title": "设置",