[dyad] Adding multi-language support - wrote 15 file(s), deleted 5 file(s), added next-intl package(s)

This commit is contained in:
[dyad]
2026-01-18 14:08:01 +01:00
parent 92d31b0051
commit 3866176416
18 changed files with 1045 additions and 262 deletions

View File

@@ -0,0 +1,46 @@
import Link from "next/link";
import { Button } from "@/components/ui/button";
import { ArrowLeft } from "lucide-react";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { getTranslations } from "next-intl/server";
export default async function PrivacyPage() {
const t = await getTranslations("PrivacyPage");
return (
<div className="relative flex flex-col items-center min-h-screen p-4 sm:p-8 bg-gray-50 dark:bg-background">
<div className="w-full max-w-4xl mx-auto">
<Button asChild variant="ghost" className="mb-4 -ml-4">
<Link href="/">
<ArrowLeft className="mr-2 h-4 w-4" />
{t("backToConverter")}
</Link>
</Button>
<main className="w-full">
<Card>
<CardHeader>
<CardTitle className="text-3xl font-bold">{t("title")}</CardTitle>
</CardHeader>
<CardContent className="space-y-6 text-muted-foreground">
<div className="space-y-2">
<h3 className="font-semibold text-foreground">{t("generalInfoTitle")}</h3>
<p>{t("generalInfoText")}</p>
</div>
<div className="space-y-2">
<h3 className="font-semibold text-foreground">{t("dataCollectionTitle")}</h3>
<p>{t("dataCollectionText")}</p>
</div>
<div className="space-y-2">
<h3 className="font-semibold text-foreground">{t("yourRightsTitle")}</h3>
<p>{t("yourRightsText")}</p>
</div>
<div className="pt-4 border-t">
<h3 className="font-semibold text-foreground">{t("disclaimerTitle")}</h3>
<p className="text-sm">{t("disclaimerText")}</p>
</div>
</CardContent>
</Card>
</main>
</div>
</div>
);
}