diff --git a/apps/dokploy/components/dashboard/projects/show.tsx b/apps/dokploy/components/dashboard/projects/show.tsx index 188ee60d..042db84e 100644 --- a/apps/dokploy/components/dashboard/projects/show.tsx +++ b/apps/dokploy/components/dashboard/projects/show.tsx @@ -47,9 +47,11 @@ import { useMemo, useState } from "react"; import { toast } from "sonner"; import { HandleProject } from "./handle-project"; import { ProjectEnvironment } from "./project-environment"; +import { useTranslation } from "next-i18next"; export const ShowProjects = () => { const utils = api.useUtils(); + const { t } = useTranslation("home"); const { data, isLoading } = api.project.all.useQuery(); const { data: auth } = api.user.get.useQuery(); const { mutateAsync } = api.project.remove.useMutation(); @@ -76,10 +78,10 @@ export const ShowProjects = () => { - Projects + {t("home.projects.title")} - Create and manage your projects + {t("home.projects.description")} diff --git a/apps/dokploy/public/locales/en/home.json b/apps/dokploy/public/locales/en/home.json new file mode 100644 index 00000000..708466b6 --- /dev/null +++ b/apps/dokploy/public/locales/en/home.json @@ -0,0 +1,4 @@ +{ + "home.projects.title": "Projects", + "home.projects.description": "Create and manage your projects" +} diff --git a/apps/dokploy/public/locales/zh-Hans/home.json b/apps/dokploy/public/locales/zh-Hans/home.json new file mode 100644 index 00000000..253c3d77 --- /dev/null +++ b/apps/dokploy/public/locales/zh-Hans/home.json @@ -0,0 +1,4 @@ +{ + "home.projects.title": "项目", + "home.projects.description": "创建和管理您的项目" +}