feat: Integrate translation support for contract-related components and improve user feedback messages

This commit is contained in:
2025-09-16 11:20:14 +02:00
parent 43622f8e65
commit e5955a31fd
6 changed files with 128 additions and 74 deletions

View File

@@ -1,15 +1,19 @@
"use client";
import ContractForm from "@/components/ContractForm";
import PageContainer from "@/components/ui/PageContainer";
import PageHeader from "@/components/ui/PageHeader";
import Button from "@/components/ui/Button";
import Link from "next/link";
import { useTranslation } from "@/lib/i18n";
export default function NewContractPage() {
const { t } = useTranslation();
return (
<PageContainer>
<PageHeader
title="Create New Contract"
description="Add a new contract to your portfolio"
title={t('contracts.createNewContract')}
description={t('contracts.addNewContractDescription')}
action={
<Link href="/contracts">
<Button variant="outline" size="sm">
@@ -26,7 +30,7 @@ export default function NewContractPage() {
d="M15 19l-7-7 7-7"
/>
</svg>
Back to Contracts
{t('contracts.backToContracts')}
</Button>
</Link>
}