Skip to content

Commit

Permalink
fix: link and i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
Davide Carpini authored and Giacomo Materozzi committed Mar 15, 2024
1 parent 0bd35d5 commit 054db90
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion app/(dashboard)/dashboard/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function DashboardLoading() {
<DashboardShell>
<DashboardHeader
heading={i18n.t("Projects")}
text={i18n.t("Create manage projects")}
text={i18n.t("Create and manage translation projects.")}
>
<AddNewProject />
</DashboardHeader>
Expand Down
2 changes: 1 addition & 1 deletion app/(dashboard)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default async function DashboardPage() {
<DashboardShell>
<DashboardHeader
heading={i18n.t("Projects")}
text={i18n.t("Create manage projects")}
text={i18n.t("Create and manage translation projects.")}
>
<AddNewProject />
</DashboardHeader>
Expand Down
26 changes: 13 additions & 13 deletions components/app/dashboard/projects/project-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ interface ProjectItemProps {

export function ProjectItem({ project }: ProjectItemProps) {
return (
<div className="flex items-center justify-between p-4">
<div className="grid gap-1">
<Link
href={`/editor/${project.id}`}
className="font-semibold hover:underline"
>
<Link
href={`/editor/${project.id}`}
className="font-semibold hover:underline"
>
<div className="flex items-center justify-between p-4">
<div className="grid gap-1">
{project.title}
</Link>
<div>
<p className="text-sm text-muted-foreground">
{formatDate(project.createdAt?.toDateString())}
</p>
<div>
<p className="text-sm text-muted-foreground">
{formatDate(project.createdAt?.toDateString())}
</p>
</div>
</div>
<ProjectOperations project={{ id: project.id, title: project.title }} />
</div>
<ProjectOperations project={{ id: project.id, title: project.title }} />
</div>
</Link>
)
}

Expand Down
2 changes: 1 addition & 1 deletion lib/i18n/languages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"Continue": "Continue",
"Create": "Create",
"Create an account": "Create an account",
"Create manage projects": "Create and manage translation projects.",
"Create and manage translation projects.": "Create and manage translation projects.",
"dashboard.No project added.description": "You don't have any project yet. Start creating content.",
"Download": "Download",
"Download .json files": "Download .json files",
Expand Down
2 changes: 1 addition & 1 deletion lib/i18n/languages/es.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app.Create": "Create",
"app.dashboard.Create manage projects": "Create and manage translation projects.",
"app.dashboard.Create and manage translation projects.": "Create and manage translation projects.",
"app.dashboard.No project added": "No project added",
"app.dashboard.No project added.description": "You don't have any project yet. Start creating content.",
"app.dashboard.Project name": "Project name",
Expand Down
2 changes: 1 addition & 1 deletion lib/i18n/languages/it.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"app.Create": "Create",
"app.dashboard.Create manage projects": "Create and manage translation projects.",
"app.dashboard.Create and manage translation projects.": "Create and manage translation projects.",
"app.dashboard.No project added": "No project added",
"app.dashboard.No project added.description": "You don't have any project yet. Start creating content.",
"app.dashboard.Project name": "Project name",
Expand Down

0 comments on commit 054db90

Please sign in to comment.