diff --git a/components/contact-content.tsx b/components/contact-content.tsx index 7521376..7be4702 100644 --- a/components/contact-content.tsx +++ b/components/contact-content.tsx @@ -1,6 +1,7 @@ -import Link from "next/link"; +import { Link } from "@/i18n/routing"; import { Icon } from "@iconify/react"; import { Card, Typography } from "poyraz-ui/atoms"; +import { useTranslations } from "next-intl"; export const CONTACT_LINKS = [ { @@ -27,6 +28,8 @@ export const CONTACT_LINKS = [ ] as const; export function ContactContent() { + const t = useTranslations("Contact"); + return (
{CONTACT_LINKS.map((item) => ( @@ -42,7 +45,7 @@ export function ContactContent() { - {item.label} + {t(item.id)} {item.value} diff --git a/components/content-content.tsx b/components/content-content.tsx index 7471c47..1595af2 100644 --- a/components/content-content.tsx +++ b/components/content-content.tsx @@ -4,6 +4,7 @@ import { useEffect, useMemo, useRef, useState } from "react"; import { Button, Card, Typography } from "poyraz-ui/atoms"; import { Modal, ModalContent, ModalTitle } from "poyraz-ui/molecules"; import { YoutubeLiteEmbed } from "@/components/youtube-lite-embed"; +import { useTranslations } from "next-intl"; type ContentContentProps = { youtubeLinks: readonly string[]; @@ -11,6 +12,7 @@ type ContentContentProps = { }; function PdfFirstPagePreview({ src, title }: { src: string; title: string }) { + const t = useTranslations("Content"); const canvasRef = useRef(null); const [failed, setFailed] = useState(false); @@ -86,7 +88,7 @@ function PdfFirstPagePreview({ src, title }: { src: string; title: string }) { return (
- Önizleme yüklenemedi + {t("pdfPreviewError")}
); @@ -107,6 +109,7 @@ export function ContentContent({ youtubeLinks, pdfFiles, }: ContentContentProps) { + const t = useTranslations("Content"); const [pdfModalOpen, setPdfModalOpen] = useState(false); const [activePdfIndex, setActivePdfIndex] = useState(0); @@ -128,7 +131,7 @@ export function ContentContent({
- Son YouTube Videoları + {t("youtubeTitle")}
{embeddedVideos.map((link) => ( @@ -136,7 +139,7 @@ export function ContentContent({ key={link} className="overflow-hidden rounded-sm border-border p-0" > - + ))}
@@ -144,7 +147,7 @@ export function ContentContent({
- LinkedIn PDF Notları + {t("pdfTitle")}
{pdfFiles.map((pdf, index) => ( @@ -157,7 +160,7 @@ export function ContentContent({ @@ -168,9 +171,9 @@ export function ContentContent({ - {activePdf ? activePdf.replace(/\.pdf$/i, "") : "PDF Notu"} + {activePdf ? activePdf.replace(/\.pdf$/i, "") : t("pdfModalDefaultTitle")} - +
{pdfFiles.length === 0 @@ -187,7 +190,7 @@ export function ContentContent({ setActivePdfIndex((prev) => Math.max(0, prev - 1)) } > - Önceki + {t("prev")}
- + {activePdf ? (