chore(i18n): add home.json demo file

This commit is contained in:
JiPai
2025-03-09 22:24:04 +08:00
parent 888e904d75
commit ed89f5aa8a
3 changed files with 12 additions and 2 deletions

View File

@@ -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 = () => {
<CardHeader className="p-0">
<CardTitle className="text-xl flex flex-row gap-2">
<FolderInput className="size-6 text-muted-foreground self-center" />
Projects
{t("home.projects.title")}
</CardTitle>
<CardDescription>
Create and manage your projects
{t("home.projects.description")}
</CardDescription>
</CardHeader>

View File

@@ -0,0 +1,4 @@
{
"home.projects.title": "Projects",
"home.projects.description": "Create and manage your projects"
}

View File

@@ -0,0 +1,4 @@
{
"home.projects.title": "项目",
"home.projects.description": "创建和管理您的项目"
}